PageSourceSearch

https://mmataekwondo.com/Scripts/customControl/checkbox.js?09251132

js mmataekwondo.com collected 2026-10-04 16:22:08 UTC 1,436 bytes, 53 lines download raw bytes

1PerfectMind.Ajax.Control.CheckBoxBuilder = function () {
2
3    // implementation of interface IControlBuilder
4
5    this.BuildElementForPagelet = function (element, root, secondRoot) {
6        var oneEle = $(element);
7        oneEle.unbind("click");
8        oneEle.bind("click", function () {
9            changeValue(oneEle, root, secondRoot);
10        });
11    }
12
13    this.BuildElementForPage = function (element) {
14        var oneEle = $(element);
15        oneEle.unbind("click");
16        oneEle.bind("click", function () {
17            changeValue(oneEle, null);
18        });
19    }
20
21    this.GetCompatible = function () {
22        return "xpl-checkbox,xpl-toggle";
23    }
24
25    PerfectMind.Ajax.Util.Reflection.FirstIsImplementationOfSecond(this, PerfectMind.Ajax.Control.IControlBuilder, true);
26
27    // end of implementation of interface IControlBuilder
28
29    function changeValue(chk, root, secondRoot) {
30
31        var id = chk.attr("id");
32        var hidden = "dummy";
33        if (root) {
34            hidden = IfNotFirstSecond(root, secondRoot, '#' + id + '-hidden');
35        }
36        else {
37            hidden = $('#' + id + '-hidden');
38        }
39
40        var isChecked = chk.prop('checked');
41        if (isChecked) {
42            hidden.attr('value', isChecked);
43        }
44        else {
45            hidden.attr('value', false);
46        }
47
48
49        chk.trigger("clicked");
50    }
51
52};
53

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.