-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebar.html
More file actions
73 lines (47 loc) · 1.9 KB
/
sidebar.html
File metadata and controls
73 lines (47 loc) · 1.9 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Side Bar</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="sidebar.css">
</head>
<body>
<div id ="wrapper">
<!--Sidebar-->
<div id = "sidebar-wrapper">
<ul class="sidebar-nav">
<li> <a href="#"> Account </a> </li>
<li> <a href="#"> Settings </a> </li>
<li> <a href="#"> Logout </a> </li>
</ul>
</div>
<!-- Page Content-->
<div id = "page-content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<a href="#" class="btn btn-success" id="menu-toggle"> Toggle Menu </a>
<h1> Sidebar Layouts are Cool </h1>
<p> I Love Apple Pie.I Love Apple Pie. I Love Apple Pie. I Love Apple Pie.
I Love Apple Pie.I Love Apple Pie. I Love Apple Pie. I Love Apple Pie.
I Love Apple Pie.I Love Apple Pie. I Love Apple Pie. I Love Apple Pie.
I Love Apple Pie.I Love Apple Pie. I Love Apple Pie. I Love Apple Pie.
</p>
</div>
</div>
</div>
</div>
</div>
<!--Menu Toggle Script-->
<script>
$("#menu-toggle").click ( function(e) {
e.preventDefault(); <!-- Prevent Default Action i.e.goto different web page -->
$("#wrapper").toggleClass("menuDisplayed");
});
</script>
</body>
</html>