-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
92 lines (62 loc) · 2.9 KB
/
index.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!--Copyright 2022 Nick Falbo (https://nick.falbo.dev)
SPDX-License-Identifier: Apache-2.0-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta permissions-policy: interest-cohort=()>
<title>Navigation Bar</title>
<link rel="stylesheet" type="text/css" href="./style.css">
</head>
<body>
<header id="home">
<!-- Navigation Bar -->
<nav id="navbar" class="navbar">
<!-- Hamburger for mobile -->
<button aria-label="Drop-down navigation menu" id="hamburger" class="hamburger">
<span id="top-span" class="x-span"></span>
<span id="middle-span" class="middle-span"></span>
<span id="bottom-span" class="x-span"></span>
</button>
<!-- Mobile Navigation List -->
<ul id="mobile-nav-list" class="mobile-nav-list">
<li id="nav0" class="border-li"><a>Home</a></li>
<li id="nav1" class="border-li"><a>First</a></li>
<li id="nav2" class="border-li"><a>Second</a></li>
<li id="nav3" class="border-li"><a>Third</a></li>
<li id="nav4"><a>Fourth</a></li>
</ul>
<!-- Desktop Navigation List -->
<ul class="nav-list">
<li><a class="border-li nav-link" href="#home">Home</a></li>
<li><a class="border-li nav-link" href="#sect1">First</a></li>
<li><a class="border-li nav-link" href="#sect2">Second</a></li>
<li><a class="border-li nav-link" href="#sect3">Third</a></li>
<li><a class="nav-link" href="#sect4">Fourth</a></li>
</ul>
</nav>
<h1>Navigation Bar Demo</h1>
<p>Try changing the width of the window to check out the mobile drop down bar!</p>
</header>
<section id="sect1" class="page1">
<h2>First Section</h2>
</section>
<section id="sect2" class="page2">
<h2>Second Section</h2>
</section>
<section id="sect3" class="page3">
<h2>Third Section</h2>
</section>
<section id="sect4" class="page4">
<h2>Fourth Section</h2>
<button id="go">Run</button>
<div id="block" class="jQuery-div">Hello!</div>
</section>
<footer>
<span>© 2022 | Designed & coded with 💚🤙🏂 by <a href="https://www.falbo.dev" target="blank">Nick Falbo</a></span>
</footer>
<script src="https://code.jquery.com/jquery-3.5.0.js"></script>
<script type="text/javascript" src="./script.js"></script>
</body>
</html>