PageSourceSearch

https://www.nycpba.org/wp-content/themes/nycpba/assets/js/custom/02-global.js?ver=6abe46c4db0c5

js nycpba.org collected 2026-10-01 11:51:21 UTC 1,321 bytes, 45 lines download raw bytes

1(function (app) {
2    "use strict";
3    var $ = jQuery.noConflict();
4    var Global = function () { };
5
6    Global.prototype.init = function () {
7        Global.prototype.handleDownloadLinks();
8    };
9
10    Global.prototype.refreshScrollTriggers = function () {
11        const triggers = ScrollTrigger.getAll();
12
13        triggers.forEach((trigger) => {
14            if (trigger.vars.id == 'nav-bg-scroll' || trigger.vars.id == 'nav-bg-hide') return;
15            trigger.refresh(true);
16        });
17    };
18    
19    Global.prototype.handleDownloadLinks = function () {
20        const links = $(`a[href^="download:"]`);
21        if (!links.length) return;
22
23        links.each(function () {
24            const self = $(this);
25            const href = self.attr('href');
26            self.attr('href', href.replace('download:', ''));
27            self.attr('download', '');
28        });
29    };
30
31    Global.prototype.updateSelectClass = function (target) {
32        const parent = target.selectmenu("menuWidget");
33        parent.find(".selected").removeClass("selected");
34        
35        const activeItem = parent.find(".ui-state-active");
36        activeItem.addClass("selected");
37    };
38
39    app.Global = Global;
40
41    app.ready(function () {
42        // console.log("Global ->");
43        Global.prototype.init();
44    });
45})(window.app);

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.