PageSourceSearch

https://seattlecenter.com/Content/js/igx-dev.js

js seattlecenter.com collected 2026-10-01 09:01:45 UTC 2,445 bytes, 71 lines download raw bytes

1$(document).ready(function () {
2    //Prevent "Choose a language" drop down from redirecting
3    $(".js-choose-lang").click(function (e){
4        e.preventDefault();
5    });
6
7
8    //// Search Filters
9    ////===========================================
10    $(".form-item__checkbox").click(function () {
11        var separator = (window.location.href.indexOf("?") == -1) ? "?" : "&";
12        var arr = [];
13        var selected = $(this).val(); 
14        $("input.form-item__checkbox:checked").each(function (index) {
15            arr.push($(this).val());
16        });
17        var newArr = arr.join(',').replace(/,/g, ',').split();
18        $("input#form-item__checkbox").val(newArr);
19
20       
21        if (window.location.href.indexOf("cats") == -1) {
22            if (window.location.href.indexOf(selected) == -1) {
23                window.location.href = window.location.href + separator + 'cats' + '=' + newArr;
24            }
25        }
26        else {
27            window.location.href = updateQueryStringParameter(window.location.href, "cats", newArr);
28
29            }
30        
31
32    });
33
34    function updateQueryStringParameter(uri, key, value) {
35        var re = new RegExp("([?&])" + key + "=.*?(&|#|$)", "i");
36        if (value === undefined) {
37            if (uri.match(re)) {
38                return uri.replace(re, '$1$2');
39            } else {
40                return uri;
41            }
42        } else {
43            if (uri.match(re)) {
44                return uri.replace(re, '$1' + key + "=" + value + '$2');
45            } else {
46                var hash = '';
47                if (uri.indexOf('#') !== -1) {
48                    hash = uri.replace(/.*#/, '#');
49                    uri = uri.replace(/#.*/, '');
50                }
51                var separator = uri.indexOf('?') !== -1 ? "&" : "?";
52                return uri + separator + key + "=" + value + hash;
53            }
54        }
55    }
56
57    (function (document) {
58        var shareButtons = document.querySelectorAll(".st-custom-button[data-network]");
59        for (var i = 0; i < shareButtons.length; i++) {
60            var shareButton = shareButtons[i];
61
62            shareButton.addEventListener("click", function (e) {
63                var elm = e.target;
64                var network = elm.dataset.network;
65
66                console.log("share click: " + network);
67            });
68        }
69    })(document);
70    
71});

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.