This repository has been archived by the owner on Feb 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.php
160 lines (146 loc) · 6.17 KB
/
index.php
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Candlestick</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet">
<link href="lib/css/candlestick.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-default">
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="./">jQuery Candlestick</a>
</div>
<div class="collapse navbar-collapse" id="navbar-collapse">
<ul class="nav navbar-nav">
<li class="">
<a href="https://github.com/EdouardTack/candlestick/blob/master/README.md">Documentation</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="page-header">
<h1>Candlestick jQuery plugin</h1>
<p>
This plugin create an ergonomic element to choose between 3 options. It's like a checkbox with one more option. You can configure <b>On</b> value, <b>Off</b> Value and <b>Default</b> Value.
</p>
<p>
It's a jQuery plugin and it uses CSS transition.
</p>
<p>
<a class="github-button" href="https://github.com/EdouardTack/candlestick" data-style="mega" aria-label="Fork EdouardTack/candlestick on GitHub">Fork my repo candlestick</a>
</p>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-xs-12">
<h2>Compatibility</h2>
<ul>
<li>
Browsers
<ul>
<li>Chrome</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-xs-12">
<h2>Basic usage</h2>
<input class="js-candlestick" type="checkbox" name="test" value="" id="test">
<input class="js-candlestick" type="checkbox" name="test2" value="1" id="test2">
</div>
</div>
<div class="row">
<div class="col-xs-12">
<code>
$(".js-candlestick").candlestick();
</code>
</div>
</div>
</div>
<hr>
<div class="container">
<div class="row">
<div class="col-xs-12">
<h2>Readonly element</h2>
<input class="js-candlestick" type="checkbox" name="truc[]" value="" readonly>
</div>
</div>
</div>
<hr>
<div class="container">
<div class="row">
<div class="col-xs-12">
<h2>Disable element</h2>
<input class="js-candlestick" type="checkbox" name="truc[zr][]" value="" disabled>
</div>
</div>
</div>
<hr>
<div class="container">
<div class="row">
<div class="col-xs-12">
<input class="with-after-setting" type="checkbox" name="machin" value="" id="machin">
</div>
<div class="row">
<div class="col-xs-12">
<code>
$('.with-after-setting').candlestick({
afterSetting: function(input, wrapper, value) {
alert('The new value is :"' + value + '"');
}
});
</code>
</div>
</div>
</div>
</div>
<hr>
<div class="container">
<div class="row">
<div class="col-xs-12">
<h2>Documentation</h2>
</div>
</div>
</div>
<script type="text/javascript" src="lib/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="lib/bootstrap/dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="lib/hammerjs/hammer.min.js"></script>
<script type="text/javascript" src="lib/jquery-hammerjs/jquery.hammer.js"></script>
<script type="text/javascript" src="dist/candlestick.min.js"></script>
<script type="text/javascript">
jQuery(function($) {
$(".js-candlestick").candlestick();
$('.with-after-setting').candlestick({
afterSetting: function(input, wrapper, value) {
alert('The new value is :"' + value + '"');
}
});
});
</script>
<script async defer id="github-bjs" src="https://buttons.github.io/buttons.js"></script>
</body>
</html>