-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
358 lines (356 loc) · 14.3 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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>angular mega menu</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="bower_components/yamm3/yamm/yamm.css">
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-bootstrap/ui-bootstrap-tpls.js"></script>
<script src="src/js/angular-mega-menu.js"></script>
</head>
<body ng-app="test">
<nav class="navbar yamm navbar-default navbar-fixed-top" role="navigation">
<div class="container-fuild">
<div class="navbar-header">
<a class="navbar-brand" href="#">Angular Mega Menu </a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="dropdown" uib-dropdown auto-close="always">
<a class="dropdown-toggle" uib-dropdown-toggle toggle-event="mouseover" href="#">List <b class="caret"></b></a>
<ul class="dropdown-menu">
<li>
<div class="yamm-content">
<div class="row">
<ul class="col-sm-3 list-unstyled">
<li>
<p><strong>Section Title</strong></p>
</li>
<li>List Item</li>
<li>List Item</li>
<li>List Item</li>
<li>List Item</li>
<li>List Item</li>
<li>List Item</li>
</ul>
<ul class="col-sm-3 list-unstyled">
<li>
<p><strong>Links Title</strong></p>
</li>
<li><a href="#"> Link Item </a></li>
<li><a href="#"> Link Item </a></li>
<li><a href="#"> Link Item </a></li>
<li><a href="#"> Link Item </a></li>
<li><a href="#"> Link Item </a></li>
<li><a href="#"> Link Item </a></li>
</ul>
<ul class="col-sm-3 list-unstyled">
<li>
<p><strong>Section Title</strong></p>
</li>
<li>List Item</li>
<li>List Item</li>
<li>List Item</li>
<li>List Item</li>
<li>List Item</li>
<li>List Item</li>
</ul>
<ul class="col-sm-3 list-unstyled">
<li>
<p><strong>Section Title</strong></p>
</li>
<li>List Item</li>
<li>List Item</li>
<li>
<ul>
<li><a href="#"> Link Item </a></li>
<li><a href="#"> Link Item </a></li>
<li><a href="#"> Link Item </a></li>
</ul>
</li>
</ul>
</div>
</div>
</li>
</ul>
</li>
<li class="dropdown" uib-dropdown auto-close="outsideClick">
<a class="dropdown-toggle" uib-dropdown-toggle toggle-event="mouseover" href="#">Accordion<b class="caret"></b></a>
<ul class="dropdown-menu">
<li>
<div class="yamm-content">
<div class="row">
<div class="col-md-12">
<uib-accordion>
<div uib-accordion-group class="panel-default" heading="Collapsible Group Item #1" is-open="true">
Ut consectetur ullamcorper purus a rutrum. Etiam dui nisi, hendrerit feugiat scelerisque et, cursus eu magna.
</div>
<div uib-accordion-group class="panel-default" heading="Collapsible Group Item #2">
Nullam pretium fermentum sapien ut convallis. Suspendisse vehicula, magna non tristique tincidunt, massa nisi luctus tellus, vel laoreet sem lectus ut nibh.
</div>
<div uib-accordion-group class="panel-default" heading="Collapsible Group Item #3">
Praesent leo quam, faucibus at facilisis id, rhoncus sit amet metus. Sed vitae ipsum non nibh mattis congue eget id augue.
</div>
</uib-accordion>
</div>
</div>
</div>
</li>
</ul>
</li>
<li class="dropdown" uib-dropdown>
<a class="dropdown-toggle" uib-dropdown-toggle toggle-event="mouseover" href="#">Classic<b class="caret"></b></a>
<ul role="menu" class="dropdown-menu">
<li><a tabindex="-1" href="#"> Action </a></li>
<li><a tabindex="-1" href="#"> Another action </a></li>
<li><a tabindex="-1" href="#"> Something else here </a></li>
<li class="divider"></li>
<li><a tabindex="-1" href="#"> Separated link </a></li>
</ul>
</li>
<!-- Pictures -->
<li class="dropdown yamm-fw" uib-dropdown auto-close="outsideClick">
<a class="dropdown-toggle" uib-dropdown-toggle toggle-event="mouseover" href="#">Pictures<b class="caret"></b></a>
<ul class="dropdown-menu">
<li>
<div class="yamm-content">
<div class="row">
<div class="col-xs-6 col-sm-2"><a href="#" class="thumbnail"><img alt="150x190" src="img/190.jpg"></a></div>
<div class="col-xs-6 col-sm-2"><a href="#" class="thumbnail"><img alt="150x190" src="img/190.jpg"></a></div>
<div class="col-xs-6 col-sm-2"><a href="#" class="thumbnail"><img alt="150x190" src="img/190.jpg"></a></div>
<div class="col-xs-6 col-sm-2"><a href="#" class="thumbnail"><img alt="150x190" src="img/190.jpg"></a></div>
<div class="col-xs-6 col-sm-2"><a href="#" class="thumbnail"><img alt="150x190" src="img/190.jpg"></a></div>
<div class="col-xs-6 col-sm-2"><a href="#" class="thumbnail"><img alt="150x190" src="img/190.jpg"></a></div>
</div>
</div>
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<div class="jumbotron intro">
<div class="container">
<h1 class="page-header">Hello, Angular Mega Menu!</h1>
<p>This is <i>angular mega menu </i>, base on <a href="https://github.com/angular-ui/bootstrap">angular-ui/bootstrap</a> dropdown directive and <a href="https://github.com/geedmo/yamm3">geedmo/yamm3</a>.</p>
<p>Angular mega menu is extend from dropdown directive, so you use it just like using dropdown directive. <p>
<p><a href="https://github.com/hjzheng/angular-mega-menu" class="btn btn-default btn-lg">View on Github</a> <a href="https://github.com/hjzheng/angular-mega-menu/archive/master.zip" class="btn btn-primary btn-lg">Download</a></p>
</div>
</div>
<div class="container">
<div class="row">
<h2>How to Use</h2>
</div>
<div class="row">
<div class="col-md-4">
<p class="lead">1. Include JS and CSS.</p>
<ul>
<li>
<p>Bootstrap and Yamm3 CSS</p>
</li>
<li>
<p>Angular, angular-bootstrap and angular mega menu JS</p>
</li>
</ul>
</div>
<div class="col-md-8">
<pre class="prettyprint linenums"><link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="bower_components/yamm3/yamm/yamm.css">
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-bootstrap/ui-bootstrap-tpls.js"></script>
<script src="src/js/angular-mega-menu.js"></script></pre>
</div>
</div>
<div class="row">
<div class="col-md-4">
<p class="lead">2. Configure angular module</p>
</div>
<div class="col-md-8">
<pre class="prettyprint linenums">angular.module('test', ['mega-menu']);</pre>
</div>
</div>
<div class="row">
<div class="col-md-4">
<p class="lead">3. Use bootstrap-ui dropdown directive</p>
<ul>
<li>Use dropdown directive.</li>
<li><strong>Set <code>toggle-event</code> attribute, default value is 'click', you can set value 'mouseover'.</strong></li>
</ul>
</div>
<div class="col-md-8">
<pre class="prettyprint linenums">...
<li class="dropdown" uib-dropdown>
<a class="dropdown-toggle" uib-dropdown-toggle toggle-event="mouseover" href="#">Classic<b class="caret"></b></a>
<ul role="menu" class="dropdown-menu">
<li><a tabindex="-1" href="#"> Action </a></li>
<li><a tabindex="-1" href="#"> Another action </a></li>
<li><a tabindex="-1" href="#"> Something else here </a></li>
<li class="divider"></li>
<li><a tabindex="-1" href="#"> Separated link </a></li>
</ul>
</li>
...</pre>
</div>
</div>
<div class="row">
<h2>More Example (from Yamm3)</h2>
</div>
<div class="navbar navbar-default yamm">
<div class="navbar-header">
<button type="button" ng-click="isCollapsed = !isCollapsed" data-toggle="collapse" data-target="#navbar-collapse-2" class="navbar-toggle"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button><a href="#" class="navbar-brand">Yamm Mega Menu</a>
</div>
<div id="navbar-collapse-2" class="navbar-collapse collapse" uib-collapse="isCollapsed">
<ul class="nav navbar-nav">
<!-- Media Example -->
<li class="dropdown open" uib-dropdown auto-close="outsideClick">
<a href="#" class="dropdown-toggle" uib-dropdown-toggle toggle-event="mouseover">Media<b class="caret"></b></a>
<ul class="dropdown-menu">
<li>
<div class="yamm-content">
<ul class="media-list">
<li class="media"><a href="#" class="pull-right"><img src="img/64x64.gif" alt="64x64" class="media-object"></a>
<div class="media-body">
<h4 class="media-heading">Media heading</h4>Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante.
</div>
</li>
<li class="media"><a href="#" class="pull-right"><img src="img/64x64.gif" alt="64x64" class="media-object"></a>
<div class="media-body">
<h4 class="media-heading">Media heading</h4>Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque.
</div>
</li>
</ul>
</div>
</li>
</ul>
</li>
<!-- Tables -->
<li class="dropdown yamm-fullwidth" uib-dropdown auto-close="outsideClick">
<a href="#" class="dropdown-toggle" uib-dropdown-toggle toggle-event="mouseover">Tables <b class="caret"></b></a>
<ul class="dropdown-menu">
<li>
<div class="yamm-content">
<table class="table table-hover">
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<td>2</td>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<td>3</td>
<td colspan="2">Larry the Bird</td>
<td>@twitter</td>
<td colspan="2">Larry the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
</table>
</div>
</li>
</ul>
</li>
<!-- Thumbnails demo -->
<li class="dropdown" uib-dropdown auto-close="outsideClick">
<a href="#" class="dropdown-toggle" uib-dropdown-toggle toggle-event="mouseover">Thumbnails<b class="caret"></b></a>
<ul class="dropdown-menu">
<li>
<div class="yamm-content">
<div class="row">
<div class="col-sm-4">
<div class="thumbnail"><img alt="260x130" src="img/260.jpg">
<div class="caption">
<h3>Thumb Label</h3>
<p>Mazagran doppio half and half aftertaste organic, rich doppio</p>
<p><a href="#" class="btn btn-primary">Action</a> <a href="#" class="btn btn-default">Action</a></p>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="thumbnail"><img alt="260x130" src="img/260.jpg">
<div class="caption">
<h3>Thumb Label</h3>
<p>Black latte cinnamon, cultivar trifecta crema cappuccino</p>
<p><a href="#" class="btn btn-primary">Action</a> <a href="#" class="btn btn-default">Action</a></p>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="thumbnail"><img alt="260x130" src="img/260.jpg">
<div class="caption">
<h3>Thumb Label</h3>
<p>Bar roast et, as latte café au lait, mocha aromatic robusta</p>
<p><a href="#" class="btn btn-primary">Action </a> <a href="#" class="btn btn-default">Action </a></p>
</div>
</div>
</div>
</div>
</div>
</li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<!-- Forms -->
<li class="dropdown" uib-dropdown auto-close="outsideClick">
<a href="#" uib-dropdown-toggle toggle-event="click" class="dropdown-toggle">Forms (click me !) <b class="caret"></b></a>
<ul class="dropdown-menu">
<li>
<div class="yamm-content">
<form>
<div class="form-group">
<input id="inputName" type="text" placeholder="Name" class="form-control">
</div>
<div class="form-group">
<input id="inputEmail" type="password" placeholder="Email" class="form-control">
</div>
<div class="form-group">
<textarea placeholder="Write your message.." class="form-control"></textarea>
</div>
<div class="form-group">
<button type="submit" class="btn btn-success">Send</button>
</div>
</form>
</div>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="row" style="height:400px;"></div>
</div>
<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>
<script>
angular.module('test', ['mega-menu']);
</script>
</body>
</html>