|
@@ -40,8 +40,8 @@
|
|
<li><a href="https://github.com/nostalgiaz/bootstrap-switch/archive/v2.0.1.zip">2.0.1 (Legacy)</a></li>
|
|
<li><a href="https://github.com/nostalgiaz/bootstrap-switch/archive/v2.0.1.zip">2.0.1 (Legacy)</a></li>
|
|
</ul>
|
|
</ul>
|
|
</li>
|
|
</li>
|
|
- <li><a href="#new">What's new</a></li>
|
|
|
|
- <li><a href="#start">Start</a></li>
|
|
|
|
|
|
+ <li><a href="index.html#start">Start</a></li>
|
|
|
|
+ <li><a href="index.html#examples">Examples</a></li>
|
|
<li class="dropdown"><a href="#" data-toggle="dropdown">Documentation<span class="caret"></span></a>
|
|
<li class="dropdown"><a href="#" data-toggle="dropdown">Documentation<span class="caret"></span></a>
|
|
<ul class="dropdown-menu">
|
|
<ul class="dropdown-menu">
|
|
<li><a href="/documentation-3.html">Version 3 (Stable)</a></li>
|
|
<li><a href="/documentation-3.html">Version 3 (Stable)</a></li>
|
|
@@ -63,34 +63,19 @@
|
|
</p>
|
|
</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>
|
|
<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=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>
|
|
|
|
|
|
+ <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>
|
|
</div>
|
|
</div>
|
|
|
|
+ <!--
|
|
|
|
+ .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.
|
|
|
|
+
|
|
|
|
+ -->
|
|
<div id="start">
|
|
<div id="start">
|
|
<h1 class="page-header">Getting Started</h1>
|
|
<h1 class="page-header">Getting Started</h1>
|
|
<p>Include the dependencies: jQuery, Bootstrap and Bootstrap Switch CSS + Javascript.</p>
|
|
<p>Include the dependencies: jQuery, Bootstrap and Bootstrap Switch CSS + Javascript.</p>
|
|
@@ -106,6 +91,53 @@
|
|
<pre><code>$("[name='my-checkbox']").bootstrapSwitch();</code></pre>
|
|
<pre><code>$("[name='my-checkbox']").bootstrapSwitch();</code></pre>
|
|
<p>Enjoy.</p>
|
|
<p>Enjoy.</p>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div id="examples">
|
|
|
|
+ <h1 class="page-header">Examples</h1>
|
|
|
|
+ <div class="row">
|
|
|
|
+ <div class="col-sm-6">
|
|
|
|
+ <h2 class="h4">State</h2>
|
|
|
|
+ <p>
|
|
|
|
+ <input id="switch-state" type="checkbox" checked>
|
|
|
|
+ </p>
|
|
|
|
+ <p>
|
|
|
|
+ <button type="button" data-state-toggle class="btn btn-default">Toggle</button>
|
|
|
|
+ <button type="button" data-state-set="true" class="btn btn-default">Set as true</button>
|
|
|
|
+ <button type="button" data-state-set="false" class="btn btn-default">Set as false</button>
|
|
|
|
+ <button type="button" data-state-get class="btn btn-default">Get</button>
|
|
|
|
+ </p>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="col-sm-6">
|
|
|
|
+ <h2 class="h4">Size</h2>
|
|
|
|
+ <p>
|
|
|
|
+ <input id="switch-size" type="checkbox" checked>
|
|
|
|
+ </p>
|
|
|
|
+ <p>
|
|
|
|
+ <button type="button" data-size-set="mini" class="btn btn-default">Mini</button>
|
|
|
|
+ <button type="button" data-size-set="small" class="btn btn-default">Small</button>
|
|
|
|
+ <button type="button" data-size-set="normal" class="btn btn-default">Normal</button>
|
|
|
|
+ <button type="button" data-size-set="large" class="btn btn-default">Large</button>
|
|
|
|
+ </p>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="col-sm-6">
|
|
|
|
+ <h2 class="h4">Animate</h2>
|
|
|
|
+ <p>
|
|
|
|
+ <input id="switch-animate" type="checkbox" checked>
|
|
|
|
+ </p>
|
|
|
|
+ <p>
|
|
|
|
+ <button type="button" data-animate-toggle class="btn btn-default">Toggle</button>
|
|
|
|
+ </p>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="col-sm-6">
|
|
|
|
+ <h2 class="h4">Disabled</h2>
|
|
|
|
+ <p>
|
|
|
|
+ <input id="switch-disabled" type="checkbox" checked>
|
|
|
|
+ </p>
|
|
|
|
+ <p>
|
|
|
|
+ <button type="button" data-disabled-toggle class="btn btn-default">Toggle</button>
|
|
|
|
+ </p>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="container bottom">
|
|
<div class="container bottom">
|
|
<p>
|
|
<p>
|