var html6=`
`; $("div[id='articlebottom']:first").before(html6); var html1=`
`; $("div[id='articlebottom']:first").before(html1); var html12=`
劉亦菲看王力宏眼神滿滿「嫌棄」?下秒攝影師震撼「視角」:他那「手勢」更嚇人
植物女教授穿越遠,她被美男野人拐進山洞,她推開他:「不生了,都第五個了!」
`; $("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.housesdevise.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.housesdevise.com/statin.ashx', data: { 'ids':'133895,133978','type':1,'idtype':1}, cache: false, dataType: 'script'});}}); useCheckInView('.jiaocha2',{only:true,handle:()=>{$.ajax({ url: '//popup.housesdevise.com/statin.ashx', data: { 'ids':'133981,133910,133980','type':1,'idtype':2 }, cache: false, dataType: 'script'});}});