-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
192 lines (163 loc) · 4.89 KB
/
Copy pathindex.html
File metadata and controls
192 lines (163 loc) · 4.89 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>jQuery Drawer Plugin Demo</title>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
<link rel="stylesheet" type="text/css" media="all" href="css/jquery.drawer.css" />
<style>
#left-drawer {
height: 100px;
width: 250px;
border: solid 1px #c9c9c9;
background-color: #c9c9c9;
}
#left-drawer-sticky {
height: 150px;
width: 200px;
border: solid 1px #e3e3e3;
background-color: #e3e3e3;
}
#right-drawer {
height: 100px;
width: 200px;
border: solid 1px #9ad3de;
background-color: #9ad3de;
}
#right-drawer-sticky {
height: 100px;
width: 400px;
border: solid 1px #89bdd3;
background-color: #89bdd3;
}
#bottom-drawer {
height: 200px;
width: 200px;
border: solid 1px #dddfd4;
background-color: #dddfd4;
}
#bottom-drawer-sticky {
height: 100px;
width: 500px;
border: solid 1px #fae596;
background-color: #fae596;
}
#top-drawer {
height: 200px;
width: 200px;
border: solid 1px #3fb0ac;
background-color: #3fb0ac;
}
#top-drawer-sticky {
height: 280px;
width: 620px;
border: solid 1px #e5e5e5;
background-color: #ffffff;
opacity: 0.5;
box-shadow: inset 0px -3px 38px -10px rgba(0,0,0,0.33);
}
code {
font: 500 90%/1 Roboto Mono,monospace;
word-break: break-word;
padding: 1px 4px;
}
.code {
padding: 10px;
}
h1 {
text-align: center;
font: 36px Roboto,sans-serif;
font-weight: bold;
}
#header {
height: 300px;
width: 600px;
background-color: #ffffff;
position: fixed;
left: 350px;
padding: 10px;
}
#footer {
position: fixed;
bottom: 0;
right: 0;
padding: 10px;
font-size:0.7em;
}
</style>
</head>
<body>
<div id="main-div">
<div id="header">
<h1>jQuery Drawer Plugin</h1>
<p id="test">Drawer is a simple jQuery plugin for adding a sliding drawer functionality to any HTML element. It can be used to show/hide any element with sliding effect of a drawer. The Drawer can be anchored to any side of the page or a div. It can also be configured to stick to any of the page edges (top, right, bottom or left) to get a floating effect.</p>
</div>
<div id="left-drawer" class="drawer-content-left">
<div class="code">
<code>
$('#left-drawer').drawer({align: 'left', top: '150px'});
</code>
</div>
</div>
<div id="left-drawer-sticky" class="drawer-content-left">
<code>
$('#left-drawer-sticky').drawer({align: 'left', top: '10px', type: 'sticky', handleSize: '50%'});
</code>
</div>
<div id="right-drawer" class="drawer-content-right">
<code>
$('#right-drawer').drawer({align: 'right', top: '100px'});
</code>
</div>
<div id="right-drawer-sticky" class="drawer-content-right">
<code>
$('#right-drawer-sticky').drawer({align: 'right', bottom: '150px', type: 'sticky', handleSize: '30%'});
</code>
</div>
<div style="position: absolute; bottom: 180px; left: 10px; border: 1px solid black; width: 240px; height: 300px;">
<div id="bottom-drawer" class="drawer-content-bottom">
<code>
$('#bottom-drawer').drawer({align: 'bottom', left: '50px'});
</code>
</div>
</div>
<div id="bottom-drawer-sticky" class="drawer-content-bottom">
<code>
$('#bottom-drawer-sticky').drawer({align: 'bottom', left: '400px', type: 'sticky'});
</code>
</div>
<div id="top-drawer" class="drawer-content-top">
<code>
$('#top-drawer').drawer({align: 'top', left: '400px'});
</code>
</div>
<div id="top-drawer-sticky" class="drawer-content-top">
<div style="position: absolute; bottom: 0;">
<code>
$('#top-drawer-sticky').drawer({align: 'top', right: '250px', type: 'sticky'});
</code>
</div>
</div>
<div style="height: 2000px;"></div>
</div>
<div id="footer">
© 2016 Rahul Yadava. Drawer is licensed under the <a href="https://github.com/rahool/jquery-drawer/blob/master/LICENSE">MIT license</a>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/jquery.drawer.js"></script>
<script>
$(function(){
$('code').wrap('<div class="code"></div>');
$('#left-drawer').drawer({align: 'left', top: '70px'});
$('#left-drawer-sticky').drawer({align: 'left', bottom: '10px', type: 'sticky', handleSize: '50%'});
$('#right-drawer').drawer({align: 'right', bottom: '240px'});
$('#right-drawer-sticky').drawer({align: 'right', bottom: '100px', type: 'sticky', handleSize: '30%'});
$('#bottom-drawer').drawer({align: 'bottom', left: '20px'});
$('#bottom-drawer-sticky').drawer({align: 'bottom', left: '400px', type: 'sticky'});
$('#top-drawer').drawer({align: 'top', right: '100px'});
$('#top-drawer-sticky').drawer({align: 'top', left: '350px', type: 'sticky'});
});
</script>
</body>
</html>