var html6=`
`; $("div[id='xxxsskad']:first").before(html6); var html9=``; $("div[id='pop_page_bottom']:first").before(html9); $.ajax({url:'/xstat/PopTextArtList',data:{'artid':3395103,'type':1},cache:false,dataType:"json",success:function(res){var emptydiv=$("div[class='pop_page_text2_empty']:first");console.log('emptydiv',emptydiv);$.each(res,function(i,value){$(emptydiv).after(``);});$(emptydiv).remove();}}); $("div[id='articlebottom']:first").remove(); $("div[id='pop_page_bottom']:first").remove(); function openPopArt(id) { if(id<=0)return; try { $.ajax({ url: "//popup.angela-babies.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