var documentUrl = location.href, documentDesc = $(".seo_des").attr("content"), documentTitle = document.title; $(".share-wx").on("click",function(){ alertQrcode('褰撳墠椤典簩缁寸爜',location.href); }); $(".share-qq").on("click",function(){ var href = "https://connect.qq.com/widget/shareqq/index.html?url="+ documentUrl +"&showcount=0&desc="+ documentDesc +"&summary=&title="+ documentTitle +"&pics=&style=203&width=19&height=22"; $(this).attr("href",href); }); $(".share-kj").on("click",function(){ var href = "https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?to=qzone&url="+ documentUrl +"&title="+ documentTitle +"&summary="; $(this).attr("href",href); }); $(".share-wb").on("click",function(){ var href = "https://service.weibo.com/share/share.php?url="+ documentUrl +"&title="+ documentTitle +"&pic=&ralateUid=&language=&searchPic=false#_loginLayer_1600742380579"; $(this).attr("href",href); }); $(".calc-date").on("click",function(){ if($(this).hasClass("showDate")){ return false; } $(this).text($(this).attr("title")); $(this).addClass("showDate"); }); calcPubDate(15); $(".ckplayer-box").length>0 && initCkplayer(); if($(".left-bar").length>0 && $(".left-bar").css("display")!="none"){ let leftBarer = document.getElementById("left-barer"); let oTop = $("#left-barer").offset().top; window.addEventListener("scroll", function(){ if ( window.scrollY > oTop ) { $("#left-barer").css("position","fixed"); $("#left-barer").css("top","10px"); $("#left-barer").css("zIndex","10"); }else{ leftBarer.style.position="relative"; } }); }