forked from jblemaire/fac_eval_layout_menu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtomate.html
41 lines (41 loc) · 1.3 KB
/
tomate.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Eval Layout menu</title>
<link rel="stylesheet" href="css/mon_site.css">
</head>
<body style="background-image: url('img/tomate.jpg')">
<div class="header">
<nav>
<div class="container" onclick="myFunction(this)">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
</div>
<div class="menu">
<ul>
<li><a href="accueil.html">Accueil</a></li>
<li><a href="cerise.html">Cerise</a></li>
<li><a href="poire.html">Poire</a></li>
<li><a href="pomme.html">Pomme</a></li>
<li><a href="tomate.html">Tomate</a></li>
</ul>
</div>
</nav>
</div>
<div class="text">
<h1>Tomate</h1>
</div>
<script>
function myFunction(x) {
x.classList.toggle("change");
if(document.getElementsByClassName("menu")[0].style.display === "block")
document.getElementsByClassName("menu")[0].style.display = "none";
else
document.getElementsByClassName("menu")[0].style.display = "block";
}
</script>
</body>
</html>