/* ======================================================================== * bootstrap-switch - v3.0.0 * http://www.bootstrap-switch.org * ======================================================================== * Copyright 2012-2013 Mattia Larentis * * ======================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ======================================================================== */ (function(){var a=[].slice;!function(b,c){"use strict";var d;return d=function(){function a(a,c){var d=this;null==c&&(c={}),this.$element=b(a),this.options=b.extend({},this.defaults,c,{state:this.$element.is(":checked"),size:this.$element.data("size"),animate:this.$element.data("animate"),disabled:this.$element.is(":disabled"),readonly:this.$element.is("[readonly]"),onColor:this.$element.data("on-color"),offColor:this.$element.data("off-color"),onText:this.$element.data("on-text"),offText:this.$element.data("off-text"),labelText:this.$element.data("label-text")}),this.$on=b("",{"class":"switch-handle-on switch-"+this.options.onColor,html:this.options.onText}),this.$off=b("",{"class":"switch-handle-off switch-"+this.options.offColor,html:this.options.offText}),this.$label=b("