PageSourceSearch

https://www.safesave-payments.com/wp-content/plugins/animated-blocks/build/view.js?ver=2f6c4fa441a94c8bf98d

js safesave-payments.com collected 2026-10-04 19:09:28 UTC 2,138 bytes, 1 lines download raw bytes

1(()=>{"use strict";class t{static defaultOptions={delay:10,threshold:50,reset:!1,offsetTop:0,throttle:50};constructor(s,e={}){this.el=s,this.win=window,this.viewed=!1,this.timer=null,this.throttleDelay=null,this.options=Object.assign({},t.defaultOptions,e),this.delay=void 0!==this.el.dataset.scrollDelay?Number(this.el.dataset.scrollDelay):this.options.delay,this.threshold=void 0!==this.el.dataset.scrollThreshold?Number(this.el.dataset.scrollThreshold):this.options.threshold,this.offsetTop=void 0!==this.el.dataset.scrollOffsetTop?Number(this.el.dataset.scrollOffsetTop):this.options.offsetTop,this.reset=this.el.hasAttribute("data-scroll-reset")?""===this.el.dataset.scrollReset||"true"===this.el.dataset.scrollReset.toLowerCase():this.options.reset,this.init()}init(){this.onScroll(),this.win.addEventListener("scroll",()=>{this.throttle(this.scrollHandler.bind(this),this.options.throttle)})}scrollHandler(){this.viewed&&!this.reset||this.onScroll()}onScroll(){if(this.inViewport()){if(this.viewed&&this.reset)return;"function"==typeof this.options.callback&&this.options.callback.call(this.el),window.clearTimeout(this.timer),this.timer=window.setTimeout(()=>{this.toggleScrollClass()},this.delay),this.viewed=!0}else this.reset&&(this.viewed&&"function"==typeof this.options.resetCallback&&this.options.resetCallback.call(this.el),this.toggleScrollClass(),this.viewed=!1)}toggleScrollClass(){const t=this.el.getAttribute("data-scroll-class");t&&t.split(" ").forEach(t=>{this.viewed?this.el.classList.add(t):this.el.classList.remove(t)})}inViewport(){const t=this.el.getBoundingClientRect(),s=this.win.innerHeight;let e=this.threshold;s<t.height&&(e=50);let i=e/100*t.height;return i=!1===this.viewed?i:1,t.top+i<=s&&t.bottom-i>=this.offsetTop}throttle(t,s){this.throttleDelay||(this.throttleDelay=!0,setTimeout(()=>{t(),this.throttleDelay=!1},s))}}window.ScrollClass=t;const s=t;function e(){document.querySelectorAll("[data-scroll-class]").forEach(t=>{new s(t),t.addEventListener("animationend",()=>{t.classList.add("ab-animation-end")})})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()})();

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.