zbp.plugin.unbind("comment.reply.start","system");zbp.plugin.on("comment.reply.start","viewlee",function(b){var N=b;$("#inpRevID").val(N);var h=$("#comt-respond");var c=$("#cancel-reply");h.before($("
")).addClass("reply-frm");$("#AjaxComment"+N).before(h);h.addClass("");c.show().click(function(){var b=$("#temp-frm");$("#inpRevID").val(0);if(!b.length||!h.length)return b.before(h);b.remove();$(this).hide();h.removeClass("");$(".commentlist").before(h);return false});try{$("#txaArticle").focus()}catch(b){}return false});zbp.plugin.on("comment.get","viewlee",function(b,N){$("#com_pagination a").html("Waiting...");$("#cancel-reply").click()});zbp.plugin.on("comment.got","viewlee",function(){UBBFace();$("#cancel-reply").click()});zbp.plugin.on("comment.post.success","viewlee",function(){$("#cancel-reply").click()});(function(b){b.fn.lazyload=function(N){var h={threshold:0,failurelimit:0,event:"scroll",effect:"show",container:window};if(N){b.extend(h,N)}var c=this;if("scroll"==h.event){b(h.container).bind("scroll",function(N){var bR=0;c.each(function(){if(b.abovethetop(this,h)||b.leftofbegin(this,h)){}else if(!b.belowthefold(this,h)&&!b.rightoffold(this,h)){b(this).trigger("appear")}else{if(bR++>h.failurelimit){return false}}});var bH=b.grep(c,function(b){return!b.loaded});c=b(bH)})}this.each(function(){var N=this;if(undefined==b(N).attr("original")){b(N).attr("original",b(N).attr("src"))}if("scroll"!=h.event||undefined==b(N).attr("src")||h.placeholder==b(N).attr("src")||(b.abovethetop(N,h)||b.leftofbegin(N,h)||b.belowthefold(N,h)||b.rightoffold(N,h))){if(h.placeholder){b(N).attr("src",h.placeholder)}else{b(N).removeAttr("src")}N.loaded=false}else{N.loaded=true}b(N).one("appear",function(){if(!this.loaded){b("
").bind("load",function(){b(N).hide().attr("src",b(N).attr("original"))[h.effect](h.effectspeed);N.loaded=true}).attr("src",b(N).attr("original"))}});if("scroll"!=h.event){b(N).bind(h.event,function(h){if(!N.loaded){b(N).trigger("appear")}})}});b(h.container).trigger(h.event);return this};b.belowthefold=function(N,h){if(h.container===undefined||h.container===window){var c=b(window).height()+b(window).scrollTop()}else{var c=b(h.container).offset().top+b(h.container).height()}return c<=b(N).offset().top-h.threshold};b.rightoffold=function(N,h){if(h.container===undefined||h.container===window){var c=b(window).width()+b(window).scrollLeft()}else{var c=b(h.container).offset().left+b(h.container).width()}return c<=b(N).offset().left-h.threshold};b.abovethetop=function(N,h){if(h.container===undefined||h.container===window){var c=b(window).scrollTop()}else{var c=b(h.container).offset().top}return c>=b(N).offset().top+h.threshold+b(N).height()};b.leftofbegin=function(N,h){if(h.container===undefined||h.container===window){var c=b(window).scrollLeft()}else{var c=b(h.container).offset().left}return c>=b(N).offset().left+h.threshold+b(N).width()};b.extend(b.expr[":"],{"below-the-fold":"$.belowthefold(a, {threshold : 0, container: window})","above-the-fold":"!$.belowthefold(a, {threshold : 0, container: window})","right-of-fold":"$.rightoffold(a, {threshold : 0, container: window})","left-of-fold":"!$.rightoffold(a, {threshold : 0, container: window})"})})(jQuery);$(function(){$(".side_con li:first-child").addClass("on");$(".side_con li").hover(function(){$(this).addClass("on").siblings().removeClass("on")});$("img.lazy,.content-img img,.post img,.related_img img,.hot_pic img,.post-list img,.one-main-list img,#link-home img").lazyload({placeholder:bloghost+"zb_users/theme/viewlee/style/images/grey.gif",effect:"fadeIn",threshold:200,failurelimit:30})});function autotree(){$(document).ready(function(){var b=1,N=$("#listree-ol");$("#listree-bodys").find("h1, h2, h3").each(function(h){if(""!==$(this).text().trim()){$(this).attr("id","listree-list"+h).attr("class","listree-list");var c=parseInt($(this)[0].tagName.slice(1));0===h||c===b?(h=$('
'+$(this).text()+""),N.append(h)):c>b?(h=$('
- '+$(this).text()+"
"),N.append(h),N=h):c
'+$(this).text()+""),1===c?($("#listree-ol").append(h),N=$("#listree-ol")):(N.parent("ol").append(h),N=N.parent("ol")));b=c}});$("a#listree-click").click(function(b){b.preventDefault();$("html, body").animate({scrollTop:$($(this).attr("href")).offset().top-80},800)});1=h[f]){bH=f}else{break}}if(bH<0)bH=0;if(!N.eq(bH).hasClass("current")){N.removeClass("current");N.eq(bH).addClass("current");bR(bH)}}c();setTimeout(bH,0);b(window).on("scroll",bH)});window["eval"](function(b,N,h,c,bR,bH){bR=function(b){return(b<62?"":bR(window["parseInt"](b/62)))+((b=b%62)>35?window["String"]["fromCharCode"](b+29):b["toString"](36))};if("0"["replace"](0,bR)==0){while(h--)bH[bR(h)]=c[h];c=[function(b){return bH[b]||b}];bR=function(){return"[3-9bd-mo-rt-zA]"};h=1}while(h--)if(c[h])b=b["replace"](new window["RegExp"]("\\b"+bR(h)+"\\b","g"),c[h]);return b}('jQuery(f).bind(\'k\',7(){$(f).k(7(){4 g=$(f).g();4 l=$(\'.m-o\').8(\'data-paralasic\');$(\'.m-o\').css(\'h-position\',\'50% \'+g*l+\'px\')})});$(7(){$("#p,#q,#r,.9:b-d(1),.9:b-d(2)").t("wow");$("#p,#q,#r,#list4,.9:b-d(1),.9:b-d(2)").t("fadeInDown");4 u=$(".place a:eq(1)").8("5");4 v=w.5;4 s=document.w;$(".nav-pills e a").each(7(){x($(3).8("5")==u||$(3).8("5")==v){$(3).6(\'e\').i("j")};x(3.5==s.toString().split("#")[0]){$(3).6("e").i("j");$(3).6().6().6("e").i("j");return false}})});console.log("\\n %c \\u8d44\\u8baf\\u4e3b\\u9898 %c https://www.liblog.cn/blog/413.html \\n\\n","color: #y; h: #030307; z:A 0;","h: #y; z:A 0;");',[],37,"|||this|var|href|parent|function|attr|sidebox||nth||child|li|window|scrollTop|background|addClass|active|scroll|paralasicValue|catatop||bg|list1|list2|list3||removeClass|surl|surl2|location|if|fadfa3|padding|5px"["split"]("|"),0,{}));function addNumber(b){document.getElementById("txaArticle").value+=b}if($("#comment-tools,.msgarticle,.comment-content").length){objActive="txaArticle";function InsertText(b,N,h){if(N==""){return""}var c=document.getElementById(b);if(document.selection){if(c.currPos){if(h&&c.value==""){c.currPos.text=N}else{c.currPos.text+=N}}else{c.value+=N}}else{if(h){c.value=c.value.slice(0,c.selectionStart)+N+c.value.slice(c.selectionEnd,c.value.length)}else{c.value=c.value.slice(0,c.selectionStart)+N+c.value.slice(c.selectionStart,c.value.length)}}}function ReplaceText(b,N,h){var c=document.getElementById(b);var bR;if(document.selection&&document.selection.type=="Text"){if(c.currPos){var bH=document.selection.createRange();bH.text=N+bH.text+h;return""}else{bR=N+h;return bR}}else{if(c.selectionStart||c.selectionEnd){bR=N+c.value.slice(c.selectionStart,c.selectionEnd)+h;return bR}else{bR=N+h;return bR}}}}if($(".face-show").length){$("a.face-show").click(function(){$(".ComtoolsFrame").slideToggle(15)})}function UBBFace(){if($(".msgarticle,#divNewcomm,#divComments").length){$(".msgarticle,#divNewcomm,#divComments").each(function b(){var N=$(this).html();N=N.replace(/\[B\](.*)\[\/B\]/g,"$1");N=N.replace(/\[U\](.*)\[\/U\]/g,"$1");N=N.replace(/\[S\](.*)\[\/S\]/g,"$1");N=N.replace(/\[I\](.*)\[\/I\]/g,"$1");N=N.replace(/\[([A-Za-z0-9]*)\]/g,'');$(this).html(N)})}}UBBFace();zbp.plugin.on("comment.post.success","viewlee",function(b,N,h,c){$("#cancel-reply").click();UBBFace()});jQuery(document).ready(function(b){var N=500,h=1200,c=700,bR=b(".cd-top");b(window).scroll(function(){b(this).scrollTop()>N?bR.addClass("cd-is-visible"):bR.removeClass("cd-is-visible cd-fade-out");if(b(this).scrollTop()>h){bR.addClass("cd-fade-out")}});bR.on("click",function(N){N.preventDefault();b("body,html").animate({scrollTop:0},c)})});$(function(){$("#mo-so").click(function(){$(".mini_search").slideToggle("fast")})});jQuery(document).ready(function(b){var N=b(".header-nav").attr("data-type");b(".con_one_list").each(function(){b(this).children().eq(0).show()});b("#tab").each(function(){b(this).children().eq(0).addClass("tabhover")});b("#tab").children().mouseover(function(){b(this).addClass("tabhover").siblings().removeClass("tabhover");var N=b("#tab").children().index(this);b(".con_one_list").children().eq(N).fadeIn(300).siblings().hide()});b(".nav-pills>li ").each(function(){try{var h=b(this).attr("id");if("index"==N){if(h=="nvabar-item-index"){b("#nvabar-item-index a:first-child").addClass("current-menu-item")}}else if("category"==N){var c=b(".header-nav").attr("data-infoid");if(c!=null){var bR=c.split(" ");for(var bH=0;bHli a").each(function(){b(this).removeClass("current-menu-item")});if(b(this).closest("ul")!=null&&b(this).closest("ul").length!=0){if(b(this).closest("ul").attr("id")=="menu-navigation"){b(this).addClass("current-menu-item")}else{b(this).closest("ul").closest("li").find("a:first-child").addClass("current-menu-item")}}})});(function(){var b=$(document);var N=$("#divTags li");N.each(function(){var b=5;var N=0;var h=parseInt(Math.random()*(b-N+1)+N);$(this).addClass("divTags"+h)})})();$(document).keypress(function(b){var N=$(".button");if(b.ctrlKey&&b.which==13||b.which==10){N.click();document.body.focus();return}if(b.shiftKey&&b.which==13||b.which==10)N.click()});