PageSourceSearch

https://www.lovisa.co.uk/cdn/shop/t/811/assets/instagram-foursixty.js?v=89676351842552809871789977862

js lovisa.co.uk collected 2026-09-26 13:25:29 UTC 3,951 bytes, 2 lines download raw bytes

1(function(){"use strict";function InstagramFourSixty(container){if(this.container=container,this.nav=container.querySelector(".il-fs-nav"),this.prevBtn=this.nav&&this.nav.querySelector(".il-fs-prev"),this.nextBtn=this.nav&&this.nav.querySelector(".il-fs-next"),!(!this.nav||!this.prevBtn||!this.nextBtn)){this.scroller=null,this.scheduled=!1,this.settleTimers=[];var self=this;this._onScroll=function(){self.schedule()},this._onResize=function(){self.schedule()},this._onPrev=function(){self.page(-1)},this._onNext=function(){self.page(1)},this.prevBtn.addEventListener("click",this._onPrev),this.nextBtn.addEventListener("click",this._onNext),this.observer=new MutationObserver(function(){self.schedule()}),this.observer.observe(container,{childList:!0,subtree:!0}),window.addEventListener("resize",this._onResize,{passive:!0}),this.schedule()}}if(InstagramFourSixty.prototype.findScroller=function(){for(var candidates=this.container.querySelectorAll(".fs-timeline, .fs-wrapper"),i=0;i<candidates.length;i++)if(candidates[i].scrollWidth-candidates[i].clientWidth>2)return candidates[i];return this.container.querySelector(".fs-timeline")||this.container.querySelector(".fs-wrapper")},InstagramFourSixty.prototype.apply=function(){if(this.scheduled=!1,!(!this.prevBtn||!this.nextBtn)){var found=this.findScroller();if(found&&found!==this.scroller&&(this.scroller&&this.scroller.removeEventListener("scroll",this._onScroll),this.scroller=found,this.scroller.addEventListener("scroll",this._onScroll,{passive:!0})),!this.scroller){this.prevBtn.disabled=!0,this.nextBtn.disabled=!0;return}var max=this.scroller.scrollWidth-this.scroller.clientWidth;max<0&&(max=0);var raw=this.scroller.scrollLeft,x=raw<0?-raw:raw;x>max&&(x=max),this.prevBtn.disabled=x<=1,this.nextBtn.disabled=max<=1||x>=max-1}},InstagramFourSixty.prototype.schedule=function(){if(!this.scheduled){this.scheduled=!0;var self=this;window.requestAnimationFrame?window.requestAnimationFrame(function(){self.apply()}):window.setTimeout(function(){self.apply()},16)}},InstagramFourSixty.prototype.recheckSettle=function(){var self=this,i;for(i=0;i<this.settleTimers.length;i++)window.clearTimeout(this.settleTimers[i]);this.settleTimers=[120,400,800,1500].map(function(t){return window.setTimeout(function(){self.apply()},t)})},InstagramFourSixty.prototype.page=function(direction){if(this.scroller||this.apply(),!!this.scroller){var rtl=!1;try{rtl=window.getComputedStyle(this.scroller).direction==="rtl"}catch(e){}var delta=(rtl?-direction:direction)*this.scroller.clientWidth;try{this.scroller.scrollBy({left:delta,behavior:"smooth"})}catch(e){this.scroller.scrollLeft+=delta}this.recheckSettle()}},InstagramFourSixty.prototype.onUnload=function(){this.observer&&this.observer.disconnect(),this.scroller&&this.scroller.removeEventListener("scroll",this._onScroll),this._onResize&&window.removeEventListener("resize",this._onResize);for(var i=0;i<this.settleTimers.length;i++)window.clearTimeout(this.settleTimers[i])},window.theme&&window.theme.sections&&typeof window.theme.sections.register=="function")window.theme._registeredSections=window.theme._registeredSections||{},window.theme._registeredSections["instagram-foursixty"]||(window.theme._registeredSections["instagram-foursixty"]=!0,window.theme.InstagramFourSixty=InstagramFourSixty,window.theme.sections.register("instagram-foursixty",InstagramFourSixty));else{var initContainer=function(c){c&&!c.__ilFsInit&&(c.__ilFsInit=!0,new InstagramFourSixty(c))},initAll=function(){for(var list=document.querySelectorAll(".instagram--foursixty"),i=0;i<list.length;i++)initContainer(list[i])};document.readyState!=="loading"?initAll():document.addEventListener("DOMContentLoaded",initAll),document.addEventListener("shopify:section:load",function(e){initContainer((e.target||document).querySelector(".instagram--foursixty"))})}})();
2//# sourceMappingURL=/cdn/shop/t/811/assets/instagram-foursixty.js.map?v=89676351842552809871789977862

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.