Use header.html in all pages

This commit is contained in:
Némunaire 2012-06-18 20:57:57 +02:00
commit f2a4098897
11 changed files with 34 additions and 204 deletions

View file

@ -1,47 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="Stylesheet" href="style.css">
<script type="text/javascript" src="jquery-1.7.2.min.js"></script>
<title>AskWeb (BETA)</title>
<script type="text/javascript">
var nbAnswer = 1;
function add()
{
var element = document.createElement("input");
element.setAttribute("type", "text");
element.setAttribute("id", "answer");
element.setAttribute("name", "answer" + nbAnswer);
nbAnswer++;
element.setAttribute("placeholder", "Nouvelle réponse");
var foo = document.getElementById("answerList");
foo.appendChild(element);
}
function hideShow(which)
{
if (!document.getElementById)
return
if (which.style.display == "block")
which.style.display = "none"
else
which.style.display = "block"
}
</script>
</head>
<body>
<header id="main_title">
<a href="http://www.h2g2.com" id="banner">
<img src="marvin-robot_normal.png" alt="Marvin">
</a>
<h1>Nemubot AskWeb (BETA)</h1>
</header>
<?php include("header.html") ?>
<section id="introduction">
<a id="hideShow" href="">
<img src="topArrow.png" alt="icon">
@ -178,8 +135,6 @@ foreach($cs as $c)
</form>
</section>
<?php include('footer.html') ?>
</body>
</html>