forked from Bttstrp/bootstrap-switch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
126 lines (126 loc) · 7.05 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Turn checkboxes and radio buttons in toggle switches.">
<meta name="author" content="Mattia Larentis, Emanuele Marchi and Peter Stein">
<title>Bootstrap Switch · Turn checkboxes and radio buttons in toggle switches</title>
<link href="http://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet">
<link href="docs/css/bootstrap.min.css" rel="stylesheet">
<link href="docs/css/highlight.css" rel="stylesheet">
<link href="dist/css/bootstrap3/bootstrap-switch.css" rel="stylesheet">
<link href="docs/css/main.css" rel="stylesheet">
<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-43092768-1']);
_gaq.push(['_trackPageview']);
(function () {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body><a href="https://github.com/nostalgiaz/bootstrap-switch" id="github"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
<header role="banner" class="navbar navbar-default navbar-fixed-top top">
<div class="container">
<div class="navbar-header">
<button type="button" data-toggle="collapse" data-target="#collapse" class="navbar-toggle"><span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button><a href="../" class="navbar-brand">Bootstrap Switch <strong>3</strong></a>
</div>
<nav id="collapse" role="navigation" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="dropdown"><a href="#" data-toggle="dropdown">Download<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="https://github.com/nostalgiaz/bootstrap-switch/archive/master.zip">3 (Stable)</a></li>
<li><a href="https://github.com/nostalgiaz/bootstrap-switch/archive/v2.0.1.zip">2.0.1 (Legacy)</a></li>
</ul>
</li>
<li><a href="#new">What's new</a></li>
<li><a href="#start">Start</a></li>
<li class="dropdown"><a href="#" data-toggle="dropdown">Documentation<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="/documentation-3.html">Version 3 (Stable)</a></li>
<li><a href="/documentation-2.html">Version 2.0.1 (Legacy)</a></li>
</ul>
</li>
<li><a href="https://github.com/nostalgiaz/bootstrap-switch/issues">Bug reports</a></li>
</ul>
</nav>
</div>
</header>
<div class="container content">
<div class="header">
<h2 class="title">Bootstrap Switch <strong>3</strong> <span class="old-version">2.0.1</span></h2>
<p class="lead">Turn checkboxes and radio buttons in toggle switches.</p>
<p>Select the version to download:</p>
<p>
<input type="checkbox" name="download-version" checked data-size="large" data-on-text="3" data-off-text="2.0.1">
</p>
<p><a href="https://github.com/nostalgiaz/bootstrap-switch/archive/master.zip" id="download-3" class="btn btn-lg btn-primary">Download 3</a><a href="https://github.com/nostalgiaz/bootstrap-switch/archive/v2.0.1.zip" id="download-2" class="btn btn-lg btn-primary">Download 2.0.1</a></p><br><br>
<iframe src="http://ghbtns.com/github-btn.html?user=nostalgiaz&repo=bootstrap-switch&type=watch&count=true&size=large" allowtransparency="true" frameborder="0" scrolling="0" width="184" height="30"></iframe>
<iframe src="http://ghbtns.com/github-btn.html?user=nostalgiaz&repo=bootstrap-switch&type=fork&count=true&size=large" allowtransparency="true" frameborder="0" scrolling="0" width="144" height="30"></iframe><br><br><br>
</div>
<div class="alert alert-info">
<p>
<strong>Documentation in progress!</strong><br>
It might not seem, but it's actually a lot of work. The goal is to make it as cleanest, most readable and
understandable as possible.<br>
If you feel there is something missing, submit a
<a href="https://github.com/nostalgiaz/bootstrap-switch/pulls">pull request</a> with your changes. Every
help is needed. Many thanks.
</p>
</div>
<div id="new">
<h1 class="page-header">What's new in version 3</h1>
<ul>
<li>API redesign for a more intuitive use</li>
<li>Entire code source rewriting focused on cleanliness and performance</li>
<li>Initialization options can be passed as JavaScript object or written as <code>data-*</code></li>
<li>Plugin constructor publicly available from <code>$.fn.bootstrapSwitch.Constructor</code></li>
<li>Plugin instance publicly available calling <code>.data('bootstrap-switch')</code></li>
<li>Global overridable defaults options</li>
<li>Improved flexibility with <code>baseClass</code> and <code>wrapperClass</code> options</li>
<li>New <code>onInit</code> event</li>
<li>Event namespacing</li>
<li>Full Bootstrap 3 support</li>
<li>A lot of fixed bug, as usual</li>
</ul>
</div>
<div id="start">
<h1 class="page-header">Getting Started</h1>
<p>Include the dependencies: jQuery, Bootstrap and Bootstrap Switch CSS + Javascript.</p>
<pre><code>[...]
<link href="bootstrap.css" rel="stylesheet">
<link href="bootstrap-switch.css" rel="stylesheet">
<script src="jquery.js"></script>
<script src="bootstrap-switch.js"></script>
[...]</code></pre>
<p>Add your checkbox.</p>
<pre><code><input type="checkbox" name="my-checkbox" checked></code></pre>
<p>Initialize Bootstrap Switch.</p>
<pre><code>$("[name='my-checkbox']").bootstrapSwitch();</code></pre>
<p>Enjoy.</p>
</div>
</div>
<div class="container bottom">
<p>
Licensed under the
<a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License, Version 2.0</a>
· Created by
<a href="https://github.com/nostalgiaz" target="_blank">Mattia Larentis</a>
· Mantained by
<a href="https://github.com/lostcrew" target="_blank">Emanuele Marchi</a>
</p>
</div>
<script src="docs/js/jquery.min.js"></script>
<script src="docs/js/bootstrap.min.js"></script>
<script src="docs/js/highlight.js"></script>
<script src="dist/js/bootstrap-switch.js"></script>
<script src="docs/js/main.js"></script>
</body>
</html>