PageSourceSearch

https://www.melbourne-jun.derbyshire.sch.uk/_site/js/ecocycle.v2.min.js?cache=16082024

js melbourne-jun.derbyshire.sch.uk collected 2026-10-03 18:15:55 UTC 2,907 bytes, 1 lines download raw bytes

1"use strict";var ecoCycle=function(o,a){function r(n,t){a.log&&console.log(i+" slide "+n),e(n,function(){1<v&&a.timeout&&function(){c=setInterval(function(){s(t),e(d,function(){})},a.timeout)}()})}function s(n){"prev"==n?0==d?d=(Math.ceil(v/a.groupBy)-1)*a.groupBy:d-=a.groupBy:d>=v-a.groupBy?d=0:d+=a.groupBy}function e(o,n){function t(n,t){for(var e=0;e<v;e++)null!=n[e]&&n[e].classList.remove("active");switch(t){case"dots":null!=n[o/a.groupBy]&&n[o/a.groupBy].classList.add("active");break;default:for(e=o;e<o+a.groupBy;e++)null!=n[e]&&n[e].classList.add("active")}}a.onChange(o,v-1,a),null!=u[o]&&imgLoadCheck(u[o].querySelector("[data-src]"),!1,function(){}),t(u,""),a.dots&&t(a.dotsContainer.children,"dots"),n()}var i="ecocycle";this.defaults={childNodes:"",dots:!1,dotsChild:"<span></span>",dotsContainer:"."+i+"__dots",groupBy:1,log:!1,nav:!1,navChild:["<button>Prev</button>","<button>Next</button>"],navContainer:"."+i+"__nav",onChange:function(n,t,e){},onReady:function(n){},pauseOnHover:!1,shuffle:!1,timeout:7e3};var l=null!=document.querySelector(o);if(l){for(var n in a)a.hasOwnProperty(n)&&(this.defaults[n]=a[n]);a=this.defaults;var c,u,d=0;o=document.querySelector(o),u=o.children,""!=a.childNodes&&(a.shuffle=!1,u=o.querySelectorAll(a.childNodes));var v=u.length;a.shuffle&&function(n){for(var t=document.createDocumentFragment();n.length;)t.appendChild(n[Math.floor(Math.random()*n.length)]);o.appendChild(t)}(u)}this.init=function(){if(l){var n=function(n,t,e,o){var a,i,l=(a=e,(i=document.createElement("div")).innerHTML=a.trim(),i.firstChild);l.addEventListener("click",function(){clearInterval(c),c=null,"dots"==n?d=o:s(n),r(d,"next")},!1),t.appendChild(l)};a.log&&console.log("initialized "+i),o.classList.add(i);for(var t=0;t<v;t++)u[t].classList.add(i+"__item");if(a.nav&&(a.navContainer=document.querySelector(a.navContainer),null!==a.navContainer&&1<v&&(a.navContainer.classList.add(i+"__nav"),n("prev",a.navContainer,a.navChild[0],""),n("next",a.navContainer,a.navChild[1],""))),a.dots){a.dotsContainer=document.querySelector(a.dotsContainer),a.dotsContainer.classList.add(i+"__dots");for(t=0;t<v;t+=a.groupBy)n("dots",a.dotsContainer,a.dotsChild,t)}if(a.pauseOnHover){var e=this;o.addEventListener("mouseenter",function(){e.pause()}),o.addEventListener("mouseleave",function(){e.play()})}a.onReady(a),this.play()}},this.play=function(){c||(a.log&&console.log("play "+i),r(d,"next"))},this.pause=function(){l&&(a.log&&console.log("pause "+i),clearInterval(c),c=null)},this.prev=function(){c&&(clearInterval(c),c=null),s("prev"),c||r(d,"next")},this.next=function(){c&&(clearInterval(c),c=null),s("next"),c||r(d,"next")},this.destroy=function(){if(a.log&&console.log("destroy "+i),l){clearInterval(c),c=null,o.classList.remove(i);for(var n=0;n<v;n++)u[n].classList.remove(i+"__item"),u[n].classList.remove("active");a.navContainer.innerHTML="",a.dotsContainer.innerHTML=""}}};

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.