-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·97 lines (96 loc) · 4.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>[Naked] A minimalist ready-to-use and skin HTML5/SASS/jQuery multi-level accordion navigation.</title>
<link rel="stylesheet" href="css/nkd-reset.css">
<link rel="stylesheet" href="css/nkd-common.css">
<link rel="stylesheet" href="css/nkd-accordion-core.css">
<link rel="stylesheet" href="css/nkd-accordion-skin.css">
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
<script src="js/nkd-accordion.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#demoNakedAccordion').nkdAccordion();
$('#js-nkd-reset').on('click', function(){
$('#demoNakedAccordion').nkdAccordionDestroy();
});
});
</script>
</head>
<body>
<h1>[Naked] A minimalist ready-to-use and skin HTML5/SASS/jQuery multi-level accordion navigation.</h1>
<h2>Options</h2>
<p>By default, all clicked items remain open until you click them again. Set <code>closeAll</code> option to <code>true</code> if you want all previously opened items to close when clicking a new one from root level.</p>
<pre>
$('#demoNakedAccordion').nkdAccordion({
closeAll: true
});
</pre>
<p>Destroy the accordion. This reverts all accordion elements back to their original state (before calling the accordion).</p>
<pre>
$('#demoNakedAccordion').nkdAccordionDestroy();
</pre>
<p><button id="js-nkd-reset" role="button">Destroy accordion</button></p>
<nav id="demoNakedAccordion" class="nkd nkd-accordion">
<ul class="nkd-level js-nkd-level" data-level="0">
<li class="nkd-item js-nkd-item">
<a class="nkd-link js-nkd-link" href="http://www.google">Level #0 Item #0</a>
<ul class="nkd-level js-nkd-level" data-level="1">
<li class="nkd-item js-nkd-item">
<a class="nkd-link js-nkd-link" href="http://www.google">Level #1 Item #0</a>
</li>
<li class="nkd-item js-nkd-item">
<a class="nkd-link js-nkd-link" href="http://www.google">Level #1 Item #1</a>
<ul class="nkd-level js-nkd-level" data-level="2">
<li class="nkd-item js-nkd-item">
<a class="nkd-link js-nkd-link" href="http://www.google">Level #2 Item #0</a>
<ul class="nkd-level js-nkd-level" data-level="3">
<li class="nkd-item js-nkd-item">
<a class="nkd-link js-nkd-link" href="http://www.google">Level #3 Item #0</a>
</li>
<li class="nkd-item js-nkd-item">
<a class="nkd-link js-nkd-link" href="http://www.google">Level #3 Item #1</a>
</li>
</ul>
</li>
<li class="nkd-item js-nkd-item">
<a class="nkd-link js-nkd-link" href="http://www.google">Level #2 Item #1</a>
</li>
<li class="nkd-item js-nkd-item">
<a class="nkd-link js-nkd-link" href="http://www.google">Level #2 Item #2</a>
</li>
<li class="nkd-item js-nkd-item">
<a class="nkd-link js-nkd-link" href="http://www.google">Level #2 Item #3</a>
</li>
</ul>
</li>
<li class="nkd-item js-nkd-item">
<a class="nkd-link js-nkd-link" href="http://www.google">Level #1 Item #2</a>
</li>
</ul>
</li>
<li class="nkd-item js-nkd-item">
<a class="nkd-link js-nkd-link" href="http://www.google">Level #0 Item #1</a>
<ul class="nkd-level js-nkd-level" data-level="1">
<li class="nkd-item js-nkd-item">
<a class="nkd-link js-nkd-link" href="http://www.google">Level #1 Item #0</a>
</li>
<li class="nkd-item js-nkd-item">
<a class="nkd-link js-nkd-link" href="http://www.google">Level #1 Item #2</a>
</li>
</ul>
</li>
<li class="nkd-item js-nkd-item">
<a class="nkd-link js-nkd-link" href="http://www.google">Level #0 Item #2</a>
</li>
<li class="nkd-item js-nkd-item">
<a class="nkd-link js-nkd-link" href="http://www.google">Level #0 Item #3</a>
</li>
<li class="nkd-item js-nkd-item">
<a class="nkd-link js-nkd-link" href="http://www.google">Level #0 Item #4</a>
</li>
</ul>
</nav>
</body>
</html>