-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
92 lines (88 loc) · 2.62 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
<!DOCTYPE html>
<html>
<head>
<title>Skeletor Flyouts Component</title>
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/normalize/4.1.1/normalize.min.css">
<link rel="stylesheet" type="text/css" href="skeletor.flyouts.css">
</head>
<body>
<p>Skeletor Flyouts Component</p>
<nav class="main-nav">
<ul class="main-nav__list">
<li class="main-nav__item">
<a href="#">Menu Item 1</a>
<div class="sub-nav">
<ul class="sub-nav__List">
<li><a href="#">Submenu Item 1</a></li>
<li><a href="#">Submenu Item 2</a></li>
<li><a href="#">Submenu Item 3</a></li>
<li><a href="#">Submenu Item 4</a></li>
</ul>
<ul class="sub-nav__List">
<li><a href="#">Submenu Item 5</a></li>
<li><a href="#">Submenu Item 6</a></li>
<li><a href="#">Submenu Item 7</a></li>
<li><a href="#">Submenu Item 8</a></li>
</ul>
<ul class="sub-nav__List">
<li><a href="#">Submenu Item 9</a></li>
</ul>
</div>
</li>
<li class="main-nav__item">
<a href="#">Menu Item 2</a>
<div class="sub-nav">
<ul class="sub-nav__List">
<li><a href="#">Submenu Item 1</a></li>
<li><a href="#">Submenu Item 3</a></li>
<li><a href="#">Submenu Item 4</a></li>
<li><a href="#">Submenu Item 5</a></li>
</ul>
</div>
</li>
<li class="main-nav__item">
<a href="#">Menu Item 3</a>
<div class="sub-nav">
<ul class="sub-nav__List">
<li><a href="#">Submenu Item 1</a></li>
<li><a href="#">Submenu Item 2</a></li>
<li><a href="h#">Submenu Item 3</a></li>
</ul>
</div>
</li>
<li class="main-nav__item">
<a href="#">Menu Item 4</a>
<div class="sub-nav">
<ul class="sub-nav__List">
<li><a href="#">Submenu Item 1</a></li>
<li><a href="#">Submenu Item 2</a></li>
<li><a href="#">Submenu Item 3</a></li>
</ul>
</div>
</li>
</ul>
</nav>
<script src="//cdnjs.cloudflare.com/ajax/libs/require.js/2.2.0/require.js"></script>
<script>
require.config({
paths: {
'jquery': '//code.jquery.com/jquery-3.0.0.min',
//'skeletor.core': '//rawgit.com/delphic-digital/Skeletor.core/master/skeletor.core',
'skeletor.core': '../../skeletor.core/skeletor.core',
}
})
//DEMO
require(['skeletor.flyouts'], function(){
var $flyout = new Skeletor.Flyouts($('.main-nav__list'), {
testParam: 1,
});
$flyout._test();
//$('.test-component').skeletor('open')
/*
$('.test-component').skeletor('open')
//or
$flyout.open();*/
})
</script>
</body>
</html>