PageSourceSearch

https://www.myparkingsign.com/js/ui-customV25.js?v=2026-39

js myparkingsign.com collected 2026-10-02 11:21:18 UTC 8,622 bytes, 250 lines download raw bytes

1var siteabbr = "";
2var customHdr_scrollTop = 0;
3
4//(function ($) {
5var docurl = document.location.href.toLowerCase();
6if (docurl.indexOf("mysafetysign.com") != -1) {
7    siteabbr = "saf";
8}
9else if (docurl.indexOf("xmt") != -1) {
10    siteabbr = "xmt";
11}
12else if (docurl.indexOf("mypoolsigns.com") != -1) {
13    siteabbr = "sps";
14}
15switch (siteabbr) {
16    case "saf":
17        customHdr_scrollTop = -2;
18        break;
19    case "xmt":
20        customHdr_scrollTop = -4;
21        break;
22    default:
23        customHdr_scrollTop = 0;
24}
25//});
26
27if (siteabbr == "saf") {
28    if (typeof BundlingEnabledOnPage != 'undefined' && BundlingEnabledOnPage) {
29        window.addEventListener ? window.addEventListener("load", customjsLoadEvents_SAF, !1) : window.attachEvent ? window.attachEvent("onload", customjsLoadEvents_SAF) : window.onload = customjsLoadEvents_SAF;
30        function customjsLoadEvents_SAF() {
31            setTimeout(function () {
32                /* Jquery Header Scroll */
33                var s = $(".sticky-menu");
34                var pos = s.position();
35                var DivPos = $('.header-menu').height();
36                $(window).on("scroll", function () {
37
38                    var windowpos = $(window).scrollTop() + customHdr_scrollTop;
39                    //var checkDistance = $("#back-top");
40                    //checkDistance.html("Distance from top:" + pos.top + "<br />Scroll position: " + windowpos);
41                    if (windowpos >= pos.top) {
42                        s.addClass("menu-fixed");
43                        $('.header_options').css("margin-bottom", DivPos);
44                    } else {
45                        s.removeClass("menu-fixed");
46                        $('.header_options').removeAttr('style');
47                    }
48                });
49
50                /* 
51                *	Scroll to top function 
52                */
53                $('.top-off-page a').on("click", function () {
54                    $('body,html').animate({ scrollTop: 0 }, 600);
55                    return false;
56                });
57            }, (BundlingInterval_OkToDelayCode + 100));
58        }
59    }
60    else {
61        $(window).on("load", function () {
62            try {
63                customjs_windowload();
64            }
65            catch (ex) {
66
67            }
68
69        });
70        $().ready(function () {
71            customjs_documentready();
72        });
73    }
74}
75else {
76    if (typeof BundlingEnabledOnPage != 'undefined' && BundlingEnabledOnPage) {
77        window.addEventListener ? window.addEventListener("load", customjsLoadEvents, !1) : window.attachEvent ? window.attachEvent("onload", customjsLoadEvents) : window.onload = customjsLoadEvents;
78        function customjsLoadEvents() {
79            setTimeout(function () {
80                try {
81                    customjs_windowload();
82                }
83                catch (ex) {
84
85                }
86                customjs_documentready();
87            }, (BundlingInterval_OkToDelayCode + 100));
88        }
89    }
90    else {
91        $(window).on("load", function () {
92            try {
93                customjs_windowload();
94            }
95            catch (ex) {
96
97            }
98        });
99        $().ready(function () {
100            customjs_documentready();
101        });
102    }
103}
104
105$(window).on("scroll", function () {
106    if ($(this).scrollTop() > 100) {
107        $('#back-top').fadeIn();
108    } else {
109        $('#back-top').fadeOut();
110    }
111})
112function customjs_windowload() {
113    (function ($) {
114
115        el_autohide = document.querySelector('.header_cont');
116        // add padding-top to bady (if necessary)
117        header_height = document.querySelector('.header_cont').offsetHeight - document.querySelector('.header_cont .header-menu').offsetHeight;
118        //document.body.style.paddingTop = header_height + 'px';
119        position_sticky = {
120            "position": "sticky",
121            "top": "-" + header_height + "px"
122        };
123        position_fixed = {
124            "position": "fixed",
125            "top": "0px"
126        };
127        // Object.assign(el_autohide.style, position_sticky);
128        if (el_autohide) {
129            var last_scroll_top = el_autohide;
130            window.addEventListener('scroll', function () {
131                let scroll_top = window.scrollY;                
132                const headermenu = document.querySelector('.header_cont .header-menu');
133                const headermenuHeight = headermenu.offsetHeight;
134                if (scroll_top > header_height) {
135                    // if (conditionNav) {
136                    //     if (scroll_top < last_scroll_top) {
137                    //         el_autohide.classList.remove('isHidden');
138                    //         el_autohide.classList.add('header-box-shadow');
139                    //     } else {
140                    //         el_autohide.classList.add('isHidden');
141                    //         el_autohide.classList.remove('header-box-shadow');
142                    //         Object.assign(el_autohide.style, position_fixed);
143                    //         document.body.style.paddingTop = header_height + 'px';
144                    //     }
145                    //     last_scroll_top = scroll_top;
146                    // }
147
148
149                    document.body.style.paddingTop = headermenuHeight + 'px';
150                    headermenu.classList.add('header-menu-fixed');
151
152
153                } else {
154                    headermenu.classList.remove('header-menu-fixed');
155                    document.body.style.paddingTop = '0px';
156                }
157            });
158            // window.addEventListener
159        };
160        // $(window).on('scroll', function () {
161        //     if ($(window).scrollTop() < 1) {
162        //         document.body.style.paddingTop = "0px";
163        //         Object.assign(el_autohide.style, position_sticky);
164        //         el_autohide.classList.remove('header-box-shadow');
165        //         el_autohide.classList.remove('isHidden');
166        //     }
167        // });
168
169        if (siteabbr == "sps") {
170            /*
171            * Custom Build Menu Hover. Follows the hover state on the menu items.
172            * Change: var speed = 500; //transition speed
173            */
174            menuHover();
175        }
176
177        $(window).on("scroll", stickyPoshandler);
178        /* 
179        *	Scroll to top function 
180        */
181        $('.top-off-page a').on("click", function () {
182            $('body,html').animate({ scrollTop: 0 }, 600);
183            return false;
184        });
185
186        if (siteabbr == "sps") {
187            $('.divider-top span a').on("click", function () {
188                $('body,html').animate({ scrollTop: 0 }, 600);
189                return false;
190            });
191        }
192
193    })(jQuery, window, document);
194}
195var stickyPoshandler = function () {
196    if ((typeof (fullWidthMenuBar) != "undefined") && (fullWidthMenuBar == true)) {
197        resetStickyPos();
198    }
199}
200
201function customjs_documentready() {
202    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) || window.ontouchstart !== undefined) {
203
204        $('.nav-menu .menu > li > a,.subMenu-list-1 li a').each(function () {
205            if ($(this).parent().find('ul').length > 0 || $(this).parents(".subMenu-list-1").find('ul').length > 0) {
206                $(this).not(".contact-email").prop("href", "javascript:void(0)");
207            }
208        });
209    }
210
211}
212
213function menuHover() {
214    var activeMenuItem;
215    var speed = 500;
216    if ($('.current_page_parent').length !== 0) {
217        activeMenuItem = $('.nav-menu .current_page_parent > a');
218    } else if ($('.current-menu-parent').length !== 0) {
219        activeMenuItem = $('.nav-menu .current-menu-parent > a');
220    } else {
221        activeMenuItem = $('.nav-menu .current-menu-item > a');
222    }
223
224    if (activeMenuItem.length !== 0) {
225        var menuSlider = $('.menu-slider');
226
227        // Grap width from the active menu item
228        var w = activeMenuItem.width();
229        menuSlider.width(w + 'px');
230        var left = activeMenuItem.position().left;
231        menuSlider.animate({ left: left });
232
233        // Move on hover
234        $('.nav-menu > ul.menu > li').hover(function () {
235            var w = $(this).children('a').width();
236            var linkpostion = $(this).children('a').position().left;
237            var left = $(this).position().left + linkpostion;
238
239            menuSlider.stop().animate({
240                width: w,
241                left: left
242            }, speed);
243        }, function () {
244            menuSlider.stop().animate({
245                width: w,
246                left: left
247            }, speed);
248        });
249    }
250}

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.