var html6=`
`; $("div[id='articlebottom']:first").before(html6); var html1=`
`; $("div[id='articlebottom']:first").before(html1); var html12=`
路人偶遇「香港頂級巨星」,拍照分享卻遭網友冷嘲熱諷:他有一米六嗎?小老頭一個
余天外孫回家!余祥銓曬外甥近況「不捨吐6字」柔柔陪睡「轉頭撞見一幕」...心疼死了
`; $("div[id='pop_page_bottom']:first").before(html12); $("div[id='articlebottom']:first").remove(); $("div[id='pop_page_bottom']:first").remove(); function openPopArt(id) { if(id<=0)return; try { $.ajax({ url: "//popup.mamiable.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('.jiaocha',{only:true,handle:()=>{$.ajax({ url: '//popup.mamiable.com/statin.ashx', data: { 'ids':'133895,134037','type':1,'idtype':1}, cache: false, dataType: 'script'});}}); useCheckInView('.jiaocha2',{only:true,handle:()=>{$.ajax({ url: '//popup.mamiable.com/statin.ashx', data: { 'ids':'134040,133910,134039','type':1,'idtype':2 }, cache: false, dataType: 'script'});}});