1// 2023.08.08 2// // ì¤í¬ë¡¤ ì ë¤ì´ 3// let before = 0; 4// window.addEventListener("scroll", (e) => { 5// const sideAd = document.querySelector(".right-ad-event"); 6// const start = sideAd.getBoundingClientRect().top; 7// const finish = document.querySelector(".last-empty").getBoundingClientRect(); 8// let leftHeight = document.querySelector(".left-wrap").clientHeight; 9// let rightHeight = document.querySelector(".right-ad-event").clientHeight; 10// absoluteSet = leftHeight - rightHeight; 11 12// topSet = window.pageYOffset - start; // ì¤í¬ë¡¤ ìì¹ 13// bottomSet = finish.top - finish.height - window.pageYOffset; 14// windowSet = window.innerHeight + window.scrollY >= document.body.offsetHeight; 15// if (window.innerHeight + window.scrollY >= document.body.offsetHeight - 2) { 16// sideAd.classList.remove("scroll-up"); 17// sideAd.classList.remove("scroll-bottom"); 18// sideAd.classList.add("scroll-end"); 19// } else { 20// sideAd.classList.remove("scroll-end"); 21// if (before < window.scrollY) { 22// // ë´ë ¤ê°ë 23// sideAd.classList.remove("scroll-up"); 24// sideAd.classList.remove("scroll-top"); 25// sideAd.classList.remove("scroll-see-first"); 26// if (bottomSet < 0) { 27// sideAd.classList.add("scroll-bottom"); 28// sideAd.style.top = `auto`; 29// } else if (bottomSet > 0) { 30// sideAd.classList.remove("scroll-bottom"); 31// } 32// } else { 33// // ì¬ë¼ê°ë 34// sideAd.classList.remove("scroll-bottom"); 35// if (topSet <= absoluteSet) { 36// sideAd.classList.add("scroll-see-first"); 37// sideAd.classList.remove("scroll-up"); 38// sideAd.style.top = "20px"; 39// console.log("heu"); 40// } else if (window.scrollY === 0) { 41// sideAd.classList.add("scroll-top"); 42// sideAd.classList.remove("scroll-up"); 43// sideAd.classList.remove("scroll-bottom"); 44// sideAd.style.top = ""; 45// } else if (bottomSet < absoluteSet) { 46// sideAd.classList.add("scroll-up"); 47// sideAd.style.top = `${absoluteSet}px`; 48// if (sideAd.classList.contains("scroll-top")) { 49// sideAd.style.top = `${absoluteSet}px`; 50// } 51// } else { 52// sideAd.classList.add("scroll-up"); 53// sideAd.classList.remove("scroll-top"); 54// sideAd.style.top = ""; 55// } 56// } 57// before = window.scrollY; 58// } 59// }); 60 61// // ì¤í¬ë¡¤ ë
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.