META-INF.resources.butterfaces-dist-js.butterfaces-checkbox.min.js Maven / Gradle / Ivy
var ButterFaces;!function(e){var t=function(){function e(){}return e.addSwitchClickEvent=function(e){var t=document.getElementById(e);t.querySelector(".slider").addEventListener("click",function(e){console.log("Checkbox switch clicked to "+e.target),t.querySelector("label").click()})},e}();e.Checkbox=t}(ButterFaces||(ButterFaces={}));
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJ1dHRlcmZhY2VzLWNoZWNrYm94LnRzIl0sIm5hbWVzIjpbIkJ1dHRlckZhY2VzIiwiQ2hlY2tib3giLCJhZGRTd2l0Y2hDbGlja0V2ZW50IiwiY2hlY2tib3hJZCIsImNoZWNrYm94IiwiZG9jdW1lbnQiLCJnZXRFbGVtZW50QnlJZCIsInF1ZXJ5U2VsZWN0b3IiLCJhZGRFdmVudExpc3RlbmVyIiwiZXZlbnQiLCJjb25zb2xlIiwibG9nIiwidGFyZ2V0IiwiY2xpY2siXSwibWFwcGluZ3MiOiJBQUFBLElBQVVBLGFBQVYsU0FBVUEsR0FDTixJQUFBQyxFQUFBLFdBQUEsU0FBQUEsS0FXQSxPQVRrQkEsRUFBQUMsb0JBQWQsU0FBa0NDLEdBQzlCLElBQUlDLEVBQXdCQyxTQUFTQyxlQUFlSCxHQUVwREMsRUFBU0csY0FBYyxXQUFXQyxpQkFBaUIsUUFBUyxTQUFVQyxHQUNsRUMsUUFBUUMsSUFBSSw4QkFBZ0NGLEVBQU1HLFFBQ2xEUixFQUFTRyxjQUFjLFNBQVNNLFdBSTVDWixFQVhBLEdBQWFELEVBQUFDLFNBQVFBLEVBRHpCLENBQVVELGNBQUFBIiwiZmlsZSI6ImJ1dHRlcmZhY2VzLWNoZWNrYm94Lm1pbi5qcyIsInNvdXJjZXNDb250ZW50IjpbIm5hbWVzcGFjZSBCdXR0ZXJGYWNlcyB7XG4gICAgZXhwb3J0IGNsYXNzIENoZWNrYm94IHtcblxuICAgICAg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