-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
75 lines (67 loc) · 2.38 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
<!DOCTYPE html>
<html lang="nl" class="no-js">
<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">
<title>Toglr</title>
<link rel="stylesheet" href="dist/css/toglr.css">
<style type="text/css">
body {
background: #ecf0f1;
font-family: sans-serif;
padding: 40px;
text-align: center;
}
.toglr-nav ul {
list-style: none;
padding: 0;
margin: 0 0 40px;
display: flex;
justify-content: center;
}
.toglr-nav a {
display: block;
padding: 4px 12px;
color: inherit;
}
</style>
</head>
<body>
<!-- Replace no-js class with js class -->
<script type="text/javascript">function hasClass(e,t){return e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}var el=document.documentElement;var cl="no-js";if(hasClass(el,cl)){var reg=new RegExp("(\\s|^)"+cl+"(\\s|$)");el.className=el.className.replace(reg," js")}</script>
<!-- The input, place first so we have full CSS control -->
<input class="toglr-input" type="checkbox" id="open-menu" />
<!-- Toggler element(s) -->
<div class="toglr-togglers">
<label class="toglr-label" for="open-menu" onKeyPress="this.click()" tabindex="0" aria-label="Menu toggle">
<span class="toglr-label-open">Open menu</span>
<span class="toglr-label-close">Close menu</span>
</label>
<a class="toglr-open" href="#open-menu">Open menu</a>
<a class="toglr-close" href="#close-menu">Close menu</a>
</div>
<!-- The navigation -->
<nav class="toglr-nav" aria-labelledby="main-menu-label">
<h2 id="main-menu-label" class="visually-hidden">Main Menu</h2>
<ul class="toglr-menu" data-menu-animation>
<li role="menuitem">
<a href="javascript:void(0)">Item</a>
</li>
<li role="menuitem">
<a href="javascript:void(0)">Item</a>
</li>
<li role="menuitem">
<a href="javascript:void(0)">Item</a>
</li>
<li role="menuitem">
<a href="javascript:void(0)">Item</a>
</li>
<li role="menuitem">
<a href="javascript:void(0)">Item</a>
</li>
</ul>
</nav>
<p>Make your screen smaller than 800px to see the menu in action</p>
</body>
</html>