PageSourceSearch

https://www.palmknihy.cz/-d1508----d2Q7jcw/checkbox-toggle.js?_linka=a59005

js palmknihy.cz collected 2026-10-01 11:57:31 UTC 521 bytes, 1 lines download raw bytes

1export default class CheckboxToggle{constructor(target){this.selector=target||".js-checkbox-toggle",this.dataTarget="target-checkbox";this.init(this.selector)}init(target){$(document).on("change",target,$.proxy(this.toggle,this))}toggle(e){var $target=$(e.currentTarget);var checkboxTarget=$target.data(this.dataTarget);if($target.is(":checked")){$(checkboxTarget).prop("checked",true);$(checkboxTarget).addClass("is-readonly")}else{$(checkboxTarget).prop("checked",false);$(checkboxTarget).removeClass("is-readonly")}}};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.