PageSourceSearch

https://pittsburghremodelingcompany.com/wp-content/themes/cabin/js/smoothPageScroll.js

js pittsburghremodelingcompany.com collected 2026-10-08 02:55:26 UTC 1,540 bytes, 53 lines download raw bytes

1
2var $window = $j(window);		//Window object
3var scrollTime = 0.4;			//Scroll time
4var scrollDistance = 300;		//Distance. Use smaller value for shorter scroll and greater value for longer scroll
5
6mobile_ie = -1 !== navigator.userAgent.indexOf("IEMobile");
7
8function smoothScrollListener(event){
9    event.preventDefault();
10
11    var delta = event.wheelDelta / 120 || -event.detail / 3;
12    var scrollTop = $window.scrollTop();
13    var finalScroll = scrollTop - parseInt(delta * scrollDistance);
14
15    TweenLite.to($window, scrollTime, {
16        scrollTo: {
17            y: finalScroll, autoKill: !0
18        },
19        ease: Power1.easeOut,
20        autoKill: !0,
21        overwrite: 5
22    });
23
24}
25
26if (!$j('html').hasClass('touch') && !mobile_ie) {
27
28    //$window.on("mousewheel DOMMouseScroll", function (event) {
29    //
30    //    event.preventDefault();
31    //
32    //    var delta = event.originalEvent.wheelDelta / 120 || -event.originalEvent.detail / 3;
33    //    var scrollTop = $window.scrollTop();
34    //    var finalScroll = scrollTop - parseInt(delta * scrollDistance);
35    //
36    //    TweenLite.to($window, scrollTime, {
37    //        scrollTo: {
38    //            y: finalScroll, autoKill: !0
39    //        },
40    //        ease: Power1.easeOut,
41    //        autoKill: !0,
42    //        overwrite: 5
43    //    });
44    //
45    //});
46
47    if (window.addEventListener) {
48        window.addEventListener('mousewheel', smoothScrollListener, false);
49        window.addEventListener('DOMMouseScroll', smoothScrollListener, false);
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.