-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlegendaryPage.html
76 lines (71 loc) · 2.23 KB
/
legendaryPage.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="CSS/legendary.css" />
<link rel="icon" href="images/favicon.png" />
<title>Pokemon Trivia | Legendary</title>
</head>
<body>
<div class="navbar">
<div class="container">
<ul class="top-nav">
<li>
<a href="mainPage.html"
><img
id="pika-icon"
src="images/Pikachu-Icon.png"
alt="Pikachu Icon"
/></a>
</li>
<li>
<a class="logo-name" href="mainPage.html"
>Pokemon <span>Trivia</span></a
>
</li>
</ul>
<img
id="mobile-cta"
class="mobile-menu-btn"
src="images/menu.svg"
alt="Open Navigation"
/>
<nav>
<img
id="mobile-exit-btn"
class="mobile-exit"
src="images/exit.svg"
alt="Close Navigation"
/>
<ul class="primary-menu">
<li><a href="mainPage.html">Home</a></li>
<li><a href="randomPage.html">Random</a></li>
<li id="gen-menu">
<a href="genSelect.html">Generation</a>
<div class="gen-dropdown">
<a href="GenerationPage.html">Generation 1</a>
<a href="GenerationPage.html">Generation 2</a>
<a href="GenerationPage.html">Generation 3</a>
<a href="genSelect.html">more...</a>
</div>
</li>
<li class="current"><a href="legendaryPage.html">Legendary</a></li>
</ul>
</nav>
</div>
</div>
<script>
const mobileBtn = document.getElementById("mobile-cta"),
nav = document.querySelector("nav"),
mobileExit = document.getElementById("mobile-exit-btn");
mobileBtn.addEventListener("click", () => {
nav.classList.add("mobile-menu");
});
mobileExit.addEventListener("click", () => {
nav.classList.remove("mobile-menu");
});
</script>
</body>
</html>