-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathindex.html
104 lines (95 loc) · 6.77 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="cbFlyout Plugin">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>cbFlyout Responsive Nav jQuery Plugin</title>
<link rel="stylesheet" href="css/global.css">
<link rel="author" href="humans.txt">
</head>
<body>
<div id="left-flyout-nav" class="layout-left-flyout visible-sm"></div>
<div class="layout-right-content">
<header class="the-header">
<div class="navbar container">
<!-- Trigger -->
<a class="btn-navbar btn-navbar-navtoggle btn-flyout-trigger" href="#">
<span class="icon-bar btn-flyout-trigger"></span>
<span class="icon-bar btn-flyout-trigger"></span>
<span class="icon-bar btn-flyout-trigger"></span>
</a>
<!-- Structure -->
<nav class="the-nav nav-collapse clearfix">
<ul class="nav nav-pill pull-left">
<li class="dropdown">
<a href="#">Dogs <b class="caret"></b></a>
<ul class="subnav">
<li><a href="#">Terrier</a></li>
<li><a href="#">Labrador</a></li>
<li><a href="#">Pitbull</a></li>
<li><a href="#">German Shephard</a></li>
<li><a href="#">Chihuahua</a></li>
<li><a href="#">Beagle</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#">Cats <b class="caret"></b></a>
<ul class="subnav">
<li><a href="#">Persian</a></li>
<li><a href="#">Siamese</a></li>
<li><a href="#">Ragdoll</a></li>
<li><a href="#">Lion</a></li>
<li><a href="#">Tiger</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#">Primates <b class="caret"></b></a>
<ul class="subnav">
<li><a href="#">Monkey</a></li>
<li><a href="#">Lemur</a></li>
<li><a href="#">Gorilla</a></li>
<li><a href="#">Chimpanzee</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#">Reptiles <b class="caret"></b></a>
<ul class="subnav">
<li><a href="#">Boa</a></li>
<li><a href="#">Monitor Lizard</a></li>
<li><a href="#">Comodo Dragon</a></li>
<li><a href="#">Iguana</a></li>
<li><a href="#">Alligator</a></li>
</ul>
</li>
</ul>
<ul class="nav nav-pill pull-right">
<li><a href="#">Congress </a></li>
<li><a href="#">Blog </a></li>
<li><a href="#">Contact Us </a></li>
</ul>
</nav>
</div>
</header>
<main class="container">
<h1>Responsive Off Screen Navigation jQuery Plugin</h1>
<p>Effective Responsive navigation patterns are so hard to find nowdays. There are so many of them. They look promising, but a lot of the time when you get into actually beggining to use one, it bites you in the behind.</p>
<p>I've gone ahead and made a nice jQuery plugin to give people more options. I could sit here and try to describe with words what it does but this is a demo, and you're already here, so just go ahead and play with it.</p>
<h3 class="align-center">→ RESIZE THE SCREEN! ←</h3>
Markup structure is limited as of now (will-change in the future if demand is high)
<pre><code>
<div class="layout-left-flyout visible-sm"></div><br/><div class="layout-right-content"><br/> <header class="the-header"><br/> <div class="navbar container"><br/><br/> <!-- Trigger --><br/> <a class="btn-navbar btn-navbar-navtoggle btn-flyout-trigger" href="#"><br/> <span class="icon-bar btn-flyout-trigger"></span><br/> <span class="icon-bar btn-flyout-trigger"></span><br/> <span class="icon-bar btn-flyout-trigger"></span><br/> </a><br/><br/> <!-- Structure --><br/> <nav class="the-nav nav-collapse clearfix"><br/> <ul class="nav nav-pill pull-left"><br/> <li class="dropdown"><br/> <a href="#">Dogs <b class="caret"></b></a><br/> <ul class="subnav"><br/> <li><a href="#">Terrier</a></li><br/> <li><a href="#">Labrador</a></li><br/> ...<br/> </ul><br/> </li><br/> <li class="dropdown"><br/> <a href="#">Cats <b class="caret"></b></a><br/> <ul class="subnav"><br/> <li><a href="#">Persian</a></li><br/> <li><a href="#">Siamese</a></li><br/> ...<br/> </ul><br/> </li><br/> <li class="dropdown"><br/> <a href="#">Primates <b class="caret"></b></a><br/> <ul class="subnav"><br/> <li><a href="#">Monkey</a></li><br/> ...<br/> </ul><br/> </li><br/> </ul><br/> <ul class="nav nav-pill pull-right"><br/> <li><a href="#">Congress </a></li><br/> ...<br/> </ul><br/> </nav><br/> </div><br/> </header><br/> <main class="container"><br/> ...<br/> </main><br/></div><!-- END .layout-left-flyout -->
</code></pre>
<br />
And the JavaScript
<pre><code>$('.the-nav').cbFlyout( minWidth:768 );
</code></pre>
<p>Added <code> minWidth </code> option to specify a minimum width to allow the nav to be remain active.</p>
<p>As of now the code might still be messy. I'll dump it on github and if people submit issues I'll try to keep it updated. For now you can just copy the layout on this pen.</p>
</main>
</div><!-- END .layout-left-flyout -->
<script src="js/jquery.js"></script>
<script src="js/jquery.cbFlyout.js"></script>
<script src="js/main.js"></script>
</body>
</html>