PageSourceSearch

https://mememedia.co.kr/wp-content/themes/fastviewPressTwo/assets/js/right-sticky.js

js mememedia.co.kr collected 2026-10-08 04:18:13 UTC 2,455 bytes, 61 lines download raw bytes

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.