| Server IP : 5.129.245.98 / Your IP : 216.73.217.19 Web Server : Apache/2.4.66 (Debian) System : Linux 1b8c17c336b9 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/plugins/greenshiftgsap/libs/videoscroll/ |
Upload File : |
"use strict";var loadedvideoscroll=!1;const onGSVideoScrollInteraction=()=>{if(!0===loadedvideoscroll)return;loadedvideoscroll=!0;const VideoScript=document.createElement("script");VideoScript.src="https://cdn.jsdelivr.net/npm/scrolly-video@latest/dist/scrolly-video.js",document.body.appendChild(VideoScript),VideoScript.onload=()=>{let gspbvideoscroll=document.getElementsByClassName("gs-videoscrloader");gspbvideoscroll.length>0&&Array.from(gspbvideoscroll).forEach(currentNode=>{currentNode.classList.add("gs-videoscrloaded");let currentViewer=currentNode;currentViewer&&"undefined"!=typeof ScrollyVideo&&new ScrollyVideo({scrollyVideoContainer:currentViewer,src:currentViewer.dataset.source,full:!1,cover:!1,sticky:currentViewer.dataset.sticky||!1,useWebCodecs:currentViewer.dataset.usewebcodecs||!1,frameThreshold:parseFloat(currentViewer.dataset.framethreshold),transitionSpeed:parseFloat(currentViewer.dataset.transitionspeed),setCurrentTimePercent:parseFloat(currentViewer.dataset.setcurrenttimepercent)})})}};document.body.addEventListener("mouseover",onGSVideoScrollInteraction,{once:!0}),document.body.addEventListener("touchmove",onGSVideoScrollInteraction,{once:!0}),window.addEventListener("scroll",onGSVideoScrollInteraction,{once:!0}),document.body.addEventListener("keydown",onGSVideoScrollInteraction,{once:!0});var requestIdleCallback=window.requestIdleCallback||function(cb){const start=Date.now();return setTimeout((function(){cb({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-start))}})}),1)};let gspbvideoscroll=document.getElementsByClassName("gs-videoscrloader");for(let i=0;i<gspbvideoscroll.length;i++){let currentNode;gspbvideoscroll[i].classList.contains("gs-loadnow")&&requestIdleCallback((function(){onGSVideoScrollInteraction()}),{timeout:300})}