-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathindex.html
358 lines (324 loc) · 17.1 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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initail-scale=1" />
<meta charset="utf-8" />
<title> hs Mega Menu - jQuery Plugin by Asif Mughal</title>
<meta name="description" content="hs Menu is a easy to use jquery mega menu plugin that helps you create modern navigation system with amazing features. Including CSS3 animations dropdowns and much more." />
<!--Google Fonts-->
<link href="https://fonts.googleapis.com/css?family=Nanum+Gothic" rel="stylesheet">
<!--Material Design Iconic Font-->
<link rel="stylesheet" href="material-design/css/material-design-iconic-font.css" />
<!--jQuery-->
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<!--hs Menu JS-->
<script src="js/jquery.hsmenu.min.js"></script>
<!-- hs Menu CSS-->
<link rel="stylesheet" href="css/hs-menu.min.css" />
<script>
$(document).ready(function () {
$(".hs-menubar").hsMenu();
});
</script>
</head>
<body>
<!--Start hs Mega Menu-->
<header class="hs-menubar">
<div class="brand-logo">
<a href="#home_link"><img src="image/hs-menu.png" title="Your logo will be here" alt="hs Mega Menu"> </a>
</div>
<div class="menu-trigger"> <i class="zmdi zmdi-menu"></i></div>
<div class="search-trigger"> <i class="zmdi zmdi-search"></i></div>
<div class="search-box">
<form action="#">
<input type="text" name="search">
<button type="submit" class="search-submit" disabled>Search</button>
</form>
</div>
<div class="hs-user toggle" data-reveal=".user-info">
<img src="image/asif-mughal.jpg" alt="Asif Mughal">
</div>
<div class="grid-trigger toggle" data-reveal=".grid-items"> <i class="zmdi zmdi-view-module"></i> </div>
<div class="more-trigger toggle" data-reveal=".user-penal"> <i class="zmdi zmdi-more-vert"></i></div>
</header>
<section class="box-models">
<ul class="user-penal">
<li> <a href="#1"><i class="zmdi zmdi-inbox"></i> Inbox </a> </li>
<li> <a href="#1"> <i class="zmdi zmdi-delete"></i> Trash </a> </li>
<li> <a href="#1"> <i class="zmdi zmdi-star"></i> Started </a> </li>
<li> <a href="#1"> <i class="zmdi zmdi-run"></i> Logout </a> </li>
</ul>
<ul class="user-info">
<li class="profile-pic"> </li>
<li class="user-name">Asif Mughal </li>
<li class="user-bio"> Front End Web Developer</li>
<li class="more-btn"> <a href="#1"> Find Out More</a> </li>
</ul>
<ul class="grid-items">
<li class="grid"> Item one</li>
<li class="grid"> Item two </li>
<li class="grid"> Item three </li>
<li class="grid"> Item four </li>
<li class="grid"> Item five </li>
<li class="grid"> Item six </li>
<li class="more-btn"><a href="#1"> More</a></li>
</ul>
</section>
<nav class="hs-navigation">
<ul class="nav-links">
<li><a href="#4"> <span class="icon"> <i class="zmdi zmdi-collection-item"></i> </span> List Item one</a> </li>
<li class="has-child">
<span class="its-parent">
<span class="icon"> <i class="zmdi zmdi-device-hub"></i>
</span>Multilevel Dropdown</span>
<ul class="its-children">
<li><a href="#1"> Sub Item 1.1 </a> </li>
<li class="has-child">
<span class="its-parent"> Item 1.2 has child</span>
<ul class="its-children">
<li> <a href="#1">Child Item 1.2.1 </a> </li>
<li> <a href="#1"> Child Item 1.2.2 </a> </li>
<li> <a href="#1"> Child Item 1.2.3 </a> </li>
</ul>
</li>
<li> <a href="#1"> Sub Item 1.3 </a> </li>
<li> <a href="#1"> Sub Item 1.4 </a></li>
</ul>
</li>
<li> <a href="#4"> <span class="icon"> <i class="zmdi zmdi-compass"></i> </span> List three</a> </li>
<li> <a href="#4"> <span class="icon"> <i class="zmdi zmdi-collection-video"></i> </span> List Item four</a> </li>
<li class="has-child">
<span class="its-parent">
<span class="icon"> <i class="zmdi zmdi-wrap-text"></i>
</span>Another Dropdown</span>
<ul class="its-children">
<li><a href="#1"> dropdown item 1 </a> </li>
<li> <a href="#1"> dropdown item 2 </a> </li>
<li> <a href="#1"> dropdown item 3 </a> </li>
<li> <a href="#1"> dropdown item 4</a> </li>
</ul>
</li>
<!--//has-child-->
</ul>
</nav>
<!--End hs Mega Menu-->
<!--Introduction and Demo Only -->
<header class="intro">
<h1> hs Mega Menu - jQuery Plugin </h1>
<p>
<strong> hs Menu</strong> is a easy to use mega menu plugin that helps you create modern navigation system with amazing features.
<br />
<br />
<b> Written in:</b><i> HTML5, CSS3, JavaScript</i><br>
<b> Frameworks: </b> <i> jQuery 3.3.1 & Material-Design-Iconic-Font 2.0 </i>
</p>
<div class="action">
<a class="btn github" href="https://github.com/CodeHimBlog/jquery-hs-mega-menu"> Fork on GiHub </a>
<a class="btn down" href="https://github.com/CodeHimBlog/jquery-hs-mega-menu/archive/master.zip">Download </a>
<div style="position: relative;">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- textAd -->
<ins class="adsbygoogle"
style="display:inline-block;width:320px;height:100px"
data-ad-client="ca-pub-7089100907045419"
data-ad-slot="8115428124"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
</header>
<main>
<article>
<h2> Main Features </h2>
<ul>
<li>Responsive (Mobile First), Modern and Attractive Design. </li>
<li>Multilevel Dropdowns based on Nested List of anchor links. </li>
<li>Unlimited main items and sub items can be added to a dropdown. </li>
<li>Animated CSS3 box models for show up Profile info, Grid Items and user penal links.</li>
<li> CSS3 and jQuery Sliding, Fading & Ripple Animations Enabled. </li>
<li>Material Design Iconic Fonts. </li>
<li> Background Fading Layer.</li>
<li> Built in Search Form, Menubar, Dropdowns and Navigation Drawer. </li>
<li> Chrome, Safari, Firefox, Opera, (IE almost), IOS, Android and windows phone supported. </li>
<li> User Friendly and Easy to Implement. </li>
</ul>
<h2> How to Use</h2>
<details> <summary> Help for beginners </summary>
<p> 1. Load the jQuery JavaScript library, Material Design Iconic Fonts, hs Menu JS and CSS file into HTML document.
</p>
<pre class="prettyprint lang-html">
<!--jQuery-->
<script src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<!--Material Design Iconic Font-->
<link rel="stylesheet" href="material-design/css/material-design-iconic-font.css" />
<!--hs Menu JS-->
<script src="js/jquery.hsmenu.min.js"></script>
<!-- hs Menu CSS-->
<link rel="stylesheet" href="css/hs-menu.min.css" />
</pre>
<p> 2. Now copy the following HTML Menu structure and add your links and other necessary things into it. </p>
<pre class="prettyprint lang-html">
<!--Start hs Mega Menu-->
<header class="hs-menubar">
<div class="brand-logo">
<a href="#home_link"><img src="image/hs-menu.png" title="Your logo will be here" alt="hs Mega Menu"> </a>
</div>
<div class="menu-trigger"> <i class="zmdi zmdi-menu"></i></div>
<div class="search-trigger"> <i class="zmdi zmdi-search"></i></div>
<div class="search-box">
<form action="#">
<input type="text" name="search">
<button type="submit" class="search-submit" disabled>Search</button>
</form>
</div>
<div class="hs-user toggle" data-reveal=".user-info">
<img src="image/asif-mughal.jpg" alt="Asif Mughal">
</div>
<div class="grid-trigger toggle" data-reveal=".grid-items"> <i class="zmdi zmdi-view-module"></i> </div>
<div class="more-trigger toggle" data-reveal=".user-penal"> <i class="zmdi zmdi-more-vert"></i></div>
</header>
<section class="box-models">
<ul class="user-penal">
<li> <a href="#1"><i class="zmdi zmdi-inbox"></i> Inbox </a> </li>
<li> <a href="#1"> <i class="zmdi zmdi-delete"></i> Trash </a> </li>
<li> <a href="#1"> <i class="zmdi zmdi-star"></i> Started </a> </li>
<li> <a href="#1"> <i class="zmdi zmdi-run"></i> Logout </a> </li>
</ul>
<ul class="user-info">
<li class="profile-pic"> </li>
<li class="user-name">Asif Mughal </li>
<li class="user-bio"> Front End Web Developer</li>
<li class="more-btn"> <a href="#1"> Find Out More</a> </li>
</ul>
<ul class="grid-items">
<li class="grid"> Item one</li>
<li class="grid"> Item two </li>
<li class="grid"> Item three </li>
<li class="grid"> Item four </li>
<li class="grid"> Item five </li>
<li class="grid"> Item six </li>
<li class="more-btn"><a href="#1"> More</a></li>
</ul>
</section>
<nav class="hs-navigation">
<ul class="nav-links">
<li><a href="#4"> <span class="icon"> <i class="zmdi zmdi-collection-item"></i> </span> List Item one</a> </li>
<li class="has-child">
<span class="its-parent">
<span class="icon"> <i class="zmdi zmdi-device-hub"></i>
</span>Multilevel Dropdown</span>
<ul class="its-children">
<li><a href="#1"> Sub Item 1.1 </a> </li>
<li class="has-child">
<span class="its-parent"> Item 1.2 has child</span>
<ul class="its-children">
<li> <a href="#1">Child Item 1.2.1 </a> </li>
<li> <a href="#1"> Child Item 1.2.2 </a> </li>
<li> <a href="#1"> Child Item 1.2.3 </a> </li>
</ul>
</li>
<li> <a href="#1"> Sub Item 1.3 </a> </li>
<li> <a href="#1"> Sub Item 1.4 </a></li>
</ul>
</li>
<li> <a href="#4"> <span class="icon"> <i class="zmdi zmdi-compass"></i> </span> List three</a> </li>
<li> <a href="#4"> <span class="icon"> <i class="zmdi zmdi-collection-video"></i> </span> List Item four</a> </li>
<li class="has-child">
<span class="its-parent">
<span class="icon"> <i class="zmdi zmdi-wrap-text"></i>
</span>Another Dropdown</span>
<ul class="its-children">
<li><a href="#1"> dropdown item 1 </a> </li>
<li> <a href="#1"> dropdown item 2 </a> </li>
<li> <a href="#1"> dropdown item 3 </a> </li>
<li> <a href="#1"> dropdown item 4</a> </li>
</ul>
</li>
<!--//has-child-->
</ul>
</nav>
<!--End hs Mega Menu-->
</pre>
</details>
<p> Initialize <code>hsMenu()</code> with <code> hs-menubar </code> selector in jQuery document ready function. </p>
<pre class="prettyprint lang-js">
$(document).ready(function () {
$(".hs-menubar").hsMenu();
});
</pre>
<h2> Working with Dropdowns</h2>
<p>
You can add multilevel dropdowns as many as you need with the same method and class name scheme.
</p>
<p> To create first level dropdown (in main list of items) create a <code> li </code> element with <code> has-child</code> class name. After this, create a <code> span </code> element with class name <code> its-parent</code> that contains child items. Now, create another unordered list within li (<code> ul </code>) with class name <code> its-children </code>.
An example below: </p>
<pre class="prettyprint lang-html">
<li class="has-child">
<span class="its-parent"> Dropdown</span>
<ul class="its-children">
<li><a href="#1"> dropdown item 1 </a> </li>
<li> <a href="#1"> dropdown item 2 </a> </li>
</ul>
</li>
</pre>
<div style="margin: 10px">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
style="display:block; text-align:center;"
data-ad-layout="in-article"
data-ad-format="fluid"
data-ad-client="ca-pub-7089100907045419"
data-ad-slot="7782420780"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<p>
You can nested dropdowns by the above mentioned method and class names. Such as:
</p>
<pre class="prettyprint lang-html">
<li class="has-child">
<span class="its-parent">
Multilevel Dropdown</span>
<ul class="its-children">
<li><a href="#1"> Sub Item 1.1 </a> </li>
<li class="has-child">
<span class="its-parent"> Item 1.2 has child</span>
<ul class="its-children">
<li> <a href="#1">Child Item 1.2.1 </a> </li>
<li> <a href="#1"> Child Item 1.2.2 </a> </li>
<li> <a href="#1"> Child Item 1.2.3 </a> </li>
</ul>
</li>
<li> <a href="#1"> Sub Item 1.3 </a> </li>
<li> <a href="#1"> Sub Item 1.4 </a></li>
</ul>
</li>
</pre>
<h2> hs Mega Menu Options </h2>
<p>
There are four options available to customize this navigation system. These are:
</p>
<pre class="prettyprint lang-js">
bgFading: true, //(false to disable) background dim overlay when side navigation drawer open
outClickToClose: true, // (false to disable) close opened items if user click outside of them
navControls: true, // (false to disable) provide buttons to allow visitors to increase some width and height of drawer
fixedMenubar: true, //false to static
</pre>
</article>
</main>
<!--DEMO ONLY FILES-->
<link rel="stylesheet" href="docs/demo-only.css" />
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"> </script>
<footer class="credit">
Coded with <span title="Coffee"></span> by Asif Mughal © 2018 - <a href="https://www.codehim.com" rel="dofollow" title="Awesome Web Projects and Tutorials" target="_blank"> Codehim.com </a>
</footer>
</body>
</html>