forked from alizahid/slinky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
252 lines (248 loc) · 6.2 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Slinky - jQuery sliding menu</title>
<link rel="stylesheet" href="assets/css/atlas-typewriter/atlas-typewriter-web-regular.css">
<link rel="stylesheet" href="assets/css/master.css?v2">
<link rel="stylesheet" href="assets/css/jquery.slinky.css?v2">
</head>
<body>
<div class="wrapper">
<section class="social">
<div class="github">
<iframe src="https://ghbtns.com/github-btn.html?user=alizahid&repo=slinky&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100" height="20"></iframe>
</div>
<div class="twitter">
<a href="https://twitter.com/share" class="twitter-share-button" data-text="Slinky - jQuery sliding menu - A light-weight, responsive, mobile-like menu plugin" data-via="alizahid0" data-related="alizahid0">Tweet</a>
<script>!function(d, s, id) {var js, fjs = d.getElementsByTagName(s)[0];if (!d.getElementById(id)) {js = d.createElement(s);js.id = id;js.src = "//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js, fjs);}}(document, "script", "twitter-wjs");</script>
</div>
</section>
<header>
<h1>Slinky</h1>
<h2>jQuery sliding menu</h2>
<p>A light-weight, responsive, mobile-like navigation menu plugin</p>
</header>
<section>
<h3>Demo</h3>
<div id="menu" class="slinky-menu">
<ul>
<li>
<a href="https://designplox.com/">I'm an external URL</a>
</li>
<li>
<a href="#">Artists</a>
<ul>
<li>
<a href="#">Aerosmith</a>
<ul>
<li>
<a href="#">Get Your Wings</a>
<ul>
<li>
<a href="#">Train Kept A-Rollin'</a>
</li>
<li>
<a href="#">Same Old Song and Dance</a>
</li>
</ul>
</li>
</ul>
</li>
<li>
<a href="#">Eagles</a>
<ul>
<li>
<a href="#">Hotel California</a>
<ul>
<li>
<a href="#">Hotel California</a>
</li>
<li>
<a href="#">Pretty Maids All in a Row</a>
</li>
</ul>
</li>
</ul>
</li>
<li>
<a href="#">Led Zeppelin</a>
<ul>
<li>
<a href="#">Physical Graffiti</a>
<ul>
<li>
<a href="#">In My Time of Dying</a>
</li>
<li>
<a href="#">Houses of the Holy</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>
<a href="#">Albums</a>
<ul>
<li>
<a href="#">Get Your Wings</a>
<ul>
<li>
<a href="#">Train Kept A-Rollin'</a>
</li>
<li>
<a href="#">Same Old Song and Dance</a>
</li>
</ul>
</li>
<li>
<a href="#">Hotel California</a>
<ul>
<li>
<a href="#">Hotel California</a>
</li>
<li>
<a href="#">Pretty Maids All in a Row</a>
</li>
</ul>
</li>
<li>
<a href="#">Physical Graffiti</a>
<ul>
<li>
<a href="#">In My Time of Dying</a>
</li>
<li>
<a href="#">Houses of the Holy</a>
</li>
</ul>
</li>
</ul>
</li>
<li>
<a href="#">Songs</a>
<ul>
<li>
<a href="#">In My Time of Dying</a>
</li>
<li>
<a href="#">Houses of the Holy</a>
</li>
<li>
<a href="#">Hotel California</a>
</li>
<li>
<a href="#">Pretty Maids All in a Row</a>
</li>
<li>
<a href="#">Train Kept A-Rollin'</a>
</li>
<li>
<a href="#">Same Old Song and Dance</a>
</li>
</ul>
</li>
<li>
<a href="#">Genres</a>
<ul>
<li>
<a href="#">Rock</a>
<ul>
<li>
<a href="#">Hotel California</a>
</li>
<li>
<a href="#">Pretty Maids All in a Row</a>
</li>
<li>
<a href="#">Train Kept A-Rollin'</a>
</li>
<li>
<a href="#">Same Old Song and Dance</a>
</li>
</ul>
</li>
<li>
<a href="#">Hard rock</a>
<ul>
<li>
<a href="#">In My Time of Dying</a>
</li>
<li>
<a href="#">Houses of the Holy</a>
</li>
</ul>
</li>
</ul>
</li>
<li>
<a href="#">Settings</a>
<ul>
<li>
<a href="#">Profile</a>
</li>
<li>
<a href="#">Player</a>
<ul>
<li>
<a href="#">Volume</a>
</li>
<li>
<a href="#">Equalizer</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</section>
<section>
<h3>Usage</h3>
<pre>$('.menu').slinky(options);</pre>
</section>
<section>
<h3>Options</h3>
<table>
<tbody>
<tr>
<th>label</th>
<td>'Back'</td>
<td>Label for the back button. Set to <em>true</em> to use the link's own label</td>
</tr>
<tr>
<th>title</th>
<td>false</td>
<td>Set to <em>true</em> to show title of current menu level</td>
</tr>
<tr>
<th>speed</th>
<td>300</td>
<td>Animation speed in milliseconds</td>
</tr>
<tr>
<th>resize</th>
<td>true</td>
<td>Resize menu height to match content</td>
</tr>
</tbody>
</table>
</section>
</div>
<footer>
Made with <img src="assets/img/heart.svg"> by <a href="//twitter.com/alizahid0">Ali Zahid</a> · Published under the <a href="http://opensource.org/licenses/MIT">MIT license</a>
</footer>
</body>
<script src="https://code.jquery.com/jquery-1.12.3.min.js" integrity="sha256-aaODHAgvwQW1bFOGXMeX+pC4PZIPsvn2h1sArYOhgXQ=" crossorigin="anonymous"></script>
<script src="assets/js/jquery.slinky.js"></script>
<script>
$(document).ready(function() {
$('#menu').slinky({
title: true
});
});
</script>
</html>