diff --git a/README.md b/README.md index 112110d..7e63b85 100644 --- a/README.md +++ b/README.md @@ -69,8 +69,8 @@ defaults = { }; ``` -- `size` : size of switch element, can be `default` | `small` | `large` -- `checked` : state of switch and checbox, if `undefined` the switch state according to the checkbox +- `size` : the size of a switch element, can be default | small | large +- `checked` : state of switch and checkbox, if undefined the switch state according to the checkbox - `onText` : text in the jack when switch ON - `offText` : text in the jack when switch OFF - `onSwitchColor` : color of checked switch element diff --git a/index.html b/index.html index 086754b..1f6d98f 100644 --- a/index.html +++ b/index.html @@ -125,12 +125,13 @@

color

- +

Predefined Classes

             
+
                 <input type="checkbox" class="switch-primary" />
<input type="checkbox" class="switch-success" />
<input type="checkbox" class="switch-danger" />
@@ -296,6 +297,7 @@

remove

}; Object.keys(switchConfig).forEach(function (key) { + console.log(document.querySelector('.' + key)); switches[key] = new Switch(document.querySelector('.' + key),switchConfig[key]); });