PageSourceSearch

https://www.edigest.hk/wp-content/plugins/wp-automation/assets/js/…408.61f97ca14febcc758201bc7caa529b6481.0.42

js edigest.hk collected 2026-09-24 09:26:12 UTC 1,188 bytes, 35 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function() {
2
3    // 定義滾動事件處理函數
4    const pageOnScroll = () => {
5    // 選取所有帶有 data-src 與loading="lazy"的圖片
6    const lazyImages = document.querySelectorAll('._content_ ._page_ img[data-src][loading="lazy"]');
7    // console.log('lazyImages',lazyImages);
8    lazyImages.forEach(img => {
9        if (img.dataset.src) {
10        img.src = img.dataset.src;    // 將 data-src 賦值給 src,觸發圖片加載
11        
12        console.log('Image loaded:', img);
13        }
14    });
15    // 移除滾動事件監聽,避免重複執行
16    window.removeEventListener('scroll', pageOnScroll);
17    };
18
19    // 頁面加載後綁定滾動事件
20    window.addEventListener('scroll', pageOnScroll);
21
22    function hasPageScrolled() {
23    // 兼容不同瀏覽器的寫法
24    return window.pageYOffset > 0 || document.documentElement.scrollTop > 0 || document.body.scrollTop > 0;
25    }
26
27    // 判斷並執行
28    if (hasPageScrolled()) {
29    pageOnScroll(); // 你定義的滾動處理函數,手動觸發一次
30    }
31
32    jQuery(document).on("click",".read_more",function(){
33        pageOnScroll(); 
34    }); 
35});

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.