-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
404 lines (378 loc) · 16.7 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
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
<!DOCTYPE html>
<html>
<head>
<title>Flat Gauge JS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="keywords" content="flat,gauge,JS">
<meta name="author" content="[email protected]">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.10/semantic.min.css">
<link rel="stylesheet" href="site/css/main.css">
<link rel="shortcut icon" href="favicon.png">
</head>
<body class="pushable">
<!-- Following Menu -->
<!--<div class="ui large top fixed menu transition hidden">
<div class="ui container">
<a class="active item">Home</a>
<a class="item">Work</a>
<a class="item">Company</a>
<a class="item">Careers</a>
<div class="right menu">
<div class="item">
<a class="ui button">Log in</a>
</div>
<div class="item">
<a class="ui primary button">Sign Up</a>
</div>
</div>
</div>
</div>-->
<!-- Sidebar Menu -->
<!--<div class="ui vertical inverted sidebar menu left">
<a class="active item">Home</a>
<a class="item">Work</a>
<a class="item">Company</a>
<a class="item">Careers</a>
<a class="item">Login</a>
<a class="item">Signup</a>
</div>-->
<!-- Page Contents -->
<div class="pusher">
<div class="ui inverted vertical masthead center aligned segment main-bg">
<!--<div class="ui container">
<div class="ui large secondary inverted pointing menu">
<a class="toc item"><i class="sidebar icon"></i></a>
<a class="active item">Home</a>
<a class="item">Work</a>
<a class="item">Company</a>
<a class="item">Careers</a>
<div class="right item">
<a class="ui inverted button">Log in</a>
<a class="ui inverted button">Sign Up</a>
</div>
</div>
</div>-->
<div class="ui text container center-vertical float-right">
<h1 class="ui inverted header">
Flat-Gauge-JS
</h1>
<h2>a flat design gauges js library.</h2>
<!--<div class="ui huge primary button">Get Started <i class="right arrow icon"></i></div>-->
<h4>
designed by <a target="_blank" class="theme-color" href="https://www.linkedin.com/in/or-sabag-3b809497/">Or Sabag</a>
</h4>
</div>
</div>
<div class="ui vertical stripe segment">
<div class="ui middle aligned stackable grid container">
<div class="row">
<div class="eight wide column text-center">
<div class="ui card center-me">
<div class="content">
<div class="header">No jQuery required</div>
<div class="meta">standalone</div>
<!--<div class="description">
<p>
</p>
</div>-->
</div>
</div>
</div>
<div class="eight wide column text-center">
<div class="ui card center-me">
<div class="content">
<div class="header">No d3 required</div>
<div class="meta">standalone</div>
<!--<div class="description">
<p>
</p>
</div>-->
</div>
</div>
</div>
</div>
</div>
</div>
<div class="ui vertical stripe segment">
<div class="ui middle aligned stackable grid container">
<div class="row">
<div class="eight wide column text-center">
<h3 class="ui header">Spinner</h3>
<code>
var spinner = new FlatGauge.Spinner(element, options);
</code>
<br><br><br>
<div class="ui large button" id="toggleSpinner">toggle spinner</div>
</div>
<div class="eight wide right floated column">
<div class="center-me diameter" id="spinnerTarget"></div>
<!--<img src="assets/images/wireframe/white-image.png" class="ui large bordered rounded image">-->
</div>
</div>
<div class="row">
<div class="column">
<h4 class="ui horizontal header divider">
<a href="#">Options:</a>
</h4>
<code>
var options = {
rotationSpeed: 1000,
title: {
text: 'Spinning'
},
highlight: true
}
</code>
<br>
<code>
spinner.update(options);
</code>
</div>
</div>
</div>
</div>
<div class="ui vertical stripe segment">
<div class="ui middle aligned stackable grid container">
<div class="row">
<div class="eight wide column text-center">
<h3>Tune</h3>
<code>
var tune = new FlatGauge.Tune(element, options);
</code>
<div>
needle
<input type="range" value="50" id="tuneRange" min="0" max="100">
<br>
<input type="number" disabled id="rangeNumber">
</div>
<div>
left
<input type="range" value="30" id="tuneRangeLeft" min="0" max="100">
<input type="checkbox" id="tuneHollowLeft">
<br>
<input type="number" disabled id="rangeLeftNumber">
</div>
<div>
rigth
<input type="range" value="70" id="tuneRangeRight" min="0" max="100">
<input type="checkbox" id="tuneHollowRight">
<br>
<input type="number" disabled id="rangeRightNumber">
</div>
<div>
icon
<input type="range" value="70" id="tuneRangeIcon" min="0" max="100">
<input type="checkbox" id="tuneRangeIconEnabled">
<br>
<input type="number" disabled id="rangeIconNumber">
</div>
</div>
<div class="eight wide right floated column">
<div class="center-me" id="tuneTarget"></div>
</div>
</div>
<div class="row" id="tuneCodeWrap">
<div class="column">
<h4 class="ui horizontal header divider">
<a href="#">Options:</a>
</h4>
<code>
var options =
</code>
<code id="tuneCode"></code>
<br>
<code>
tune.update(options);
</code>
</div>
</div>
</div>
</div>
<div class="ui vertical stripe segment">
<div class="ui middle aligned stackable grid container">
<div class="row">
<div class="eight wide column text-center">
<h3>Multi-Tune</h3>
<code>
var multitune = new FlatGauge.MultiTune(element, options);
</code>
<div>
needle
<input type="range" value="50" id="multituneRange" min="0" max="100">
<br>
<input type="number" disabled id="multituneRangeNumber">
</div>
<div>
left
<input type="range" value="30" id="multituneRangeLeft" min="0" max="100">
<input type="checkbox" id="multituneHollowLeft">
<br>
<input type="number" disabled id="multituneRangeLeftNumber">
</div>
<div>
rigth
<input type="range" value="70" id="multituneRangeRight" min="0" max="100">
<input type="checkbox" id="multituneHollowRight">
<br>
<input type="number" disabled id="multituneRangeRightNumber">
</div>
<div>
icon
<input type="range" value="70" id="multituneRangeIcon" min="0" max="100">
<input type="checkbox" id="multituneRangeIconEnabled">
<br>
<input type="number" disabled id="multirangeIconNumber">
</div>
</div>
<div class="eight wide right floated column">
<div class="center-me" id="multituneTarget"></div>
</div>
</div>
<div class="row" id="multituneCodeWrap">
<div class="column">
<h4 class="ui horizontal header divider">
<a href="#">Options:</a>
</h4>
<code>
var options =
</code>
<code id="multituneCode"></code>
<br>
<code>
multitune.update(options);
</code>
</div>
</div>
</div>
</div>
<div class="ui vertical stripe segment">
<div class="ui middle aligned stackable grid container">
<div class="row">
<div class="eight wide column text-center">
<h3>Timer</h3>
<code>
var timer = new FlatGauge.Timer(element, options);
</code>
</div>
<div class="eight wide right floated column">
<div class="center-me" id="timerTarget"></div>
</div>
</div>
<div class="row">
<div class="column">
<h4 class="ui horizontal header divider">
<a href="#">Options:</a>
</h4>
<code>
{
animationDuration: 500,
time: {
hours: 2,
minutes: 45,
seconds: 3
},
percentage: 33
}
</code>
</div>
</div>
</div>
</div>
<div class="ui vertical stripe segment">
<div class="ui middle aligned stackable grid container">
<div class="row">
<div class="eight wide column text-center">
<h3>AM-PM (not ready yet!)</h3>
<code>
var ampm = new FlatGauge.AmPm(element, options);
</code>
</div>
<div class="eight wide right floated column">
<div class="center-me" id="ampmTarget"></div>
<br><br>
</div>
</div>
<div class="row">
<div class="column">
<h4 class="ui horizontal header divider">
<a href="#">Options:</a>
</h4>
<code>
{
rotationSpeed: 1000
}
</code>
</div>
</div>
</div>
</div>
<div class="ui vertical stripe segment">
<div class="ui middle aligned stackable grid container">
<div class="row">
<div class="eight wide column text-center">
<h3>Range</h3>
<code>
var range = new FlatGauge.Range(element, options);
</code>
</div>
<div class="eight wide right floated column">
<div class="center-me" id="rangeTarget"></div>
</div>
</div>
<div class="row">
<div class="column">
<h4 class="ui horizontal header divider">
<a href="#">Options:</a>
</h4>
<code>
{
title: {
text: 'range'
},
showEdges: false,
minMaxVal: { min: 25, max: 75 },
highlight: true,
hideBottom: true
}
</code>
</div>
</div>
</div>
</div>
<div class="ui inverted vertical footer segment">
<div class="ui container">
<div class="ui stackable inverted divided equal height stackable grid">
<div class="three wide column">
<h4 class="ui inverted header">github</h4>
<div class="ui inverted link list">
<a href="https://github.com/ranbuch/flat-gauge-js" class="item">repository</a>
<a href="https://github.com/ranbuch/flat-gauge-js/issues" class="item">bugs</a>
</div>
</div>
<div class="three wide column">
<h4 class="ui inverted header">npm</h4>
<div class="ui inverted link list">
<a href="https://www.npmjs.com/package/flat-gauge-js" class="item">module</a>
</div>
</div>
<div class="three wide column">
<h4 class="ui inverted header">bower</h4>
<div class="ui inverted link list">
<a href="https://libraries.io/bower/flat-gauge-js" class="item">module</a>
</div>
</div>
<div class="seven wide column">
<h4 class="ui inverted header">license</h4>
<p>MIT</p>
</div>
</div>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/semantic-ui/2.2.10/semantic.min.js"></script>
<script src="site/script/main.js"></script>
<script src="dist/bundle.js"></script>
</body>
</html>