index.html 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="description" content="Turn checkboxes and radio buttons in toggle switches.">
  8. <meta name="author" content="Mattia Larentis, Emanuele Marchi and Peter Stein">
  9. <title>Bootstrap Switch · Turn checkboxes and radio buttons in toggle switches</title>
  10. <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
  11. <link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css">
  12. <link rel="stylesheet" href="http://bdmdesign.github.io/bootstrap-switch/static/stylesheets/flat-ui-fonts.css">
  13. <link rel="stylesheet" href="build/css/bootstrap3/bootstrap-switch.css" />
  14. <link rel="stylesheet" href="docs/lib/prism.css">
  15. <link rel="stylesheet" href="docs/index.css">
  16. <script>
  17. var _gaq = _gaq || [];
  18. _gaq.push(['_setAccount', 'UA-43092768-1']);
  19. _gaq.push(['_trackPageview']);
  20. (function () {
  21. var ga = document.createElement('script');
  22. ga.type = 'text/javascript';
  23. ga.async = true;
  24. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  25. var s = document.getElementsByTagName('script')[0];
  26. s.parentNode.insertBefore(ga, s);
  27. })();
  28. </script>
  29. </head>
  30. <body>
  31. <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">
  32. </a>
  33. <header class="navbar navbar-default navbar-fixed-top header" role="banner">
  34. <div class="container">
  35. <div class="navbar-header">
  36. <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#collapse">
  37. <span class="sr-only">Toggle navigation</span>
  38. <span class="icon-bar"></span>
  39. <span class="icon-bar"></span>
  40. <span class="icon-bar"></span>
  41. </button>
  42. <a href="../" class="navbar-brand">Bootstrap Switch</a>
  43. </div>
  44. <nav id="collapse" class="collapse navbar-collapse" role="navigation">
  45. <ul class="nav navbar-nav">
  46. <li><a href="#getting-started">Getting started</a></li>
  47. <li class="dropdown">
  48. <a href="#documentation" data-toggle="dropdown">Documentation <span class="caret"></span></a>
  49. <ul class="dropdown-menu">
  50. <li><a href="#sizes">Sizes</a></li>
  51. <li><a href="#colors">Colors</a></li>
  52. <li><a href="#animation">Animation</a></li>
  53. <li><a href="#disabled">Disabled / Readonly</a></li>
  54. <li><a href="#text">Text</a></li>
  55. <li><a href="#label-text">Label Text</a></li>
  56. <li><a href="#icon-label-text">Icon Label Text</a></li>
  57. <li><a href="#event-handler">Event Handler</a></li>
  58. <li><a href="#label-event-handler">Label Event Handler</a></li>
  59. <li><a href="#state">State</a></li>
  60. <li><a href="#destroy">Destroy</a></li>
  61. <li><a href="#disable">Disable / Readonly</a></li>
  62. <li><a href="#radio">Radio</a></li>
  63. <li><a href="#form">Form</a></li>
  64. <li><a href="#modal">Modal</a></li>
  65. </ul>
  66. </li>
  67. </ul>
  68. </nav>
  69. </div>
  70. </header>
  71. <main id="main" role="main">
  72. <div class="container">
  73. <h1>Bootstrap Switch <span class="small">3.0.0</span></h1>
  74. <p class="lead">Turn checkboxes and radio buttons in toggle switches.</p>
  75. <br>
  76. <a href="#">Download Bootstrap Switch</a>
  77. <iframe src="http://ghbtns.com/github-btn.html?user=nostalgiaz&amp;repo=bootstrap-switch&amp;type=watch&amp;count=true" allowtransparency="true" frameborder="0" scrolling="0" width="120" height="30"></iframe>
  78. <iframe src="http://ghbtns.com/github-btn.html?user=nostalgiaz&amp;repo=bootstrap-switch&amp;type=fork&amp;count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="30"></iframe>
  79. <iframe src="http://ghbtns.com/github-btn.html?user=nostalgiaz&amp;type=follow&amp;count=true" allowtransparency="true" frameborder="0" scrolling="0" width="190" height="30"></iframe>
  80. <iframe src="http://ghbtns.com/github-btn.html?user=LostCrew&amp;type=follow&amp;count=true" allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe>
  81. <iframe src="http://ghbtns.com/github-btn.html?user=BdMdesigN&amp;type=follow&amp;count=true" allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe>
  82. <br>
  83. <br>
  84. <p class="lead people">
  85. <a href="http://larentis.eu" target="_blank">Mattia Larentis</a> · <a href="http://www.bdmdesign.org/" target="_blank">Peter Stein</a> · <a href="http://www.lostcrew.it" target="_blank">Emanuele Marchi</a>
  86. </p>
  87. </div>
  88. </div>
  89. </main>
  90. <div class="container">
  91. <div class="row">
  92. <div class="col-sm-10 col-sm-offset-1">
  93. <section id="getting-started" class="section">
  94. <div class="page-header">
  95. <h2><a href="#getting-started">Getting started</a></h2>
  96. </div>
  97. <p>Include the dependencies: jQuery, Bootstrap and Bootstrap Switch CSS + Javascript.</p>
  98. <pre class="language-markup"><code>[...]
  99. &lt;link href="bootstrap.css" rel="stylesheet"&gt;
  100. &lt;link href="bootstrap-switch.css" rel="stylesheet"&gt;
  101. &lt;script src="jquery.js"&gt;&lt;/script&gt;
  102. &lt;script src="bootstrap-switch.js"&gt;&lt;/script&gt;
  103. [...]</code></pre>
  104. <p>Add your checkbox.</p>
  105. <pre class="language-markup"><code>&lt;input type="checkbox" name="my-checkbox" checked&gt;</code></pre>
  106. <p>Initialize Bootstrap Switch.</p>
  107. <pre class="language-javascript"><code>$("[name='my-checkbox']").bootstrapSwitch();</code></pre>
  108. <p>Enjoy.</p>
  109. </section>
  110. <div class="page-header">
  111. <h2><a href="#documentation">Documentation</a></h2>
  112. </div>
  113. <section id="sizes" class="section">
  114. <div class="page-header">
  115. <h3><a href="#sizes">Sizes</a></h3>
  116. </div>
  117. <input type="checkbox" checked data-size="large">
  118. <input type="checkbox" checked>
  119. <input type="checkbox" checked data-size="small">
  120. <input type="checkbox" checked data-size="mini">
  121. <br>
  122. <br>
  123. <p>Change the size programmatically:</p>
  124. <input type="checkbox" id="dimension-switch" checked>
  125. <br>
  126. <br>
  127. <button id="btn-size-large-switch" class="btn btn-default">Large</button>
  128. <button id="btn-size-regular-switch" class="btn btn-default">Regular</button>
  129. <button id="btn-size-small-switch" class="btn btn-default">Small</button>
  130. <button id="btn-size-mini-switch" class="btn btn-default">Mini</button>
  131. <br>
  132. <pre class="language-markup"><code>&lt;input type="checkbox" checked data-size="large">
  133. &lt;input type="checkbox" checked>
  134. &lt;input type="checkbox" checked data-size="small">
  135. &lt;input type="checkbox" checked data-size="mini">
  136. &lt;input id="dimension-switch" type="checkbox" checked></code></pre>
  137. <pre class="language-javascript"><code>// Resets to the regular style
  138. $('#dimension-switch').bootstrapSwitch('size', '');
  139. // Sets a mini switch
  140. $('#dimension-switch').bootstrapSwitch('size', 'mini');
  141. // Sets a small switch
  142. $('#dimension-switch').bootstrapSwitch('size', 'small');
  143. // Sets a large switch
  144. $('#dimension-switch').bootstrapSwitch('size', 'large');</code></pre>
  145. </section>
  146. <section id="colors" class="section">
  147. <div class="page-header">
  148. <h3><a href="#colors">Colors</a></h3>
  149. </div>
  150. <input type="checkbox" checked data-on-color="primary" data-off-color="info">
  151. <input type="checkbox" checked data-on-color="info" data-off-color="success">
  152. <input type="checkbox" checked data-on-color="success" data-off-color="warning">
  153. <input type="checkbox" checked data-on-color="warning" data-off-color="danger">
  154. <input type="checkbox" checked data-on-color="danger" data-off-color="default">
  155. <input type="checkbox" checked data-on-color="default" data-off-color="primary">
  156. <br>
  157. <br>
  158. <span>Change the colors programmatically:</span>
  159. <input type="checkbox" id="change-color-switch" checked data-on-color="default" data-off-color="primary">
  160. <br>
  161. <br>
  162. <button id="btn-color-on-switch" class="btn btn-success">Change ON color</button>
  163. <button id="btn-color-off-switch" class="btn btn-danger">Change OFF color</button>
  164. <pre class="language-markup"><code>&lt;input type="checkbox" checked data-on-color="primary" data-off-color="info">
  165. &lt;input type="checkbox" checked data-on-color="info" data-off-color="success">
  166. &lt;input type="checkbox" checked data-on-color="success" data-off-color="warning">
  167. &lt;input type="checkbox" checked data-on-color="warning" data-off-color="danger">
  168. &lt;input type="checkbox" checked data-on-color="danger" data-off-color="default">
  169. &lt;input type="checkbox" checked data-on-color="default" data-off-color="primary">
  170. &lt;input type="checkbox" id="change-color-switch" checked data-on-color="default" data-off-color="primary"></code></pre>
  171. <pre class="language-javascript"><code>$('#change-color-switch').bootstrapSwitch('onColor', 'success');
  172. $('#change-color-switch').bootstrapSwitch('offColor', 'danger');</code></pre>
  173. </section>
  174. <section id="animation" class="section">
  175. <div class="page-header">
  176. <h3><a name="animation" class="anchor" href="#animation">Animation <small>JavaScript</small></a></h3>
  177. </div>
  178. <input type="checkbox" id="animated-switch" checked data-animated="false">
  179. <br>
  180. <br>
  181. <button id="btn-animate-switch" class="btn btn-default">Animate</button>
  182. <button id="btn-dont-animate-switch" class="btn btn-default">Don't animate</button>
  183. <pre class="language-markup"><code>&lt;input type="checkbox" checked data-animate="false"></code></pre>
  184. <pre class="language-javascript"><code>// Enables animation for the selected item
  185. $('#animated-switch').bootstrapSwitch('animate', true);
  186. // Disables animation for the selected item
  187. $('#animated-switch').bootstrapSwitch('animate', false);</code></pre>
  188. </section>
  189. <section id="disabled" class="section">
  190. <div class="page-header">
  191. <h3><a name="disabled" class="anchor" href="#disabled">Disabled / Readonly</a></h3>
  192. </div>
  193. <input type="checkbox" checked disabled>
  194. <input type="checkbox" checked readonly>
  195. <pre class="language-markup"><code>&lt;input type="checkbox" checked disabled>
  196. &lt;input type="checkbox" checked readonly></code></pre>
  197. </section>
  198. <section id="text" class="section">
  199. <div class="page-header">
  200. <h3><a name="text" class="anchor" href="#text">Text</a></h3>
  201. </div>
  202. <input type="checkbox" id="label-switch" checked data-on-text="SI" data-off-text="NO">
  203. <br>
  204. <br>
  205. <button id="btn-label-on-switch" class="btn btn-default">Change "On" label</button>
  206. <button id="btn-label-off-switch" class="btn btn-default">Change "Off" label</button>
  207. <pre class="language-markup"><code>&lt;input type="checkbox" checked data-on-text="SI" data-off-text="NO"></code></pre>
  208. <pre class="language-javascript"><code>$('#label-switch').bootstrapSwitch('onText', 'I');
  209. $('#label-switch').bootstrapSwitch('offText', 'O');</code></pre>
  210. </section>
  211. <section id="label-text" class="section">
  212. <div class="page-header">
  213. <h3><a href="#label-text">Label Text</a></h3>
  214. </div>
  215. <input type="checkbox" checked data-label-text="TV">
  216. <pre class="language-markup"><code>&lt;input type="checkbox" checked data-label-text="TV"></code></pre>
  217. </section>
  218. <section id="icon-label-text" class="section">
  219. <div class="page-header">
  220. <h3><a name="icon-label-text" class="anchor" href="#html-text-label-icon">Icon Label Text</a></h3>
  221. </div>
  222. Standard <input type="checkbox" checked data-size="large" data-label-text="<span class='glyphicon glyphicon-fullscreen'></span>" data-on-text="<span class='glyphicon glyphicon-ok'></span>" data-off-text="<span class='glyphicon glyphicon-remove'></span>"> &nbsp;&nbsp;
  223. Font Awesome <input type="checkbox" checked data-size="large" data-label-text="<span class='fa fa-youtube fa-lg'></span>" data-on-text="<span class='fa fa-thumbs-up fa-lg'></span>" data-off-text="<span class='fa fa-thumbs-down fa-lg'></span>"> &nbsp;&nbsp;
  224. Flat UI <input type="checkbox" data-size="large" checked data-label-text="<span class='fui-video'></span>" data-on-text="<span class='fui-check'></span>" data-off-text="<span class='fui-cross'></span>">
  225. <pre class="language-markup"><code>&lt;input type="checkbox" checked data-size="large" data-label-text="&lt;span class='glyphicon glyphicon-fullscreen'>&lt;/span>" data-on-text="&lt;span class='glyphicon glyphicon-ok'>&lt;/span>" data-off-text="&lt;span class='glyphicon glyphicon-remove'>&lt;/span>">
  226. &lt;input type="checkbox" checked data-size="large" data-label-text="&lt;span class='fa fa-youtube fa-lg'>&lt;/span>" data-on-text="&lt;span class='fa fa-thumbs-up fa-lg'>&lt;/span>" data-off-text="&lt;span class='fa fa-thumbs-down fa-lg'>&lt;/span>">
  227. &lt;input type="checkbox" data-size="large" checked data-label-text="&lt;span class='fui-video'>&lt;/span>" data-on-text="&lt;span class='fui-check'>&lt;/span>" data-off-text="&lt;span class='fui-cross'>&lt;/span>"></code></pre>
  228. </section>
  229. <section id="event-handler" class="section">
  230. <div class="page-header">
  231. <h3><a name="event-handler" class="anchor" href="#event-handler">Event Handler <small>JavaScript</small></a></h3>
  232. </div>
  233. <input type="checkbox" id="switch-change" checked>
  234. <pre class="language-javascript"><code>$('#switch-change').on('switchChange', function (e, data) {
  235. var $element = $(data.el),
  236. value = data.value;
  237. console.log(e, $element, value);
  238. });</code></pre>
  239. </section>
  240. <section id="label-event-handler" class="section">
  241. <div class="page-header">
  242. <h3><a name="label-event-handler" class="anchor" href="#label-event-handler">Label Event Handler <small>JavaScript</small></a></h3>
  243. </div>
  244. <label id="label-toggle-switch">Click on this Text to change the switch state</label>
  245. <input type="checkbox" checked class="label-toggle-switch">
  246. <pre class="language-markup"><code>&lt;label id="label-toggle-switch">Click on this Text to change the switch state&lt;/label>
  247. &lt;input type="checkbox" checked></code></pre>
  248. <pre class="language-javascript"><code>$('#label-toggle-switch').on('click', function(e, data) {
  249. $('.label-toggle-switch').bootstrapSwitch('toggleState');
  250. });
  251. $('.label-toggle-switch').on('switch-change', function (e, data) {
  252. alert(data.value);
  253. });</code></pre>
  254. </section>
  255. <section id="state" class="section">
  256. <div class="page-header">
  257. <h3><a name="state" class="anchor" href="#state">State <small>JavaScript</small></a></h3>
  258. </div>
  259. <input type="checkbox" id="toggle-state-switch" checked>
  260. <br>
  261. <br>
  262. <div id="toggle-state-switch-button-state" class="btn btn-default">State!</div>
  263. <div id="toggle-state-switch-button-on" class="btn btn-default">On</div>
  264. <div id="toggle-state-switch-button" class="btn btn-default">Toggle</div>
  265. <div id="toggle-state-switch-button-off" class="btn btn-default">Off</div>
  266. <pre class="language-javascript"><code>$('#toggle-state-switch').bootstrapSwitch('state'); // true || false
  267. $('#toggle-state-switch').bootstrapSwitch('toggleState');
  268. $('#toggle-state-switch').bootstrapSwitch('state', false); // true || false</code></pre>
  269. </section>
  270. <section id="destroy" class="section">
  271. <div class="page-header">
  272. <h3><a name="destroy" class="anchor" href="#destroy">Destroy <small>JavaScript</small></a></h3>
  273. </div>
  274. <input type="checkbox" id="destroy-switch" checked>
  275. <br>
  276. <br>
  277. <button id="btn-destroy-switch" class="btn btn-default">Destroy me!</button>
  278. <pre class="language-javascript"><code>$('#destroy-switch').bootstrapSwitch('destroy');</code></pre>
  279. </section>
  280. <section id="disable" class="section">
  281. <div class="page-header">
  282. <h3><a name="disable" class="anchor" href="#disable">Disable / Readonly <small>JavaScript</small></a></h3>
  283. </div>
  284. <label for="disable-switch">Disable controls</label>
  285. <input type="checkbox" id="disable-switch" checked>
  286. <br>
  287. <br>
  288. <button id="btn-disable-is" class="btn btn-default">Is disabled?</button>
  289. <button id="btn-disable-toggle" class="btn btn-default">Toggle Disable</button>
  290. <button id="btn-disable-set" class="btn btn-default">Set Disable</button>
  291. <button id="btn-disable-remove" class="btn btn-default">Remove Disable</button>
  292. <br>
  293. <br>
  294. <label for="readonly-switch">Readonly controls</label>
  295. <input type="checkbox" id="readonly-switch" checked>
  296. <br>
  297. <br>
  298. <button id="btn-readonly-is" class="btn btn-default">Is readonly?</button>
  299. <button id="btn-readonly-toggle" class="btn btn-default">Toggle readonly</button>
  300. <button id="btn-readonly-set" class="btn btn-default">Set readonly</button>
  301. <button id="btn-readonly-remove" class="btn btn-default">Remove readonly</button>
  302. <pre class="language-javascript"><code>$('#disable-switch').bootstrapSwitch('disabled');
  303. $('#disable-switch').bootstrapSwitch('toggleDisabled');
  304. $('#disable-switch').bootstrapSwitch('disabled', true); // true || false
  305. $('#readonly-switch').bootstrapSwitch('readonly');
  306. $('#readonly-switch').bootstrapSwitch('toggleReadonly');
  307. $('#readonly-switch').bootstrapSwitch('readonly', true); // true || false</code></pre>
  308. </section>
  309. <section id="radio" class="section">
  310. <div class="page-header">
  311. <h3><a name="radio" class="anchor" href="#radio">Radio <small>JavaScript</small></a></h3>
  312. </div>
  313. <div class="form-group">
  314. <label for="option1">Option 1</label>
  315. <input id="option1" type="radio" name="radio1" value="option1"> &nbsp;&nbsp;
  316. <label for="option2">Option 2</label>
  317. <input id="option2" type="radio" name="radio1" value="option2"> &nbsp;&nbsp;
  318. <label for="option3">Option 3</label>
  319. <input id="option3" type="radio" name="radio1" value="option3">
  320. </div>
  321. <pre class="language-markup"><code>&lt;div class="form-group">
  322. &lt;label for="option1">Option 1&lt;/label>
  323. &lt;input id="option1" type="radio" name="radio1" value="option1">
  324. &lt;label for="option2">Option 2&lt;/label>
  325. &lt;input id="option2" type="radio" name="radio1" value="option2">
  326. &lt;label for="option3">Option 3&lt;/label>
  327. &lt;input id="option3" type="radio" name="radio1" value="option3">
  328. &lt;/div></code></pre>
  329. </section>
  330. <section id="form" class="section">
  331. <div class="page-header">
  332. <h3><a name="form" class="anchor" href="#form">Form</a></h3>
  333. </div>
  334. <form class="clearfix" role="form">
  335. <div class="form-group">
  336. <label class="control-label" for="inputEmail">Email</label>
  337. <input type="text" id="inputEmail" placeholder="Email" class="form-control">
  338. </div>
  339. <div class="form-group">
  340. <label class="control-label" for="notification1">Notification 1</label>
  341. <input id="notification1" type="checkbox">
  342. </div>
  343. <div class="form-group">
  344. <label class="control-label" for="notification2">Notification 2</label>
  345. <input id="notification2" type="checkbox">
  346. </div>
  347. <div class="form-actions">
  348. <button type="reset" class="btn btn-default btn-warning">Reset</button>
  349. </div>
  350. </form>
  351. <pre class="language-markup"><code>&lt;form class="form-horizontal">
  352. &lt;div class="form-group">
  353. &lt;label class="control-label" for="inputEmail">Email&lt;/label>
  354. &lt;input type="text" id="inputEmail" placeholder="Email">
  355. &lt;/div>
  356. &lt;div class="form-group">
  357. &lt;label class="control-label" for="notification1">Notification 1&lt;/label>
  358. &lt;input id="notification1" type="checkbox">
  359. &lt;/div>
  360. &lt;div class="form-group">
  361. &lt;label class="control-label" for="notification2">Notification 2&lt;/label>
  362. &lt;input id="notification2" type="checkbox">
  363. &lt;/div>
  364. &lt;div class="form-actions">
  365. &lt;button type="reset" class="btn btn-inverse">Reset&lt;/button>
  366. &lt;/div>
  367. &lt;/form></code></pre>
  368. </section>
  369. <section id="modal" class="section">
  370. <div class="page-header">
  371. <h3><a name="modal" class="anchor" href="#modal">Modal</a></h3>
  372. </div>
  373. <a href="#myModal" role="button" class="btn btn-default" data-toggle="modal">Modal</a>
  374. <pre class="language-markup"><code>&lt;a href="#myModal" role="button" class="btn btn-default" data-toggle="modal">Modal&lt;/a>
  375. &lt;div class="modal-body">
  376. &lt;input type="checkbox" checked>
  377. &lt;/div></code></pre>
  378. </section>
  379. <footer class="footer">
  380. <p>&copy; by <a href="http://larentis.eu" target="_blank">Mattia Larentis</a> (<a href="https://twitter.com/SpiritualGuru">@SpiritualGuru</a>), <a href="http://www.bdmdesign.org/" target="_blank">Peter Stein</a> and <a href="http://www.lostcrew.it/" target="_blank">Emanuele Marchi</a></p>
  381. </footer>
  382. </div>
  383. </div>
  384. </div>
  385. <div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
  386. <div class="modal-dialog">
  387. <div class="modal-content">
  388. <div class="modal-header">
  389. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  390. <h3>Modal</h3>
  391. </div>
  392. <div class="modal-body">
  393. <input type="checkbox" checked>
  394. </div>
  395. <div class="modal-footer">
  396. <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
  397. </div>
  398. </div>
  399. </div>
  400. </div>
  401. <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
  402. <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
  403. <script src="build/js/bootstrap-switch.js"></script>
  404. <script src="docs/lib/prism.js"></script>
  405. <script src="docs/index.js"></script>
  406. </body>
  407. </html>