PageSourceSearch

https://www.sporloc.com/catalog/view/theme/free-fjord-cars-audio-lemon/js/jquery.js

js sporloc.com collected 2026-10-08 17:10:33 UTC 8,748 bytes, 162 lines download raw bytes

1jQuery(window).load(function(){jQuery(".status").fadeOut(),jQuery(".preloader").delay(200).fadeOut("slow")}),$(document).ready(function(){$("#back-top").hide(),$(function(){$(window).scroll(function(){$(this).scrollTop()>100?$("#back-top").fadeIn():$("#back-top").fadeOut()}),$("#back-top a").click(function(){return $("body,html").animate({scrollTop:0},800),!1})})}),!function(){function e(){var e=!1;e&&c("keydown",a),v.keyboardSupport&&!e&&u("keydown",a)}function t(){if(document.body){var t=document.body,o=document.documentElement,n=window.innerHeight,a=t.scrollHeight;if(S=document.compatMode.indexOf("CSS")>=0?o:t,w=t,e(),x=!0,top!=self)y=!0;else if(a>n&&(t.offsetHeight<=n||o.offsetHeight<=n)){var r=!1,i=function(){r||o.scrollHeight==document.height||(r=!0,setTimeout(function(){o.style.height=document.height+"px",r=!1},500))};if(o.style.height="auto",setTimeout(i,10),S.offsetHeight<=n){var l=document.createElement("div");l.style.clear="both",t.appendChild(l)}}v.fixedBackground||b||(t.style.backgroundAttachment="scroll",o.style.backgroundAttachment="scroll")}}function o(e,t,o,n){if(n||(n=1e3),d(t,o),1!=v.accelerationMax){var a=+new Date,r=a-C;if(r<v.accelerationDelta){var i=(1+30/r)/2;i>1&&(i=Math.min(i,v.accelerationMax),t*=i,o*=i)}C=+new Date}if(M.push({x:t,y:o,lastX:0>t?.99:-.99,lastY:0>o?.99:-.99,start:+new Date}),!T){var l=e===document.body,u=function(){for(var a=+new Date,r=0,i=0,c=0;c<M.length;c++){var s=M[c],d=a-s.start,f=d>=v.animationTime,h=f?1:d/v.animationTime;v.pulseAlgorithm&&(h=m(h));var p=s.x*h-s.lastX>>0,w=s.y*h-s.lastY>>0;r+=p,i+=w,s.lastX+=p,s.lastY+=w,f&&(M.splice(c,1),c--)}l?window.scrollBy(r,i):(r&&(e.scrollLeft+=r),i&&(e.scrollTop+=i)),t||o||(M=[]),M.length?N(u,e,n/v.frameRate+1):T=!1};N(u,e,0),T=!0}}function n(e){x||t();var n=e.target,a=l(n);if(!a||e.defaultPrevented||s(w,"embed")||s(n,"embed")&&/\.pdf/i.test(n.src))return!0;var r=e.wheelDeltaX||0,i=e.wheelDeltaY||0;return r||i||(i=e.wheelDelta||0),!v.touchpadSupport&&f(i)?!0:(Math.abs(r)>1.2&&(r*=v.stepSize/120),Math.abs(i)>1.2&&(i*=v.stepSize/120),o(a,-r,-i),void e.preventDefault())}function a(e){var t=e.target,n=e.ctrlKey||e.altKey||e.metaKey||e.shiftKey&&e.keyCode!==H.spacebar;if(/input|textarea|select|embed/i.test(t.nodeName)||t.isContentEditable||e.defaultPrevented||n)return!0;if(s(t,"button")&&e.keyCode===H.spacebar)return!0;var a,r=0,i=0,u=l(w),c=u.clientHeight;switch(u==document.body&&(c=window.innerHeight),e.keyCode){case H.up:i=-v.arrowScroll;break;case H.down:i=v.arrowScroll;break;case H.spacebar:a=e.shiftKey?1:-1,i=-a*c*.9;break;case H.pageup:i=.9*-c;break;case H.pagedown:i=.9*c;break;case H.home:i=-u.scrollTop;break;case H.end:var d=u.scrollHeight-u.scrollTop-c;i=d>0?d+10:0;break;case H.left:r=-v.arrowScroll;break;case H.right:r=v.arrowScroll;break;default:return!0}o(u,r,i),e.preventDefault()}function r(e){w=e.target}function i(e,t){for(var o=e.length;o--;)$[A(e[o])]=t;return t}function l(e){var t=[],o=S.scrollHeight;do{var n=$[A(e)];if(n)return i(t,n);if(t.push(e),o===e.scrollHeight){if(!y||S.clientHeight+10<o)return i(t,document.body)}else if(e.clientHeight+10<e.scrollHeight&&(overflow=getComputedStyle(e,"").getPropertyValue("overflow-y"),"scroll"===overflow||"auto"===overflow))return i(t,e)}while(e=e.parentNode)}function u(e,t,o){window.addEventListener(e,t,o||!1)}function c(e,t,o){window.removeEventListener(e,t,o||!1)}function s(e,t){return(e.nodeName||"").toLowerCase()===t.toLowerCase()}function d(e,t){e=e>0?1:-1,t=t>0?1:-1,(k.x!==e||k.y!==t)&&(k.x=e,k.y=t,M=[],C=0)}function f(e){if(e){e=Math.abs(e),D.push(e),D.shift(),clearTimeout(z);var t=D[0]==D[1]&&D[1]==D[2],o=h(D[0],120)&&h(D[1],120)&&h(D[2],120);return!(t||o)}}function h(e,t){return Math.floor(e/t)==e/t}function p(e){var t,o,n;return e*=v.pulseScale,1>e?t=e-(1-Math.exp(-e)):(o=Math.exp(-1),e-=1,n=1-Math.exp(-e),t=o+n*(1-o)),t*v.pulseNormalize}function m(e){return e>=1?1:0>=e?0:(1==v.pulseNormalize&&(v.pulseNormalize/=p(1)),p(e))}var w,g={frameRate:150,animationTime:800,stepSize:120,pulseAlgorithm:!0,pulseScale:8,pulseNormalize:1,accelerationDelta:20,accelerationMax:1,keyboardSupport:!0,arrowScroll:50,touchpadSupport:!0,fixedBackgroun
1d:!0,excluded:""},v=g,b=!1,y=!1,k={x:0,y:0},x=!1,S=document.documentElement,D=[120,120,120],H={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},v=g,M=[],T=!1,C=+new Date,$={};setInterval(function(){$={}},1e4);var z,A=function(){var e=0;return function(t){return t.uniqueID||(t.uniqueID=e++)}}(),N=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(e,t,o){window.setTimeout(e,o||1e3/60)}}(),E=/chrome/i.test(window.navigator.userAgent),K="onmousewheel"in document;K&&E&&(u("mousedown",r),u("mousewheel",n),u("load",t))}();
2!function(){"use strict";if(navigator.userAgent.match(/IEMobile\/10\.0/)){var e=document.createElement("style");e.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.querySelector("head").appendChild(e)}}();
3
4
5
6
7var element_position = $('.nav li').offset().top;
8
9
10
11
12var element_position = $('.nav li').offset().top;
13
14//$("#MenuUl li").eq(0).addClass('active');
15//console.log(element_position);
16$(window).scroll( function(){
17    var scroll = $(window).scrollTop();
18        if (scroll <= 450)
19        {
20            $("#MenuUl li").eq(0).addClass('active');
21        }
22    });
23    
24$("#dropdown-first").click(function(){
25    $(".sticky-nav").addClass("pos-class");
26});
27
28
29
30$("a.topopup").click(function() {
31	
32			//loading(); // loading
33			setTimeout(function(){ // then show popup, deley in .5 second
34				loadPopup(); // function show popup 
35			}, 200); // .2 second
36	return false;
37	
38	});
39
40
41	
42	$("a.close").click(function() {
43		disablePopup();  // function close pop up
44	});
45	
46	
47	
48	// $(this).keyup(function(event) {
49		// if (event.which == 27) { // 27 is 'Ecs' in the keyboard
50			// disablePopup();  // function close pop up
51		// }  	
52	// });
53         /************** start: functions. **************/
54	function loading() {
55		$("div.loader").show();  
56	}
57	
58	function closeloading() {
59		$("div.loader").fadeOut('normal');  
60	}
61	
62	var popupStatus = 0; // set value
63	
64	function loadPopup() { 
65		if(popupStatus == 0) { // if value is 0, show popup
66			closeloading(); // fadeout loading
67			$("#toPopup").fadeIn(0500); // fadein popup div
68			$("#backgroundPopup").css("opacity", "0.7"); // css opacity, supports IE7, IE8
69			$("#backgroundPopup").fadeIn(0001); 
70			popupStatus = 1; // and set value to 1
71		}	
72	}
73	
74	function disablePopup() {
75		if(popupStatus == 1) { // if value is 1, close popup
76			$("#toPopup").fadeOut("normal");  
77			$("#backgroundPopup").fadeOut("normal");  
78			popupStatus = 0;  // and set value to 0
79		}
80	}
81	
82	//var city_popup = false;
83	
84	// var now = new Date();
85	// var time = now.getTime();
86	// time += 3600 * 1000;
87	// now.setTime(time);
88	
89	var date = new Date();
90	date.setTime(date.getTime() + (60 * 60 * 1000));
91	
92	//if(Cookies.get('city_popup') != 'cityname'){
93	//console.log(Cookies.get());
94	//	$(function(){
95	//		$('a[onload]').trigger('onload');
96	//	});
97	//	Cookies.set('city_popup', 'cityname',{expires: null }, { path: 'https://www.sporloc.com/' });
98	//}
99	
100	// window.onbeforeunload = function() {
101		// $.cookie("city_popup", null);
102	// };
103	
104
105
106$(document).ready(function(){
107	
108	//loadPopup();
109    $(".navbar-nav li.dropdown").click(function(){
110	
111        $(this).hasClass("fgdfgdf") ?
112			($(".fgdfgdf").removeClass("fgdfgdf"),
113			$(".drdp-bg").remove())
114			
115			:
116			($(".fgdfgdf").removeClass("fgdfgdf"),
117			$(this).addClass("fgdfgdf"),$("div.drdp-bg").remove(),
118			$(".navbar-wrapper").after($('<div class="drdp-bg"> </div>'))),
119			clickon();
120		});
121		
122		
123		
124    
125
126});
127
128function clickon()
129{
130	$(".drdp-bg,.testimonial,.inner-top-image,.inner-bred-menu").on("click",function(){
131
132	$(".fgdfgdf").removeClass("fgdfgdf"),
133		$('.drdp-bg').remove();
134
135	});
136	
137}
138
139
140
141$("a.video-topopup, a.topopup, .testimonial-fixed-floating-icon-13aug, a.vdi-popup").click(function() {
142       if(navigator.userAgent.match(/(iPhone|iPod|iPad|android|iemobile|Trident|msie|webOS|Windows Phone|BlackBerry)/i))
143       {
144       $('html, body').animate({scrollTop: $("body").offset().top}, 'fast');
145       }
146       });
147
148
149$(function(){
150$('div.inner-bred-menu a[href*=#],#industries-we-serve a[href*=#]').click(function() {
151if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
152    && location.hostname == this.hostname) {
153        var $target = $(this.hash);
154        $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
155        if ($target.length) {
156            var targetOffset = $target.offset().top;
157            $('html,body').animate({scrollTop: targetOffset - 120}, 1000);
158            return false;
159        }
160    }
161  });
162});

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.