var html6=`
`; $("div[id='xxxsskad']:first").before(html6); var html1=`
`; $("div[id='articlebottom']:first").before(html1); var html9=`
漁民捕到一頭六公斤重的「七彩龍蝦」,身體加觸須長達113cm,1天后竟賣出600000
家中祭祖拜佛須知!千萬別用三種水果供佛,否則氣走你的佛菩薩,一輩子命苦!
`; $("div[id='pop_page_bottom']:first").before(html9); $("div[id='articlebottom']:first").remove(); $("div[id='pop_page_bottom']:first").remove(); function openPopArt(id) { if(id<=0)return; try { $.ajax({ url: "//popup.coolsaid.com/statin.ashx", data: { 'ids':id,'type':2 }, cache: false, dataType: "script" })} catch (e) { console.log(e); }}; function useCheckInView(element,options={only:true,handle:()=>{}}){const cache=[] typeof element==='string'&&(element=document.querySelector(element));if(!element)return;findAndListenToScrollableDivs(()=>{if(isInViewport(element)&&!cache.includes(element)){if(options.only){cache.push(element)} options.handle();}})} function isInViewport(element){const rect=element.getBoundingClientRect();return(rect.top>=0&&rect.left>=0&&rect.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&rect.right<=(window.innerWidth||document.documentElement.clientWidth));} function findAndListenToScrollableDivs(handle){const scrollableElements=[document.body,window] function findScrollableElements(el){if(el.scrollHeight>el.clientHeight||el.scrollWidth>el.clientWidth){scrollableElements.push(el);} const children=el.children||[];for(let i=0;i{el.addEventListener('scroll',function(event){handle();});});} useCheckInView('.jiaocha2',{only:true,handle:()=>{$.ajax({ url: '//popup.coolsaid.com/statin.ashx', data: { 'ids':'133909','type':1,'idtype':2 }, cache: false, dataType: 'script'});}}); useCheckInView('.pop_page_text2',{only:true,handle:()=>{$.ajax({ url: '//popup.coolsaid.com/statin.ashx', data: { 'ids':'134004,134017','type':1,'idtype':3 }, cache: false, dataType: 'script'});}});