-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
147 lines (119 loc) · 2.74 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Pretty Sidenav Example</title>
<link rel="stylesheet" href="src/css/pretty-sidenav.css">
<style>
pre {
background: #f2f2f2;
padding: 10px;
}
footer {
padding: 20px;
background: #f2f2f2;
}
.copyright {
text-align: center;
}
.love {
color: red;
}
.container {
max-width: 800px;
margin: 0 auto;
}
.open-navigation-left {
font-size: 30px;
cursor: pointer;
}
.open-navigation-right {
font-size: 30px;
cursor: pointer;
}
</style>
</head>
<body>
<!-- Side Navigation -->
<div class="my-navigation-left">
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Contact</a>
</div>
<!-- Side Navigation -->
<div class="my-navigation-right">
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Contact</a>
</div>
<!-- Main -->
<div class="container">
<h1>Example Pretty Navigation</h1>
<!-- Open Navigation -->
<span class="open-navigation-left">
☰ Open Navigation Left
</span>
<pre>
<code>
// Pretty Sidenav Navigation Left
new PrettySidenav({
navigation: '.my-navigation-left',
position: 'left',
children: 'a',
trigger: '.open-navigation-left',
width: 250,
background: '#34495e',
color: '#fff'
});
</code>
</pre>
<br/>
<!-- Open Navigation -->
<span class="open-navigation-right">
☰ Open Navigation Right
</span>
<pre>
<code>
// Pretty Sidenav Navigation Right
new PrettySidenav({
navigation: '.my-navigation-right',
position: 'right',
children: 'a',
trigger: '.open-navigation-right',
width: 250,
background: '#1abc9c',
color: '#fff'
});
</code>
</pre>
</div>
<footer>
<div class="container">
<p class="copyright">Crafted With <span class="love">♥</span></p>
</div>
</footer>
<script src="src/js/pretty-sidenav.js"></script>
<script>
// Pretty Sidenav Navigation Left
new PrettySidenav({
navigation: '.my-navigation-left',
position: 'left',
children: 'a',
trigger: '.open-navigation-left',
width: 250,
background: '#34495e',
color: '#fff'
});
// Pretty Sidenav Navigation Right
new PrettySidenav({
navigation: '.my-navigation-right',
position: 'right',
children: 'a',
trigger: '.open-navigation-right',
width: 250,
background: '#1abc9c',
color: '#fff'
});
</script>
</body>
</html>