PageSourceSearch

https://www.learnupon.com/wp-content/themes/learnupon/assets/dist/…/superhero-hero-video-min.js?ver=5.07.039

js learnupon.com collected 2026-10-02 02:56:08 UTC 2,037 bytes, 1 lines download raw bytes

1"use strict";window.SuperheroHero=window.SuperheroHero||{};(function(hero){var READY_GATE_TIMEOUT=3e3;hero.config=hero.config||{};if(typeof hero.config.videoStartDelay!=="number"){hero.config.videoStartDelay=0}hero.onEnter=hero.onEnter||[];hero.onLeave=hero.onLeave||[];hero.readyGates=hero.readyGates||[];function init(){var wrapper=document.querySelector(".hero-media-wrapper");if(!wrapper)return;if(!hero.readyGates.length){observe(wrapper);return}var gates=hero.readyGates.map(function(gate){return gate(wrapper)});var timeout=new Promise(function(resolve){return setTimeout(resolve,READY_GATE_TIMEOUT)});Promise.race([Promise.all(gates),timeout]).then(function(){return observe(wrapper)})}function play(video){var playback=video.play();if(playback&&typeof playback["catch"]==="function"){playback["catch"](function(){})}}function observe(wrapper){var videoContainer=wrapper.querySelector(".hero-video-fallback");var video=videoContainer?videoContainer.querySelector("video"):null;var loopPauseSeconds=video?parseFloat(video.getAttribute("data-loop-pause")):NaN;var loopPauseMs=loopPauseSeconds>0?loopPauseSeconds*1e3:0;var showTimeout;var replayTimeout;if(video&&loopPauseMs){video.addEventListener("ended",function(){replayTimeout=setTimeout(function(){video.currentTime=0;play(video)},loopPauseMs)})}var observer=new IntersectionObserver(function(entries){entries.forEach(function(entry){if(entry.isIntersecting){showTimeout=setTimeout(function(){if(videoContainer)videoContainer.classList.add("is-visible");if(video)play(video)},hero.config.videoStartDelay);hero.onEnter.forEach(function(callback){return callback(wrapper)})}else{clearTimeout(showTimeout);clearTimeout(replayTimeout);if(videoContainer)videoContainer.classList.remove("is-visible");if(video){video.pause();video.currentTime=0}hero.onLeave.forEach(function(callback){return callback(wrapper)})}})},{threshold:.5});observer.observe(wrapper)}if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",init)}else{init()}})(window.SuperheroHero);

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.