-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (69 loc) · 1.75 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
<!DOCTYPE HTML>
<html>
<head>
<title>BDrawer</title>
<script src='bdrawer.js'></script>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0'/>
<style>
* {
padding: 0;
margin: 0;
}
html, body {
width: 100%;
height: 100%;
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
font-weight: 300;
}
h1, p {
margin: 10px 0 0 10px;
}
#content {
height: 100%;
background: white;
}
#drawer {
height: 100%;
background: black;
color: white;
}
#drawer a {
color: white;
}
.hamburger {
position:absolute;
left:15px;
top: 10px;
width: 30px;
height: 4px;
border-top: 12px double black;
border-bottom: 4px solid black;
text-decoration:none;
color: black;
content:'';
}
</style>
</head>
<body>
<div id="drawer" style="display: none">
<h1>BDrawer</h1>
<p>
<a href="https://github.com/andersrex/BDrawer" target="_blank">Go to Github</a>
</p>
<p>
<a href="#" onclick='bdrawer.close();'>Close</a>
</p>
</div>
<div id="content">
<a class="hamburger" href="#" onclick='bdrawer.toggle();'></a>
</div>
</body>
<script>
var drawer = document.getElementById('drawer');
var content = document.getElementById('content');
var bdrawer = new BDrawer({
drawer: drawer,
content: content
});
</script>
</html>