forked from tfirdaus/bootstrap-offcanvas-nav
-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
93 lines (87 loc) · 4.22 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="A demonstration on adding off-canvas menu to Bootstrap with Jasny Bootstrap">
<title>Bootstrap Off-canvas Menu</title>
<link href='http://fonts.googleapis.com/css?family=Arvo:400|Source+Sans+Pro:400,600' rel='stylesheet' type='text/css'>
<link href="assets/css/app.css" rel="stylesheet">
<link href="assets/css/style.css" rel="stylesheet">
</head>
<body>
<nav id="offcanvas" class="navmenu navmenu-inverse navmenu-fixed-right offcanvas navmenu-site" role="navigation">
<ul class="nav navmenu-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Tutorials <span class="caret"></span></a>
<ul class="dropdown-menu navmenu-nav">
<li><a href="#">Design & Illustration</a></li>
<li><a href="#">Code</a></li>
<li><a href="#">Web Design</a></li>
<li><a href="#">Music & Audio</a></li>
<li><a href="#">Photography</a></li>
<li><a href="#">3D & Motion Graphic</a></li>
<li><a href="#">Game Development</a></li>
<li><a href="#">Computer Skill</a></li>
<li><a href="#">Craft & DIY</a></li>
<li><a href="#">Business</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Courses <span class="caret"></span></a>
<ul class="dropdown-menu navmenu-nav">
<li><a href="#">Design & Illustration</a></li>
<li><a href="#">Code</a></li>
<li><a href="#">Web Design</a></li>
<li><a href="#">Music & Audio</a></li>
<li><a href="#">Photography</a></li>
<li><a href="#">3D & Motion Graphic</a></li>
<li><a href="#">Business</a></li>
<li><a href="#">Bundles</a></li>
</ul>
</li>
<li><a href="#">Premium</a></li>
<li><a href="#">Jobs</a></li>
<li><a href="#">Blogs</a></li>
<li class="has-button"><a class="btn navmenu-btn">Create and Account</a></li>
<li class="has-button"><a class="btn navmenu-btn">Sign in</a></li>
</ul>
</nav>
<div class="site-wrapper">
<div class="site-wrapper-inner">
<div class="cover-container">
<div class="masthead">
<div class="inner clearfix">
<h3 class="masthead-brand"><a href="https://acme.com/">Acme</a></h3>
<button type="button" class="navbar-toggle masthead-toggle" data-recalc="false" data-toggle="offcanvas" data-target="#offcanvas" data-canvas="body">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
</div>
<div class="inner cover">
<h1 class="cover-heading">The Only App You Will Need</h1>
<p class="lead cover-lead">Frankly, It Can Do Anything.</p>
<p class="lead cover-lead">
<a href="#" class="btn btn-lg btn-success btn-more">Find out more...</a>
</p>
</div>
</div>
</div>
</div>
<script src="assets/js/app.min.js"></script>
<script>
(function() {
var $offCanvas = $('#offcanvas'),
$dropdown = $offCanvas.find('.dropdown');
$dropdown.on('show.bs.dropdown', function(){
$(this).find('.dropdown-menu').slideDown(350);
}).on('hide.bs.dropdown', function(){
$(this).find('.dropdown-menu').slideUp(350);
});
})();
</script>
</body>
</html>