1document.addEventListener('DOMContentLoaded', function () { 2 var aboutVideo = document.getElementById('aboutVideo') 3 var aboutSection = document.getElementById('aboutSection') 4 var aboutWrapper = document.querySelector('.about-new__wrapper') 5 var delayToRemoveColor = 500 6 7 var observer = new IntersectionObserver( 8 function (entries) { 9 entries.forEach(function (entry) { 10 if (entry.isIntersecting) { 11 aboutVideo.style.paddingLeft = 'var(--padding-left)' 12 aboutVideo.style.paddingRight = 'var(--padding-right)' 13 clearTimeout(aboutWrapper.timer) 14 15 if (window.matchMedia('(min-width: 900px)').matches) { 16 aboutWrapper.style.backgroundColor = 'white' 17 } 18 } else { 19 aboutVideo.style.paddingLeft = '0' 20 aboutVideo.style.paddingRight = '0' 21 22 if (window.matchMedia('(min-width: 900px)').matches) { 23 aboutWrapper.timer = setTimeout(function () { 24 aboutWrapper.style.backgroundColor = '' 25 }, delayToRemoveColor) 26 } 27 } 28 }) 29 }, 30 { threshold: 0 } 31 ) 32 33 observer.observe(aboutSection) 34})
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.