PageSourceSearch

https://lochmann-verlag.com/userfiles/modules/microweber/api/tools/checkbox.js

js lochmann-verlag.com collected 2026-09-26 03:53:53 UTC 918 bytes, 30 lines download raw bytes

1mw.check = {
2    all: function (selector) {
3        mw.$(selector).find("input[type='checkbox']").each(function () {
4            this.checked = true;
5        });
6    },
7    none: function (selector) {
8        mw.$(selector).find("input[type='checkbox']").each(function () {
9            this.checked = false;
10        });
11    },
12    toggle: function (selector) {
13        var els = mw.$(selector).find("input[type='checkbox']"), checked = els.filter(':checked');
14        if (els.length === checked.length) {
15            mw.check.none(selector)
16        }
17        else {
18            mw.check.all(selector);
19        }
20    },
21    collectChecked: function (parent) {
22        var arr = [];
23        var all = parent.querySelectorAll('input[type="checkbox"]'), i = 0, l = all.length;
24        for (; i < l; i++) {
25            var el = all[i];
26            el.checked ? arr.push(el.value) : '';
27        }
28        return arr;
29    }
30}

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.