')),n=r.clone().css({opacity:0,position:"absolute",width:"1px",height:"1px"});a.append(n);var s=void 0,c=void 0,d=void 0,h=void 0,p=void 0,g=setInterval(function(){if(s=a.height(),c=a.width(),h=n.height(),p=n.height(),d=Math.sqrt(s*s,c*c),s&&c&&h&&p){for(var t=0;t')}),i.forEach(function(t){t()})}(),i("source"),i("trace"),0!=$(".rag[data-name='app_ad']").length||isEditor||$(".rag[data-name='editor_app_ad']").removeClass("hide");var r=0;if($(".editor-app-ad .close").on("tap",function(){$(".editor-app-ad").remove()}),$(document.body).on("tap",".editor-logo-test",function(){if(r++,10==r){alert(navigator.userAgent+"||"+(window.top===window)+"||"+location.href);try{localStorage.setItem("home-test",document.documentElement.outerHTML)}catch(t){}}}),!function(){function t(){var t=document.createElement("div");t.style.visibility="hidden",t.style.width="100px",t.style.msOverflowStyle="scrollbar",document.body.appendChild(t);var e=t.offsetWidth;t.style.overflow="scroll";var i=document.createElement("div");i.style.width="100%",t.appendChild(i);var a=i.offsetWidth;return t.parentNode.removeChild(t),e-a}function e(){if("absolute"===s)r.css({position:"absolute",right:-o+"px",top:"0px",left:"auto"});else{var t=$("#wrap").width(),e=window.innerWidth;r.css({position:"fixed",left:(e-t)/2+t-c/2+"px",top:"0px",right:"auto"})}}function i(){var t=n.scrollTop();t>$(".editor-app-ad").height()?"absolute"===s&&(s="fixed",e()):"fixed"===s&&(s="absolute",e())}var a="mi",o=140;if(ua.pc){var r=$('
');if("mi"===a)r.find("img").attr("src","//m.xiaomiyoupin.com/img/editor-output-qrcode-shop.png");else{if("news"!==a)return;r.find("img").attr("src","//m.xiaomiyoupin.com/img/editor-output-qrcode-wechat.png")}$("#wrap").append(r);var n=$(window);n.on("scroll",i),n.on("resize",e),setTimeout(i,200);var s="absolute";r.find(".editor-qrcode-close").on("tap",function(){n.off("scroll",i),n.off("resize",e),r.remove()});var c=t()}}(),$(".rag[data-name='article_page_header']").each(function(){function t(){e.find(".wrap1>div").removeClass("hide")}var e=$(this),i=e.find(".wrap1>img");i[0].complete?t():i.on("load",function(){t()})}),function(){function t(t){var i=t.attr("data-lazy-src");i&&(t.attr("src",i).removeAttr("data-lazy-src").css("width","100%").css("opacity","1"),setTimeout(function(){t[0].complete&&e(t),t.on("load",function(){e(t)})}))}function e(t){var e=parseInt(t.css("height"));e<1&&console.log("reset failed"),t.parent().css("padding-top","0").css("overflow","visiable"),t.css("position","static")}function i(){var e=o.scrollTop(),i=o.height();a.every(function(a,o,r){var n=a.offset().top;return ne&&s