1var all_video_bgs=document.querySelectorAll(".background_html5video, .video-snippet");if(all_video_bgs.length>0){function get_correct_video(e){var t=window.innerWidth,o=e.getAttribute("src");set_correct_video(t>767?"desktop":"mobile",o,e)}function set_correct_video(e,t,o){var r={desktop:"mobile",mobile:"desktop"},i=o.getAttribute("data-"+e+"-src"),n=o.getAttribute("data-poster-"+e);i||(i=o.getAttribute("data-"+r[e]+"-src")),n||(n=o.getAttribute("data-poster-"+r[e])),t!==i&&(o.setAttribute("poster",n),o.setAttribute("src",i))}const e=new IntersectionObserver(function(e){e.forEach(e=>{const t=e.target;e.isIntersecting?t.play():(t.pause(),t.currentTime=0)})},{threshold:.5}),t=new IntersectionObserver(function(e){e.forEach(e=>{const o=e.target;e.isIntersecting&&(o.play(),t.unobserve(e.target))})},{threshold:.5});let o;all_video_bgs.forEach(function(o){var r=o.querySelector("video");if(r){get_correct_video(r);var i=r.hasAttribute("ob_poster_end"),n=r.hasAttribute("ob_focus_play"),s=r.hasAttribute("ob_lazy_autoplay");r.getAttribute("data-poster-desktop");if(i){i=r.getAttribute("ob_poster_end");var a=r.parentElement;if(!a)return void console.error("Container not found.");var c=document.createElement("img");c.setAttribute("src",i),c.setAttribute("alt","Video Poster"),c.setAttribute("class","video-poster inactive"),a.appendChild(c),r.addEventListener("ended",function(){var e=a.querySelector(".video-poster");r.style.display="none",i&&e&&e.classList.remove("inactive")}),r.addEventListener("play",function(){r.style.display="block";var e=a.querySelector(".video-poster");e&&e.classList.add("inactive")})}n&&e.observe(r),s&&t.observe(r)}}),window.addEventListener("resize",function(){clearTimeout(o),o=setTimeout(function(){all_video_bgs.forEach(function(e){var t=e.querySelector("video");t&&get_correct_video(t)})},200)})}document.querySelectorAll(".bg-video-control").forEach(function(e){var t=e.parentElement.querySelector("video");t.addEventListener("loadedmetadata",function(){(t.duration>5||t.loop)&&e.classList.remove("inactive")}),t.addEventListener("ended",function(){e.classList.add("play-icon")}),e.addEventListener("click",function(){t.paused?(t.play(),e.classList.remove("play-icon")):(t.pause(),e.classList.add("play-icon"))})});
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.