Turn checkboxes and radio buttons in toggle switches.
fork from : https://github.com/Bttstrp/bootstrap-switch.git

Emanuele Marchi 9cc71fc0bf update readme há 11 anos atrás
build 804c771a38 breaking changes on methods names, implemented focusable wrapper div, updated docs, renamed deactivated in disabled há 11 anos atrás
docs d154734b1b refined docs há 11 anos atrás
src 804c771a38 breaking changes on methods names, implemented focusable wrapper div, updated docs, renamed deactivated in disabled há 11 anos atrás
.gitignore 7e528bf2fc release candidate 2.0.0 há 11 anos atrás
CONTRIBUTING.md 93ca47d61c Update CONTRIBUTING.md há 12 anos atrás
Gruntfile.coffee 7e528bf2fc release candidate 2.0.0 há 11 anos atrás
LICENSE 40c9d7eb1d welcome há 12 anos atrás
README.md 9cc71fc0bf update readme há 11 anos atrás
bower.json eb03084e4a massive update and revision. added coffeescript source, updated README and documentation. removed input's surrounding div. há 11 anos atrás
composer.json eb03084e4a massive update and revision. added coffeescript source, updated README and documentation. removed input's surrounding div. há 11 anos atrás
package.json 7e528bf2fc release candidate 2.0.0 há 11 anos atrás

README.md

Bootstrap Switch

Turn radio and checkbox form inputs in toggle switches. Version 2 is here. Beware! The API design has been revisited. Check out the documentation to know more.

Demo and Documentation

http://www.bootstrap-switch.org

Usage

Just include jQuery, Bootstrap and Bootstrap Switch CSS + Javascript

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link rel="stylesheet" href="bootstrap.css">
<link rel="stylesheet" href="bootstrap-switch.css">
<script src="jquery.js"></script>
<script src="bootstrap-switch.js"></script>

Less

If you want to use your bootstrap variables, edit bootstrap-switch.less and compile it:

lessc src/less/bootstrap3/bootstrap-switch.less bootstrap-switch.css

Or if you are using Bootstrap 2.3.2:

lessc src/less/bootstrap2/bootstrap-switch.less bootstrap-switch.css

Supported browsers

IE8+ and all the other modern browsers.

License

Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0