forked from pasitk/missing-tracks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.html
85 lines (85 loc) · 3.1 KB
/
header.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
<div class="site-name" id="site-name-header">
<a href="index.html">Missing Tracks</a>
</div>
<div class="mobile-menu" id="menu-btn"> <!-- Dropdown Menu with Hamburger Button -->
<!--
* CSS Hamburger fold-out menu (HTML Part)
* This code was adapted from CodePen post by Erik Terwan
* accessed 23-10-2019
* https://codepen.io/erikterwan/pen/EVzeRP
* Change <span> to <div>
-->
<div id="menu-toggle"> <!-- Hamburger Button, created by 3 div in vertical line -->
<div></div>
<div></div>
<div></div>
</div>
<!--
* Checkbox for toggle open/close dropdown menu (HTML Part)
* This code has written by myself, but inspired by Chris Coyier's content at css-tricks.com
* accessed 23-10-2019
* https://css-tricks.com/the-checkbox-hack/
-->
<label for="btn-toggle" id="label-btn-toggle">Open or Close Menu</label> <!-- hidden label, just for accessibility -->
<input type="checkbox" id="btn-toggle"> <!-- Checkbox with opacity = 0, to open/close dropdown menu by css selector -->
<!--
* Dropdown menu for mobile site (HTML Part)
* This code was adapted from w3schools.com by apply classes in this site
* accessed 23-10-2019
* https://www.w3schools.com/css/tryit.asp?filename=trycss_dropdown_button
-->
<div class="menu-dropdown-items"> <!-- Dropdown menu -->
<div class="main-menu-item-mobile" id="menu-mobile-users">
<div>
<a href="britains-missing.html">What: Britain's missing</a>
</div>
</div>
<div class="main-menu-item-mobile" id="menu-mobile-users">
<div>
<a href="who-is-missing.html">Who is missing?</a>
</div>
</div>
<div class="main-menu-item-mobile" id="menu-mobile-users">
<div>
<a href="why-are-they-missing.html">Why are they missing?</a>
</div>
</div>
<div class="main-menu-item-mobile" id="menu-mobile-loans">
<div>
<a href="how-can-we-find-them.html">How can we find them?</a>
</div>
</div>
<div class="main-menu-item-mobile" id="menu-mobile-loans">
<div>
<a href="data-and-methodology.html">Data and methodology</a>
</div>
</div>
</div>
</div>
<div class="desktop-menu">
<div class="main-menu-item">
<div>
<a href="britains-missing.html">What: Britain's missing</a>
</div>
</div>
<div class="main-menu-item">
<div>
<a href="who-is-missing.html">Who is missing?</a>
</div>
</div>
<div class="main-menu-item">
<div>
<a href="why-are-they-missing.html">Why are they missing?</a>
</div>
</div>
<div class="main-menu-item">
<div>
<a href="how-can-we-find-them.html">How can we find them?</a>
</div>
</div>
<div class="main-menu-item">
<div>
<a href="data-and-methodology.html">Data and methodology</a>
</div>
</div>
</div>