1{ 2 'use strict'; 3 window.addEventListener('DOMContentLoaded',init,false); 4 5 let checkifblog = podpageparallax.check_if_blog; 6 let headerbg = ''; 7 let headertxt = ''; 8 9 10 if( checkifblog ) { 11 12 headerbg = document.querySelector('.blog .reg .content_page_thumb .background_image .parallax.parallax_on'); 13 headertxt = document.querySelector('.blog .reg .heading .title'); 14 15 } else { 16 17 headerbg = document.querySelector('.page .reg .content_page_thumb .background_image .parallax.parallax_on'); 18 headertxt = document.querySelector('.page .reg .heading .title'); 19 } 20 21 22 let setTranslate = (x,y,el) => { 23 if( el !== null ) { 24 el.style.transform="translate3d(" + x + "px," + y + "px,0)"; 25 } 26 } 27 28 let xScrollPosition; 29 let yScrollPosition; 30 31 function init(){ 32 33 xScrollPosition=window.scrollX; 34 yScrollPosition=window.scrollY; 35 36 setTranslate(0, yScrollPosition * 0, headertxt); 37 setTranslate(0, yScrollPosition * 0.2, headerbg); 38 39 requestAnimationFrame(init); 40 } 41 42}
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.