1$ = jQuery.noConflict(); 2 3jQuery(document).ready(function($) { 4 5 6 7 8}); 9 10let video = document.getElementById('process-video'); 11 12let srcDesktop = video.dataset.srcDesktop; 13let srcMobile = video.dataset.srcMobile; 14let currentSrc = null; 15 16function updateVideoSource() { 17 let isMobile = window.matchMedia('(max-width: 767px)').matches; 18 let newSrc = isMobile ? srcMobile : srcDesktop; 19 if (newSrc === currentSrc) return; 20 currentSrc = newSrc; 21 video.querySelector('source').src = newSrc; 22 video.load(); 23 video.play().catch(function () {}); 24} 25 26updateVideoSource(); 27window.addEventListener('resize', updateVideoSource); 28window.addEventListener('load', updateVideoSource);
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.