PageSourceSearch

https://www.jet2holidays.com/src/Components/Forms/js/SitecoreForms-Upgrade-Checkbox-Fix.js

js jet2holidays.com collected 2026-10-01 12:39:50 UTC 505 bytes, 20 lines download raw bytes

1(function () {
2
3    function isSitecoreCheckbox(el) {
4        return el.matches('.sitecore-form__checkbox input[type="checkbox"]');
5    }
6
7    function toggle(el) {
8        el.classList.toggle('valid', el.checked);
9    }
10
11    document.querySelectorAll('.sitecore-form__checkbox input[type="checkbox"]')
12        .forEach(toggle);
13
14    document.addEventListener('change', function (e) {
15        if (isSitecoreCheckbox(e.target)) {
16            toggle(e.target);
17        }
18    });
19
20})();

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.