-
Notifications
You must be signed in to change notification settings - Fork 1
/
hash.html
executable file
·125 lines (125 loc) · 5.16 KB
/
hash.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
<!DOCTYPE html>
<html lang="ru-RU">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="author" content="//vk.com/tishukn">
<link rel="stylesheet" href="demo/prism.css">
<link rel="stylesheet" type="text/css" href="demo/style.css">
<meta name="keywords" content="">
<meta name="description" content="">
<title>Unitoggle Demo</title>
</head>
<body><!--[if lte IE 9]>
<p class="browsehappy">Вы используете <strong>устаревший</strong> браузер. Пожалуйста <a href="//browsehappy.com/" target="_blank">обновите ваш браузер</a> чтобы воспользоваться всем функционалом сайта.</p><![endif]-->
<div class="container">
<div class="header">
<h1>Unitoggle - Hash Demo</h1>
<p>← <a href="index.html">Back</a> | <a href="//github.com/rainjeck/unitoggle">Github</a></p>
</div>
<div class="panel">
<div class="panel-item">
<h3>Tabs</h3>
<p>HTML:</p>
<pre class="language-markup"><code><ul>
<li class='is-active' data-toggle='toggle1' data-toggle-group='tab'>Tab 1</li>
<li data-toggle='toggle2' data-toggle-group='tab'>Tab 2</li>
<li data-toggle='toggle3' data-toggle-group='tab'>Tab 3</li>
</ul>
<div id='toggle1' class='tab'>
<p>Content Tab 1</p>
</div>
<div id='toggle2' class='tab'>
<p>Content Tab 2</p>
</div>
<div id='toggle3' class='tab'>
<p>Content Tab 3</p>
</div>
...
<ul>
<li class='is-active' data-toggle='toggle4' data-toggle-group='tab2'>Tab 4</li>
<li data-toggle='toggle5' data-toggle-group='tab2'>Tab 5</li>
<li data-toggle='toggle6' data-toggle-group='tab2'>Tab 6</li>
</ul>
<div id='toggle4' class='tab'>
<p>Content Tab 4</p>
</div>
<div id='toggle5' class='tab'>
<p>Content Tab 5</p>
</div>
<div id='toggle6' class='tab'>
<p>Content Tab 6</p>
</div>
</code></pre>
<p>JS:</p>
<pre class="language-javascript"><code>const toggler = new Unitoggle({
hash: true
});
</code></pre>
<h4>DEMO:</h4>
<div id="example-hash">
<div class="panel">
<div class="panel-item">
<ul class="tabs">
<li class="tabs-item" data-toggle="toggle1" data-toggle-group="tab1">Tab 1</li>
<li class="tabs-item" data-toggle="toggle2" data-toggle-group="tab1">Tab 2</li>
<li class="tabs-item is-active" data-toggle="toggle3" data-toggle-group="tab1">Tab 3</li>
</ul>
<div class="tab tab-demo" id="toggle1">
<p>Tab Content 1</p>
</div>
<div class="tab tab-demo" id="toggle2">
<p>Tab Content 2</p>
</div>
<div class="tab tab-demo" id="toggle3">
<p>Tab Content 3</p>
</div>
</div>
<!-- end .panel-item-->
<div class="panel-item">
<ul class="tabs">
<li class="tabs-item" data-toggle="toggle4" data-toggle-group="tab2">Tab 4</li>
<li class="tabs-item is-active" data-toggle="toggle5" data-toggle-group="tab2">Tab 5</li>
<li class="tabs-item" data-toggle="toggle6" data-toggle-group="tab2">Tab 6</li>
</ul>
<div class="tab tab-demo" id="toggle4">
<p>Tab Content 4</p>
</div>
<div class="tab tab-demo" id="toggle5">
<p>Tab Content 5</p>
</div>
<div class="tab tab-demo" id="toggle6">
<p>Tab Content 6</p>
</div>
</div>
<!-- end .panel-item-->
<div class="panel-item">
<ul class="tabs">
<li class="tabs-item is-active" data-toggle="toggle7" data-toggle-group="tab3">Tab 7</li>
<li class="tabs-item" data-toggle="toggle8" data-toggle-group="tab3">Tab 8</li>
<li class="tabs-item" data-toggle="toggle9" data-toggle-group="tab3">Tab 9</li>
</ul>
<div class="tab tab-demo" id="toggle7">
<p>Tab Content 7</p>
</div>
<div class="tab tab-demo" id="toggle8">
<p>Tab Content 8</p>
</div>
<div class="tab tab-demo" id="toggle9">
<p>Tab Content 9</p>
</div>
</div>
<!-- end .panel-item-->
</div>
</div>
</div>
</div>
</div>
<script src="demo/prism.js"></script>
<script src="dest/unitoggle.js"></script>
<script src="demo/demo.js"></script>
</body>
</html>