-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
249 lines (233 loc) · 8.44 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
<!DOCTYPE html>
<html>
<head>
<title>Canny</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" />
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link href="css/canny.css" rel="stylesheet" />
<link href="css/demo.css" rel="stylesheet" />
</head>
<body>
<div id="container" class="container">
<div class="header">
<a href="#" id="canny-page-toggle-left" class="canny-toggle canny-toggle-left">Menü (links)</a>
<a href="#" id="canny-page-toggle-top" class="canny-toggle canny-toggle-top">Menü (oben)</a>
<a href="#" id="canny-page-toggle-right" class="canny-toggle canny-toggle-right">Menü (rechts)</a>
</div>
<div id="content" class="content">
<h1>Lorem ipsum dolor sit amet</h1>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum.</p>
<h2>Wie wird Canny benutzt?</h2>
<p></p>
<pre><code>jQuery('#off-canvas').canny({
});</code></pre>
<h2>cannyParent</h2>
<p>Das ist das Element, das Canny und <code>contentWrap</code> enthält. Wenn leer, dann sucht Canny nach dem nächsten Eltern-Element.</p>
<p>Diese Option muss richtig gesetzt werden, wenn <code>fixedView</code> genutzt wird.</p>
<h2>contentWrap</h2>
<p><code>contentWrap</code> enthält den Inhalt und muss gesetzt sein, wenn <code>pushContent</code> genutzt werden soll.</p>
<p>Darf nicht Canny beinhalten.</p>
<div class="offcanvas-container">
<ul id="canny-content" class="canny">
<li><a href="#">öaskldhföal</a></li>
<li>
<a href="#">öaskldhföal</a>
<ul>
<li><a href="#">sdfasoouzs z psdf</a></li>
<li><a href="#">sdfasoouzs z psdf</a></li>
<li><a href="#">sdfasoouzs z psdf</a></li>
</ul>
</li>
<li><a href="#">öaskldhföal</a></li>
<li><a href="#">öaskldhföal</a></li>
</ul>
<div class="body">
<div class="container-header">
<button id="canny-content-toggle" class="canny-content-toggle">Inhalt</button>
<button id="canny-content-toggle2" class="canny-content-toggle2">Inhalt</button>
</div>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem.</p>
</div>
<ul id="canny-content2" class="canny">
<li><a href="#">öaskldhföal</a></li>
<li>
<a href="#">öaskldhföal</a>
<ul>
<li><a href="#">sdfasoouzs z psdf</a></li>
<li><a href="#">sdfasoouzs z psdf</a></li>
<li><a href="#">sdfasoouzs z psdf</a></li>
</ul>
</li>
<li><a href="#">öaskldhföal</a></li>
<li><a href="#">öaskldhföal</a></li>
</ul>
</div>
</div>
</div>
<ul id="canny-page-right" class="canny">
<li><a href="#1">Option 1</a></li>
<li>
<a href="#1">Option 2</a>
<ul>
<li><a href="#21">Option 2 1</a></li>
<li><a href="#22">Option 2 2</a></li>
<li><a href="#23">Option 2 3</a></li>
<li><a href="#24">Option 2 4</a></li>
</ul>
</li>
<li><a href="#1">Option 3</a></li>
</ul>
<ul id="canny-page-top" class="canny">
<li><a href="#1">Option 1</a></li>
<li>
<a href="#1">Option 2</a>
<ul>
<li><a href="#21">Option 2 1</a></li>
<li><a href="#22">Option 2 2</a></li>
<li><a href="#23">Option 2 3</a></li>
<li><a href="#24">Option 2 4</a></li>
</ul>
</li>
<li><a href="#1">Option 3</a></li>
</ul>
<ul id="canny-page-left" class="canny">
<li><a href="#1">Option 1</a></li>
<li>
<a href="#2">Option 2</a>
<ul>
<li>
<a href="#21">Option 2 1</a>
<ul>
<li>
<a href="#211">Option 2 1 1</a>
<ul>
<li><a href="#2111">Option 2 1 1 1</a></li>
<li>
<a href="#2112">Option 2 1 1 2</a>
<ul>
<li><a href="#21121">Option 2 1 1 2 1</a></li>
<li><a href="#21122">Option 2 1 1 2 2</a></li>
<li><a href="#21123">Option 2 1 1 2 3</a></li>
<li><a href="#21124">Option 2 1 1 2 4</a></li>
</ul>
</li>
<li><a href="#2113">Option 2 1 1 3</a></li>
<li><a href="#2114">Option 2 1 1 4</a></li>
<li><a href="#2115">Option 2 1 1 5</a></li>
</ul>
</li>
<li><a href="#212">Option 2 1 2</a></li>
<li><a href="#213">Option 2 1 3</a></li>
<li><a href="#214">Option 2 1 4</a></li>
<li><a href="#215">Option 2 1 5</a></li>
</ul>
</li>
<li>
<a href="#22">Option 2 2</a>
<ul>
<li><a href="#221">Option 2 2 1</a></li>
<li><a href="#222">Option 2 2 2</a></li>
<li><a href="#223">Option 2 2 3</a></li>
<li><a href="#224">Option 2 2 4</a></li>
<li><a href="#225">Option 2 2 5</a></li>
</ul>
</li>
<li>
<a href="#23">Option 2 3</a>
<ul>
<li>
<a href="#221">Option 2 3 1</a>
<ul>
<li><a href="#221">Option 2 3 1 1</a></li>
<li><a href="#222">Option 2 3 1 2</a></li>
<li><a href="#223">Option 2 3 1 3</a></li>
<li><a href="#224">Option 2 3 1 4</a></li>
<li><a href="#225">Option 2 3 1 5</a></li>
</ul>
</li>
<li><a href="#222">Option 2 3 2</a></li>
<li><a href="#223">Option 2 3 3</a></li>
<li><a href="#224">Option 2 3 4</a></li>
<li><a href="#225">Option 2 3 5</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#3">Option 3</a></li>
<li>
<a href="#4">Option 4</a>
<ul>
<li><a href="#41">Option 4 1</a></li>
<li><a href="#42">Option 4 2</a></li>
<li><a href="#43">Option 4 3</a></li>
<li><a href="#44">Option 4 4</a></li>
<li><a href="#45">Option 4 5</a></li>
</ul>
</li>
<li><a href="#5">Option 5</a></li>
<li><a href="#6">Option 6</a></li>
<li><a href="#7">Option 7</a></li>
<li><a href="#8">Option 8</a></li>
<li><a href="#9">Option 9</a></li>
<li><a href="#10">Option 10</a></li>
<li><a href="#11">Option 11</a></li>
<li><a href="#12">Option 12</a></li>
<li><a href="#13">Option 13</a></li>
<li><a href="#14">Option 14</a></li>
<li><a href="#15">Option 15</a></li>
<li><a href="#16">Option 16</a></li>
<li><a href="#17">Option 17</a></li>
<li><a href="http://www.google.com">Option 18</a></li>
</ul>
<script src="vendor/jquery-2.2.3.min.js"></script>
<script src="src/jquery-canny.js"></script>
<script>
$(function() {
var myCannyPageLeft = $('#canny-page-left').canny({
contentWrap: '#content',
navToggle: '#canny-page-toggle-left',
copyParentLink: true,
layers: true,
navPosition: 'left',
useCloseButton: true,
pushContent: true,
overlay: true
});
var myCannyPageTop = $('#canny-page-top').canny({
contentWrap: '#content',
navToggle: '#canny-page-toggle-top',
navPosition: 'top',
useCloseButton: true,
pushContent: true,
overlay: false
});
var myCannyPageRight = $('#canny-page-right').canny({
contentWrap: '#content',
navToggle: '#canny-page-toggle-right',
navPosition: 'right',
pushContent: true,
overlay: true
});
var myCannyContent = $('#canny-content').canny({
transitionSpeed: 300,
threshold: 50,
pushContent: true,
contentWrap: '.body',
navToggle: '#canny-content-toggle',
layers: true
});
var myCannyContent2 = $('#canny-content2').canny({
transitionSpeed: 300,
threshold: 50,
pushContent: true,
contentWrap: '.body',
navToggle: '#canny-content-toggle2',
navPosition: 'right',
layers: true,
dragToClose: true
});
});
</script>
</body>
</html>