-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample.htm
185 lines (153 loc) · 7.02 KB
/
example.htm
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
<html class="no-js">
<head>
<meta charset="utf-8">
<title>VOTUM Omni-Toggle</title>
<meta name="robots" content="NOINDEX,NOFOLLOW">
<script>
document.documentElement.className = document.documentElement.className.replace( 'no-js', 'js' );
</script>
<link rel="stylesheet" href="../bower_components/base/dist/style.css">
<style>
.js .toggle-target {
-moz-transition: max-height 300ms ease-in;
-o-transition: max-height 300ms ease-in;
-webkit-transition: max-height 300ms ease-in;
transition: max-height 300ms ease-in;
overflow: hidden;
}
.js .toggle-target:not(.visible) {
max-height: 0 !important;
}
.toggle-target.toggle-no-animation {
-moz-transition: initial;
-o-transition: initial;
-webkit-transition: initial;
transition: initial;
}
.toggle-target.toggle-no-animation.visible {
overflow: visible;
}
/* Fix collapsing margins */
.toggle-target:before, .toggle-target:after{
content: ' ';
display: table;
}
</style>
</head>
<body class="container clear">
<header class="col-12">
<h1>VOTUM Omni-Toggle Examples</h1>
</header>
<section class="col-12">
<header><h2>Toggle Single</h2></header>
<p>
<a href="#my-single-target" data-toggle=".my-single-target" data-toggle-text="Show Less">Show More</a>
</p>
<div id="my-single-target" class="my-single-target">
<h3>Additional Information</h3>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>
</div>
<hr />
</section>
<section class="col-12">
<header><h2>Toggle Multiple</h2></header>
<div class="my-multi-target toggle-target">
<h3>Additional Information 1</h3>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>
</div>
<p>
<button data-toggle=".my-multi-target, .my-multi-target2" data-toggle-text="Show Less"
data-toggle-default-state="true" data-toggle-default-text="Show More">Show More</button>
</p>
<div class="my-multi-target2 toggle-target">
<h3>Additional Information</h3>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>
</div>
<hr />
</section>
<section class="col-12">
<header><h2>Toggle Inverse</h2></header>
<p>
<button data-toggle=".my-inverse-target, .my-inverse-target2"
data-toggle-default-state="true">Show More</button>
</p>
<div class="my-inverse-target">
<h3>Additional Information 1</h3>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>
</div>
<div class="my-inverse-target2 toggle-target visible full">
<h3>Additional Information 2</h3>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>
</div>
<hr />
</section>
<section class="col-12">
<header><h2>Toggle In Toggle</h2></header>
<p>
<button id="multi-toggle-1-first-button" data-toggle=".my-first-target, .my-second-target">First Button</button>
</p>
<div class="my-first-target toggle-target visible full">
<h3>Additional Information 1</h3>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>
</div>
<div class="my-second-target">
<h3>Additional Information 2</h3>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>
<p>
<button id="multi-toggle-1-second-button" data-toggle=".my-third-target">Second Button</button>
</p>
<div class="my-third-target">
<h3>Additional Information 3</h3>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>
</div>
</div>
<hr />
</section>
<section class="col-12">
<header><h2>Radio Button Toggle</h2></header>
<p>
<input data-toggle=".my-first-radio-target, .my-second-radio-target" checked="" type="radio"
name="radio-buttons" id="radio1">
<label class="inline-label" for="radio1">Private</label>
<input data-toggle=".my-second-radio-target, .my-first-radio-target" type="radio" name="radio-buttons"
id="radio2">
<label class="inline-label" for="radio2">Company</label>
</p>
<div class="visible full my-first-radio-target toggle-no-animation">
<h3>Private</h3>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>
</div>
<div class="my-second-radio-target toggle-no-animation">
<h3>Company</h3>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>
</div>
<hr />
</section>
<section class="col-12">
<header><h2>Checkbox Toggle</h2></header>
<p>
<input type="checkbox" name="some-checkbox" id="i-checkbox-toggle" data-toggle=".checkbox-target"
data-toggle-text="Show contents below" data-toggle-default-state="true"
data-toggle-default-text="">
<label class="inline-label" for="i-checkbox-toggle">Hide contents below</label>
</p>
<div class="visible full checkbox-target toggle-target" style="max-height: 43px;">
<h3>Company</h3>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>
</div>
<hr />
</section>
<script src="../bower_components/requirejs/require.js" data-main="example.js"></script>
</body>
</html>