1window.addEventListener( 'load', () => { 2 const editorPlusAnimationElements = document.querySelectorAll( 3 '[class^="edplus_anim"], [class*=" edplus_anim"]' 4 ); 5 6 editorPlusAnimationElements.forEach( ( animationElem ) => { 7 const [ animationClass = '' ] = animationElem.className.match( 8 /edplus_anim\-\S+/g 9 ); 10 11 // Removing class. 12 animationElem.style.visibility = 'hidden'; 13 animationElem.classList.remove( animationClass ); 14 15 const observer = new IntersectionObserver( 16 ( entries, observer ) => { 17 const [ entry = null ] = entries; 18 19 if ( entry && entry.intersectionRatio !== 0 ) { 20 animationElem.style.visibility = 'visible'; 21 entry.target.classList.add( animationClass ); 22 observer.disconnect(); 23 } 24 }, 25 { 26 rootMargin: '0px', 27 threshold: 0.25, 28 } 29 ); 30 31 observer.observe( animationElem ); 32 } ); 33} );
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.