META-INF.resources.butterfaces-dist-js.butterfaces-radiobox.min.js Maven / Gradle / Ivy
var ButterFaces;!function(e){var t=function(){function e(){}return e.addStyleClassClickEvent=function(e){document.getElementById(e).addEventListener("change",function(e){console.log("Remove radio selection classes"),[].forEach.call(document.querySelectorAll(".radio"),function(e){console.log(e),e.classList.remove("butter-radio-item-selected")}),console.log("Add radio selection class to "+e.target),e.target.parentNode.classList.add("butter-radio-item-selected")})},e}();e.RadioBox=t}(ButterFaces||(ButterFaces={}));
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJ1dHRlcmZhY2VzLXJhZGlvYm94LnRzIl0sIm5hbWVzIjpbIkJ1dHRlckZhY2VzIiwiUmFkaW9Cb3giLCJhZGRTdHlsZUNsYXNzQ2xpY2tFdmVudCIsInJhZGlvQm94SWQiLCJkb2N1bWVudCIsImdldEVsZW1lbnRCeUlkIiwiYWRkRXZlbnRMaXN0ZW5lciIsImV2ZW50IiwiY29uc29sZSIsImxvZyIsImZvckVhY2giLCJjYWxsIiwicXVlcnlTZWxlY3RvckFsbCIsImVsIiwiY2xhc3NMaXN0IiwicmVtb3ZlIiwidGFyZ2V0IiwicGFyZW50Tm9kZSIsImFkZCJdLCJtYXBwaW5ncyI6IkFBQUEsSUFBVUEsYUFBVixTQUFVQSxHQUNOLElBQUFDLEVBQUEsV0FBQSxTQUFBQSxLQW9CQSxPQWxCa0JBLEVBQUFDLHdCQUFkLFNBQXNDQyxHQUNkQyxTQUFTQyxlQUFlRixHQUVuQ0csaUJBQWlCLFNBQVUsU0FBVUMsR0FDMUNDLFFBQVFDLElBQUkscUNBQ1RDLFFBQVFDLEtBQ1BQLFNBQVNRLGlCQUFpQixVQUMxQixTQUFVQyxHQUNOTCxRQUFRQyxJQUFJSSxHQUNaQSxFQUFHQyxVQUFVQyxPQUFPLGdDQUk1QlAsUUFBUUMsSUFBSSxnQ0FBa0NGLEVBQU1TLFFBQ3BEVCxFQUFN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C50YXJnZXQpO1xuICAgICAgICAgICAgICAgIGV2ZW50LnRhcmdldC5wYXJlbnROb2RlLmNsYXNzTGlzdC5hZGQoXCJidXR0ZXItcmFkaW8taXRlbS1zZWxlY3RlZFwiKTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG5cbiAgICB9XG59Il19
© 2015 - 2025 Weber Informatics LLC | Privacy Policy