PageSourceSearch

https://online-stopwatch.com/js/app-page.js?v=

js online-stopwatch.com collected 2026-09-24 09:11:35 UTC 24,095 bytes, 332 lines download raw bytes

1(function() {
2    var originalAddEventListener = EventTarget.prototype.addEventListener;
3
4    EventTarget.prototype.addEventListener = function(type, listener, options) {
5        if (type === 'touchstart' || type === 'touchmove' || type === 'wheel' || type === 'mousewheel') {
6            options = options || {};
7            options.passive = true;
8        }
9
10        return originalAddEventListener.call(this, type, listener, options);
11    };
12})();
13
14
15window.addEventListener('message', function (e)
16{
17	if(e.origin.indexOf("online-stopwatch.com")===-1) return;
18	if (e.data.id==="replaceUrl")
19	{
20		history.replaceState(null, null, e.data.url);
21	}
22});
23	
24document.addEventListener('DOMContentLoaded', function() {
25	
26	// Stop Spacebar from Scrolling Page
27	window.onkeydown = function(e) { 
28	  return !(e.keyCode == 32 && e.target == document.body);
29	};
30	
31	// Remove Title tags
32	document.querySelectorAll(".toplinks a, .menulinks a").forEach(function(link) {
33		link.setAttribute("title", "");
34	});
35	
36	
37	// Toggle the main menu
38	document.querySelector(".head4").addEventListener("click", function() {
39		toggleElement('.header-menu');
40	});
41	
42	// Check if browser supports Canvas
43	function OScanvasSupport(){
44	  var elem = document.createElement('canvas');
45	  return !!(elem.getContext && elem.getContext('2d'));
46	}
47
48	// Pass Hash Variables to the timers
49	function giveHash(callBack){
50		if (callBack.type!="hashchange") giveHash.callBack=callBack;
51		giveHash.callBack(location.hash)
52	}
53	// Pass Key Presses to the timers
54	function giveKey(callback){
55		document.addEventListener('keydown', keyboardEventHandler, false);
56		function keyboardEventHandler(e){
57			callback(e);
58		};
59	}	
60		
61	function toggleElement(elementOrSelector) {
62		var element;
63
64		// Check if the argument is a string (selector) or a DOM element
65		if (typeof elementOrSelector === 'string') {
66			element = document.querySelector(elementOrSelector);
67		} else {
68			element = elementOrSelector;
69		}
70
71		// Proceed only if the element exists
72		if (element) {
73			if (element.style.display === "none" || element.style.display === '') {
74				element.style.display = "block";
75			} else {
76				element.style.display = "none";
77			}
78		}
79	}
80
81	function setMaxWidth(selector, maxWidth) {
82		document.querySelectorAll(selector).forEach(function(el) {
83			el.style.maxWidth = maxWidth;
84		});
85	}
86
87	function toggleClass(element, className, condition) {
88		if (condition) {
89			element.classList.add(className);
90		} else {
91			element.classList.remove(className);
92		}
93	}
94
95	document.querySelectorAll(".dropbox").forEach(function(dropbox) {
96		dropbox.addEventListener("click", function() {
97			var curDrop = this;
98			var parent = curDrop.parentNode;
99			var youtubePreview = parent.querySelector(".youtubePreview");
100
101			if (youtubePreview) {
102				youtubePreview.innerHTML = ""; // Clear the HTML of .youtubePreview
103
104				// Update the HTML of .youtubePreview based on the condition
105				if (youtubePreview.dataset.ytUrl) {
106					youtubePreview.innerHTML = youtubeLink.replace("{code}", youtubePreview.dataset.ytUrl);
107				}
108			}
109
110			var dropGroup = curDrop.dataset.dropgroup;
111
112			if (parent.parentNode.classList.contains("expand")) {
113				setMaxWidth(parent.parentNode, curDrop.nextElementSibling.style.display === "none" ? "4000px" : "1000px");
114			}
115
116			toggleElement(curDrop.nextElementSibling);
117
118			var isHidden = curDrop.nextElementSibling.style.display === "none";
119			toggleClass(curDrop, "flip-image", !isHidden);
120			toggleClass(curDrop.querySelector(".titleInner"), "flip-image", !isHidden);
121
122			if (dropGroup !== null) {
123				document.querySelectorAll('.dropbox[data-dropgroup="' + dropGroup + '"]').forEach(function(el) {
124					if (el !== curDrop) {
125						el.nextElementSibling.style.display = "none";
126						el.classList.remove("flip-image");
127						el.querySelector(".titleInner").classList.remove("flip-image");
128					}
129				});
130
131				if (parent.parentNode.id) {
132					window.history.replaceState(null, null, '#' + parent.parentNode.id);
133				}
134			}
135		});
136	});
137	
138	
139	//======================= For adding url settings to the timers...
140	
141	// Get URL Parameters
142	if((window.location + '').indexOf('?') !== -1){
143		for ( var osURLvar = {}, osi=0, tmpArr = window.location.search.substring(1).split('&');
144		osi < tmpArr.length; osv = tmpArr[osi++].split('='), osURLvar[osv[0]] = osv[1] ){};
145	}
146	if(osURLvar) {
147		if(osURLvar.countdown) {
148			var osrcntdwn = osURLvar.countdown.split(":");
149			document.querySelector('#os-opt-hh').value = osrcntdwn[0];
150			document.querySelector('#os-opt-mm').value = osrcntdwn[1];
151			document.querySelector('#os-opt-ss').value = osrcntdwn[2];
152		}
153		if(osURLvar.ns) {
154			document.querySelector('#os-opt-sound').value = osURLvar.ns;
155		}       
156		if(osURLvar.nslen) {
157			document.querySelector('#os-opt-loop').value = osURLvar.nslen;
158		}
159		if(osURLvar.widescreen) {
160			document.querySelector('#os-opt-widescreen').checked = false;
161		}       
162		if(osURLvar.display) {
163			document.querySelector('#os-opt-display').value = osURLvar.display;
164		}
165
166		if(osURLvar.autoplay) {
167			document.querySelector('#os-opt-autostart').checked = true;
168		}       
169	}
170	
171	if(document.querySelector('#os-opt-set')){
172		
173		document.querySelector("#os-opt-set").addEventListener("click", function(e) {
174			e.preventDefault();
175
176			var optset = buildTimerLink();
177
178			if (optset.query !== '') {
179				window.location.href = optset.query;
180			}
181		});		
182		
183	}
184	
185
186
187	function buildTimerLink() {
188		
189		var obj = { query: '', time: '' };
190
191		var hh = document.getElementById('os-opt-hh') ? document.getElementById('os-opt-hh').value : '';
192		var mm = document.getElementById('os-opt-mm') ? document.getElementById('os-opt-mm').value : '';
193		var ss = document.getElementById('os-opt-ss') ? document.getElementById('os-opt-ss').value : '';
194
195		var snd = document.getElementById('os-opt-sound') ? document.getElementById('os-opt-sound').value : 'd';
196		var loop = document.getElementById('os-opt-loop') ? document.getElementById('os-opt-loop').value : 'd';
197		var autostart = document.getElementById('os-opt-autostart') ? document.getElementById('os-opt-autostart').checked : false;
198
199		var display = document.getElementById('os-opt-display') ? document.getElementById('os-opt-display').value : 'd';
200		var widescreen = document.getElementById('os-opt-widescreen') ? document.getElementById('os-opt-widescreen').checked : false;
201
202		var timerTitle = document.getElementById('os-opt-title') ? document.getElementById('os-opt-title').value : '';
203
204		var optset = '';
205		var altTimerTitle = '';
206		var needSpace = '';
207
208		if (hh !== '00' || mm !== '00' || ss !== '00') {
209			optset = '?countdown=' + hh + ':' + mm + ':' + ss;
210			obj.time = hh + ':' + mm + ':' + ss;
211		}
212
213		if (snd !== 'd') {
214			optset += (optset ? '&' : '?') + 'ns=' + snd;
215			altTimerTitle = document.querySelector('#os-opt-sound option:checked').textContent;
216		}
217
218		if (loop !== 'd') {
219			optset += (optset ? '&' : '?') + 'nslen=' + loop;
220
221			if (altTimerTitle !== '') {
222				needSpace = ' ';
223			}
224
225			altTimerTitle += needSpace + document.querySelector('#os-opt-loop option:checked').textContent;
226		}
227
228		if (autostart) {
229			optset += (optset ? '&' : '?') + 'autoplay=true';
230
231			if (altTimerTitle !== '') {
232				needSpace = ' ';
233			}
234
235			altTimerTitle += needSpace + 'Auto Start';
236		}
237
238		if (widescreen) {
239			optset += (optset ? '&' : '?') + 'widescreen=' + widescreen;
240		}
241
242		if (display !== 'd') {
243			optset += (optset ? '&' : '?') + 'display=' + display;
244		}
245
246		if(timerTitle ==''){
247			timerTitle = altTimerTitle;
248		}else{
249
250			if(optset == ''){
251				optset = '?title=' + encodeURIComponent(timerTitle);
252			}else{
253				optset += '&title=' + encodeURIComponent(timerTitle);
254			}		
255
256			obj.justTitle = timerTitle;
257		}
258
259		if(obj.time != ''){
260			if(timerTitle == ''){
261				timerTitle = obj.time + ' timer';
262			}else{
263				timerTitle = timerTitle + ' (' + obj.time + ')';
264			}
265		}
266
267		obj.title = timerTitle;
268		obj.query = optset;
269
270		return obj;
271	}
272	
273	
274	//=======================
275	
276	if(document.querySelector('.glider')){
277	
278		document.querySelectorAll('.glider').forEach((gliderElement) => {
279		  new Glider(gliderElement, {
280			slidesToShow: 5,
281			draggable: true,
282			dots: '.dots',
283			arrows: {
284			  prev: '.glider-prev',
285			  next: '.glider-next'
286			}
287		  });
288		});
289		
290	}
291	
292});
293/*====================================================================== Confetti On Wins!
294========================================================================================*/
295var JSConfetti=function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}function n(t){return+t.replace(/px/,"")}function s(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=Math.random()*(e-t)+t;return Math.floor(n*Math.pow(10,i))/Math.pow(10,i)}function o(t){return t[s(0,t.length)]}var a=["#fcf403","#62fc03","#f4fc03","#03e7fc","#03fca5","#a503fc","#fc03ad","#fc03c2"];function r(t){return Math.log(t)/Math.log(1920)}var h=function(){function e(i){t(this,e);var n=i.initialPosition,a=i.direction,h=i.confettiRadius,c=i.confettiColors,u=i.emojis,l=i.emojiSize,d=i.canvasWidth,f=s(.9,1.7,3)*r(d);this.confettiSpeed={x:f,y:f},this.finalConfettiSpeedX=s(.2,.6,3),this.rotationSpeed=u.length?.01:s(.03,.07,3)*r(d),this.dragForceCoefficient=s(5e-4,9e-4,6),this.radius={x:h,y:h},this.initialRadius=h,this.rotationAngle="left"===a?s(0,.2,3):s(-.2,0,3),this.emojiSize=l,this.emojiRotationAngle=s(0,2*Math.PI),this.radiusYUpdateDirection="down";var m="left"===a?s(82,15)*Math.PI/180:s(-15,-82)*Math.PI/180;this.absCos=Math.abs(Math.cos(m)),this.absSin=Math.abs(Math.sin(m));var v=s(-150,0),p={x:n.x+("left"===a?-v:v)*this.absCos,y:n.y-v*this.absSin};this.currentPosition=Object.assign({},p),this.initialPosition=Object.assign({},p),this.color=u.length?null:o(c),this.emoji=u.length?o(u):null,this.createdAt=(new Date).getTime(),this.direction=a}return i(e,[{key:"draw",value:function(t){var e=this.currentPosition,i=this.radius,n=this.color,s=this.emoji,o=this.rotationAngle,a=this.emojiRotationAngle,r=this.emojiSize,h=window.devicePixelRatio;n?(t.fillStyle=n,t.beginPath(),t.ellipse(e.x*h,e.y*h,i.x*h,i.y*h,o,0,2*Math.PI),t.fill()):s&&(t.font="".concat(r,"px serif"),t.save(),t.translate(h*e.x,h*e.y),t.rotate(a),t.textAlign="center",t.fillText(s,0,0),t.restore())}},{key:"updatePosition",value:function(t,e){var i=this.confettiSpeed,n=this.dragForceCoefficient,s=this.finalConfettiSpeedX,o=this.radiusYUpdateDirection,a=this.rotationSpeed,r=this.createdAt,h=this.direction,c=e-r;i.x>s&&(this.confettiSpeed.x-=n*t),this.currentPosition.x+=i.x*("left"===h?-this.absCos:this.absCos)*t,this.currentPosition.y=this.initialPosition.y-i.y*this.absSin*c+.00125*Math.pow(c,2)/2,this.rotationSpeed-=this.emoji?1e-4:1e-5*t,this.rotationSpeed<0&&(this.rotationSpeed=0),this.emoji?this.emojiRotationAngle+=this.rotationSpeed*t%(2*Math.PI):"down"===o?(this.radius.y-=t*a,this.radius.y<=0&&(this.radius.y=0,this.radiusYUpdateDirection="up")):(this.radius.y+=t*a,this.radius.y>=this.initialRadius&&(this.radius.y=this.initialRadius,this.radiusYUpdateDirection="down"))}},{key:"getIsVisibleOnCanvas",value:function(t){return this.currentPosition.y<t+100}}]),e}();function c(){var t=document.createElement("canvas");return t.style.position="fixed",t.style.width="100%",t.style.height="100%",t.style.top="0",t.style.left="0",t.style.zIndex="1000",t.style.pointerEvents="none",document.body.appendChild(t),t}function u(t){var e=t.confettiRadius,i=void 0===e?6:e,n=t.confettiNumber,s=void 0===n?t.confettiesNumber||(t.emojis?40:250):n,o=t.confettiColors,r=void 0===o?a:o,h=t.emojis,c=void 0===h?t.emojies||[]:h,u=t.emojiSize,l=void 0===u?80:u;return t.emojies&&console.error("emojies argument is deprecated, please use emojis instead"),t.confettiesNumber&&console.error("confettiesNumber argument is deprecated, please use confettiNumber instead"),{confettiRadius:i,confettiNumber:s,confettiColors:r,emojis:c,emojiSize:l}}var l=function(){function e(i){var n=this;t(this,e),this.canvasContext=i,this.shapes=[],this.promise=new Promise((function(t){return n.resolvePromise=t}))}return i(e,[{key:"getBatchCompletePromise",value:function(){return this.promise}},{key:"addShapes",value:function(){var t;(t=this.shapes).push.apply(t,arguments)}},{key:"complete",value:function(){var t;return!this.shapes.length&&(null===(t=this.resolvePromise)||void 0===t||t.call(this),!0)}}
295,{key:"processShapes",value:function(t,e,i){var n=this,s=t.timeDelta,o=t.currentTime;this.shapes=this.shapes.filter((function(t){return t.updatePosition(s,o),t.draw(n.canvasContext),!i||t.getIsVisibleOnCanvas(e)}))}}]),e}();return function(){function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,e),this.activeConfettiBatches=[],this.canvas=i.canvas||c(),this.canvasContext=this.canvas.getContext("2d"),this.requestAnimationFrameRequested=!1,this.lastUpdated=(new Date).getTime(),this.iterationIndex=0,this.loop=this.loop.bind(this),requestAnimationFrame(this.loop)}return i(e,[{key:"loop",value:function(){var t,e,i,s,o;this.requestAnimationFrameRequested=!1,t=this.canvas,e=window.devicePixelRatio,i=getComputedStyle(t),s=n(i.getPropertyValue("width")),o=n(i.getPropertyValue("height")),t.setAttribute("width",(s*e).toString()),t.setAttribute("height",(o*e).toString());var a=(new Date).getTime(),r=a-this.lastUpdated,h=this.canvas.offsetHeight,c=this.iterationIndex%10==0;this.activeConfettiBatches=this.activeConfettiBatches.filter((function(t){return t.processShapes({timeDelta:r,currentTime:a},h,c),!c||!t.complete()})),this.iterationIndex++,this.queueAnimationFrameIfNeeded(a)}},{key:"queueAnimationFrameIfNeeded",value:function(t){this.requestAnimationFrameRequested||this.activeConfettiBatches.length<1||(this.requestAnimationFrameRequested=!0,this.lastUpdated=t||(new Date).getTime(),requestAnimationFrame(this.loop))}},{key:"addConfetti",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=u(t),i=e.confettiRadius,n=e.confettiNumber,s=e.confettiColors,o=e.emojis,a=e.emojiSize,r=this.canvas.getBoundingClientRect(),c=r.width,d=r.height,f=5*d/7,m={x:0,y:f},v={x:c,y:f},p=new l(this.canvasContext),y=0;y<n/2;y++){var g=new h({initialPosition:m,direction:"right",confettiRadius:i,confettiColors:s,confettiNumber:n,emojis:o,emojiSize:a,canvasWidth:c}),C=new h({initialPosition:v,direction:"left",confettiRadius:i,confettiColors:s,confettiNumber:n,emojis:o,emojiSize:a,canvasWidth:c});p.addShapes(g,C)}return this.activeConfettiBatches.push(p),this.queueAnimationFrameIfNeeded(),p.getBatchCompletePromise()}},{key:"clearCanvas",value:function(){this.activeConfettiBatches=[]}},{key:"destroyCanvas",value:function(){this.canvas.remove()}}]),e}()}();
296
297var confettiFalling = false;
298function winShow(ch){
299	if(!isMobile.any){
300		
301		if(!confettiFalling){
302		
303			confettiFalling = true
304			
305			if(typeof ch !== 'undefined'){
306				jsConfetti.addConfetti({
307				   emojis: [ch]
308				});
309			}else{
310				if(window.location.href.indexOf("emoji-race-timer") > -1) {
311					
312					jsConfetti.addConfetti({
313					   emojis: ['🙏','🥰','😍','🔥','🤣','✨','😂']
314					}); 
315					
316				}
317			}
318			jsConfetti.addConfetti().then(function () {
319			   confettiFalling = false;
320			});
321		
322		}
323		
324		
325	}
326}
327/*========================================================================================
328========================================================================================*/
329	
330//Glider JS - 1.7.4 - 	
331!function(e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():e()}(function(){var a="undefined"!=typeof window?window:this,e=a.Glider=function(e,t){var o=this;if(e._glider)return e._glider;if(o.ele=e,o.ele.classList.add("glider"),(o.ele._glider=o).opt=Object.assign({},{slidesToScroll:1,slidesToShow:1,resizeLock:!0,duration:.5,easing:function(e,t,o,i,r){return i*(t/=r)*t+o}},t),o.animate_id=o.page=o.slide=0,o.arrows={},o._opt=o.opt,o.opt.skipTrack)o.track=o.ele.children[0];else for(o.track=document.createElement("div"),o.ele.appendChild(o.track);1!==o.ele.children.length;)o.track.appendChild(o.ele.children[0]);o.track.classList.add("glider-track"),o.init(),o.resize=o.init.bind(o,!0),o.event(o.ele,"add",{scroll:o.updateControls.bind(o)}),o.event(a,"add",{resize:o.resize})},t=e.prototype;return t.init=function(e,t){var o,i=this,r=0,s=0,l=(i.slides=i.track.children,[].forEach.call(i.slides,function(e,t){e.classList.add("glider-slide"),e.setAttribute("data-gslide",t)}),i.containerWidth=i.ele.clientWidth,i.settingsBreakpoint());t=t||l,"auto"!==i.opt.slidesToShow&&void 0===i.opt._autoSlide||(o=i.containerWidth/i.opt.itemWidth,i.opt._autoSlide=i.opt.slidesToShow=i.opt.exactWidth?o:Math.max(1,Math.floor(o))),"auto"===i.opt.slidesToScroll&&(i.opt.slidesToScroll=Math.floor(i.opt.slidesToShow)),i.itemWidth=i.opt.exactWidth?i.opt.itemWidth:i.containerWidth/i.opt.slidesToShow,[].forEach.call(i.slides,function(e){e.style.height="auto",e.style.width=i.itemWidth+"px",r+=i.itemWidth,s=Math.max(e.offsetHeight,s)}),i.track.style.width=r+"px",i.trackWidth=r,i.isDrag=!1,i.preventClick=!1,i.move=!1,i.opt.resizeLock&&i.scrollTo(i.slide*i.itemWidth,0),(l||t)&&(i.bindArrows(),i.buildDots(),i.bindDrag()),i.updateControls(),i.emit(e?"refresh":"loaded")},t.bindDrag=function(){function e(){t.mouseDown=void 0,t.ele.classList.remove("drag"),t.isDrag&&(t.preventClick=!0),t.isDrag=!1}var t=this;t.mouse=t.mouse||t.handleMouse.bind(t);function o(){t.move=!0}var i={mouseup:e,mouseleave:e,mousedown:function(e){e.preventDefault(),e.stopPropagation(),t.mouseDown=e.clientX,t.ele.classList.add("drag"),t.move=!1,setTimeout(o,300)},touchstart:function(e){t.ele.classList.add("drag"),t.move=!1,setTimeout(o,300)},mousemove:t.mouse,click:function(e){t.preventClick&&t.move&&(e.preventDefault(),e.stopPropagation()),t.preventClick=!1,t.move=!1}};t.ele.classList.toggle("draggable",!0===t.opt.draggable),t.event(t.ele,"remove",i),t.opt.draggable&&t.event(t.ele,"add",i)},t.buildDots=function(){var e=this;
vendor: 5,587 bytes, lines 331-332
331if(e.opt.dots){if("string"==typeof e.opt.dots?e.dots=document.querySelector(e.opt.dots):e.dots=e.opt.dots,e.dots){e.dots.innerHTML="",e.dots.setAttribute("role","tablist"),e.dots.classList.add("glider-dots");for(var t=0;t<Math.ceil(e.slides.length/e.opt.slidesToShow);++t){var o=document.createElement("button");o.dataset.index=t,o.setAttribute("aria-label","Page "+(t+1)),o.setAttribute("role","tab"),o.className="glider-dot "+(t?"":"active"),e.event(o,"add",{click:e.scrollItem.bind(e,t,!0)}),e.dots.appendChild(o)}}}else e.dots&&(e.dots.innerHTML="")},t.bindArrows=function(){var o=this;o.opt.arrows?["prev","next"].forEach(function(e){var t=o.opt.arrows[e];(t=t&&("string"==typeof t?document.querySelector(t):t))&&(t._func=t._func||o.scrollItem.bind(o,e),o.event(t,"remove",{click:t._func}),o.event(t,"add",{click:t._func}),o.arrows[e]=t)}):Object.keys(o.arrows).forEach(function(e){e=o.arrows[e];o.event(e,"remove",{click:e._func})})},t.updateControls=function(e){var n=this,t=(e&&!n.opt.scrollPropagate&&e.stopPropagation(),n.containerWidth>=n.trackWidth),a=(n.opt.rewind||(n.arrows.prev&&(n.arrows.prev.classList.toggle("disabled",n.ele.scrollLeft<=0||t),n.arrows.prev.setAttribute("aria-disabled",n.arrows.prev.classList.contains("disabled"))),n.arrows.next&&(n.arrows.next.classList.toggle("disabled",Math.ceil(n.ele.scrollLeft+n.containerWidth)>=Math.floor(n.trackWidth)||t),n.arrows.next.setAttribute("aria-disabled",n.arrows.next.classList.contains("disabled")))),n.slide=Math.round(n.ele.scrollLeft/n.itemWidth),n.page=Math.round(n.ele.scrollLeft/n.containerWidth),n.slide+Math.floor(Math.floor(n.opt.slidesToShow)/2)),d=Math.floor(n.opt.slidesToShow)%2?0:a+1;1===Math.floor(n.opt.slidesToShow)&&(d=0),n.ele.scrollLeft+n.containerWidth>=Math.floor(n.trackWidth)&&(n.page=n.dots?n.dots.children.length-1:0),[].forEach.call(n.slides,function(e,t){var o=e.classList,e=o.contains("visible"),i=n.ele.scrollLeft,r=n.ele.scrollLeft+n.containerWidth,s=n.itemWidth*t,l=s+n.itemWidth,s=([].forEach.call(o,function(e){/^left|right/.test(e)&&o.remove(e)}),o.toggle("active",n.slide===t),a===t||d&&d===t?o.add("center"):(o.remove("center"),o.add([t<a?"left":"right",Math.abs(t-(!(t<a)&&d||a))].join("-"))),Math.ceil(s)>=Math.floor(i)&&Math.floor(l)<=Math.ceil(r));o.toggle("visible",s),s!==e&&n.emit("slide-"+(s?"visible":"hidden"),{slide:t})}),n.dots&&[].forEach.call(n.dots.children,function(e,t){e.classList.toggle("active",n.page===t)}),e&&n.opt.scrollLock&&(clearTimeout(n.scrollLock),n.scrollLock=setTimeout(function(){clearTimeout(n.scrollLock),.02<Math.abs(n.ele.scrollLeft/n.itemWidth-n.slide)&&(n.mouseDown||n.trackWidth>n.containerWidth+n.ele.scrollLeft&&n.scrollItem(n.getCurrentSlide()))},n.opt.scrollLockDelay||250))},t.getCurrentSlide=function(){return this.round(this.ele.scrollLeft/this.itemWidth)},t.scrollItem=function(e,t,o){o&&o.preventDefault();var i,r=this,s=e,o=(++r.animate_id,r.slide),l=!0===t?(e=Math.round(e*r.containerWidth/r.itemWidth))*r.itemWidth:("string"==typeof e&&(l="prev"===e,e=r.opt.slidesToScroll%1||r.opt.slidesToShow%1?r.getCurrentSlide():r.slide,l?e-=r.opt.slidesToScroll:e+=r.opt.slidesToScroll,r.opt.rewind&&(i=r.ele.scrollLeft,e=l&&!i?r.slides.length:!l&&i+r.containerWidth>=Math.floor(r.trackWidth)?0:e)),e=Math.max(Math.min(e,r.slides.length),0),r.slide=e,r.itemWidth*e);return r.emit("scroll-item",{prevSlide:o,slide:e}),r.scrollTo(l,r.opt.duration*Math.abs(r.ele.scrollLeft-l),function(){r.updateControls(),r.emit("animated",{value:s,type:"string"==typeof s?"arrow":t?"dot":"slide"})}),!1},t.settingsBreakpoint=function(){var e=this,t=e._opt.responsive;if(t){t.sort(function(e,t){return t.breakpoint-e.breakpoint});for(var o=0;o<t.length;++o){var i=t[o];if(a.innerWidth>=i.breakpoint)return e.breakpoint!==i.breakpoint&&(e.opt=Object.assign({},e._opt,i.settings),e.breakpoint=i.breakpoint,!0)}}var r=0!==e.breakpoint;return e.opt=Object.assign({},e._opt),e.breakpoint=0,r},t.scrollTo=function(t,o,i){var r=this,s=(new Date).getTime(),l=r.animate_id,n=function(){var e=(new Date).getTime()-s;r.ele.scrollLeft=r.ele.scrollLeft+(t-r.ele.scrollLeft)*r.opt.easing(0,e,0,1,o),e<o&&l===r.animate_id?a.requestAnimationFrame(n):(r.ele.scrollLeft=t,i&&i.call(r))};a.requestAnimationFrame(n)},t.removeItem=function(e){var t=this;t.slides.length&&(t.track.removeChild(t.slides[e]),t.refresh(!0),t.emit("remove"))},t.addItem=function(e){this.track.appendChild(e),this.refresh(!0),this.emit("add")},t.handleMouse=function(e){var t=this;t.mouseDown&&(t.isDrag=!0,t.ele.scrollLeft+=(t.mouseDown-e.clientX)*(t.opt.dragVelocity||3.3),t.mouseDown=e.clientX)},t.round=function(e){var t=1/(this.opt.slidesToScroll%1||1);return Math.round(e*t)/t},t.refresh=function(e){this.init(!0,e)},t.setOption=function(t,e){var o=this;o.breakpoint&&!e?o._opt.responsive.forEach(function(e){e.breakpoint===o.breakpoint&&(e.settings=Object.assign({},e.settings,t))}):o._opt=Object.assign({},o._opt,t),o.breakpoint=0,o.settingsBreakpoint()},t.destroy=function(){function e(t){t.removeAttribute("style"),[].forEach.call(t.classList,function(e){/^glider/.test(e)&&t.classList.remove(e)})}var t=this,o=t.ele.cloneNode(!0);t.opt.skipTrack||(o.children[0].outerHTML=o.children[0].innerHTML),e(o),[].forEach.call(o.getElementsByTagName("*"),e),t.ele.parentNode.replaceChild(o,t.ele),t.event(a,"remove",{resize:t.resize}),t.emit("destroy")},t.emit=function(e,t){e=new a.CustomEvent("glider-"+e,{bubbles:!this.opt.eventPropagate,detail:t});this.ele.dispatchEvent(e)},t.event=function(e,t,o){var i=e[t+"EventListener"].bind(e);Object.keys(o).forEach(function(e){i(e,o[e])})},e});	
332	

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.