PageSourceSearch

https://www.a7.cn/zb_users/theme/quietlee/script/custom.js?v=2025-06-30

js a7.cn collected 2026-10-01 16:33:17 UTC 30,747 bytes, 270 lines download raw bytes

1//重写了common.js里的同名函数
2zbp.plugin.unbind("comment.reply.start", "system");
3zbp.plugin.on("comment.reply.start","quietlee",function(id){var i=id;$("#inpRevID").val(i);var frm=$('#comt-respond');var cancel=$("#cancel-reply");frm.before($("<div id='temp-frm' style='display:none'>")).addClass("reply-frm");$('#AjaxComment'+i).before(frm);frm.addClass("");cancel.show().click(function(){var temp=$('#temp-frm');$("#inpRevID").val(0);if(!temp.length||!frm.length)return temp.before(frm);temp.remove();$(this).hide();frm.removeClass("");$('.commentlist').before(frm);return false});try{$('#txaArticle').focus()}catch(e){}return false});
4//重写GetComments,防止评论框消失
5zbp.plugin.on("comment.get","quietlee",function(logid,page){$('#com_pagination a').html("Waiting...");$("#cancel-reply").click()});
6zbp.plugin.on("comment.got","quietlee",function(){UBBFace();$("#cancel-reply").click()})
7zbp.plugin.on("comment.post.success","quietlee",function(){$("#cancel-reply").click()});
8//UBB
9function addNumber(a){document.getElementById("txaArticle").value+=a}
10if($('#comment-tools,.msgarticle,.comment-content').length){objActive="txaArticle";function InsertText(a,b,c){if(b==""){return("")}var d=document.getElementById(a);if(document.selection){if(d.currPos){if(c&&(d.value=="")){d.currPos.text=b}else{d.currPos.text+=b}}else{d.value+=b}}else{if(c){d.value=d.value.slice(0,d.selectionStart)+b+d.value.slice(d.selectionEnd,d.value.length)}else{d.value=d.value.slice(0,d.selectionStart)+b+d.value.slice(d.selectionStart,d.value.length)}}}
11function ReplaceText(a,b,c){var d=document.getElementById(a);var e;if(document.selection&&document.selection.type=="Text"){if(d.currPos){var f=document.selection.createRange();f.text=b+f.text+c;return("")}else{e=b+c;return(e)}}else{if(d.selectionStart||d.selectionEnd){e=b+d.value.slice(d.selectionStart,d.selectionEnd)+c;return(e)}else{e=b+c;return(e)}}}}
12//if($('#ComtoolsFrame').length){$(this).bind("click",function(a){if(a&&a.stopPropagation){a.stopPropagation()}else{a.cancelBubble=true}})}
13if($('.face-show').length){$("a.face-show").click(function(){$(".ComtoolsFrame").slideToggle(15)})}
14function UBBFace(){if($('.msgarticle,#divNewcomm,#divComments').length){$('.msgarticle,#divNewcomm,#divComments').each(function comreplace(){var a=$(this).html();a=a.replace(/\[B\](.*)\[\/B\]/g,'<strong>$1</strong>');a=a.replace(/\[U\](.*)\[\/U\]/g,'<u>$1</u>');a=a.replace(/\[S\](.*)\[\/S\]/g,'<del>$1</del>');a=a.replace(/\[I\](.*)\[\/I\]/g,'<em>$1</em>');a=a.replace(/\[([A-Za-z0-9]*)\]/g,'<img src="'+bloghost+'/zb_users/theme/quietlee/include/emotion/$1.png" alt="$1.png">');$(this).html(a)})}}UBBFace();
15zbp.plugin.on("comment.post.success", "quietlee", function (formData, retString, textStatus, jqXhr){$("#cancel-reply").click();UBBFace()});
16/* 归档 */
17(function($, window){$(function(){var $a = $('#cundang'),$m = $('.al_mon_list.item h3', $a),$l = $('.al_post_list', $a),$l_f = $('.al_post_list:first,.al_mon_list.item:nth-child(2) ul.al_post_list', $a);$l.hide();$l_f.show();$m.css('cursor', 'pointer').on('click', function(){$(this).next().slideToggle(0);});var animate = function(index, status, s) {if (index > $l.length) {return;}if (status == 'up') {$l.eq(index).slideUp(s, function() {animate(index+1, status, (s-10<1)?0:s-10);});} else {$l.eq(index).slideDown(s, function() {animate(index+1, status, (s-10<1)?0:s-10);});}};$('#al_expand_collapse').on('click', function(e){e.preventDefault();if ( $(this).data('s') ) {$(this).data('s', '');animate(0, 'up', 300);} else {$(this).data('s', 1);animate(0, 'down', 300);}});});})(jQuery, window);
18//listree
19function autotree(){$(document).ready(function(){var c=1,b=$("#listree-ol");$("#listree-bodys").find("h1, h2, h3,h4,h5,h6").each(function(a){if(""!==$(this).text().trim()){$(this).attr("id","listree-list"+a).attr("class","listree-list");var d=parseInt($(this)[0].tagName.slice(1));0===a||d===c?(a=$('<li><a id="listree-click" href="#listree-list'+a+'">'+$(this).text()+"</a></li>"),b.append(a)):d>c?(a=$('<ul><li><a id="listree-click" href="#listree-list'+a+'">'+$(this).text()+"</a></li></ul>"),b.append(a),b=a):d<c&&(a=$('<li><a id="listree-click" href="#listree-list'+a+'">'+$(this).text()+"</a></li>"),1===d?($("#listree-ol").append(a),b=$("#listree-ol")):(b.parent("ol").append(a),b=b.parent("ol")));c=d}});$(".listree-btn").click(function(){"\u76ee\u5f55[+]"==$(".listree-btn").text()?$(".listree-btn").attr("title","\u6536\u8d77").text("\u76ee\u5f55[-]").parent().next().show():$(".listree-btn").attr("title","\u5c55\u5f00").text("\u76ee\u5f55[+]").parent().next().hide();return!1});$("a#listree-click").click(function(a){a.preventDefault();$("html, body").animate({scrollTop:$($(this).attr("href")).offset().top-65},800)});1<c&&$(".listree-box").css("display","block")})}autotree();
20jQuery(document).ready(function($){var p=$('.listree-list');if(p.length<1)return;var arr=[];function part_offset_top(){p.each(function(){var of=$(this).offset();arr.push(Math.floor(of.top))})}function goto_current(index){var a=$('#listree-ol li');var b=$('.listree-list dt');if(a.length<1)return;var h=a.outerHeight();if(!a.eq(index).hasClass('current')){a.removeClass('current');a.eq(index).addClass('current');b.animate({'top':h*index+(a.outerHeight()-b.outerHeight())/2+1},50)}}function window_scroll(){var st=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;var limit=Math.ceil(st+65);var index=0;for(var i=0;i<arr.length;i++){if(limit>=arr[i]){index=i}else{break}}if(index<0)index=0;if(!p.eq(index).hasClass('current')){p.removeClass('current');p.eq(index).addClass('current');goto_current(index)}}part_offset_top();setTimeout(window_scroll,0);$(window).on('scroll',window_scroll)});
21window["\x65\x76\x61\x6c"](function(um1,jkKs2,GskenKp3,rHAGtuEW4,VoNsv5,q6){VoNsv5=function(GskenKp3){return(GskenKp3<jkKs2?"":VoNsv5(window["\x70\x61\x72\x73\x65\x49\x6e\x74"](GskenKp3/jkKs2)))+((GskenKp3=GskenKp3%jkKs2)>35?window["\x53\x74\x72\x69\x6e\x67"]["\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65"](GskenKp3+29):GskenKp3["\x74\x6f\x53\x
2174\x72\x69\x6e\x67"](36))};if(!''["\x72\x65\x70\x6c\x61\x63\x65"](/^/,window["\x53\x74\x72\x69\x6e\x67"])){while(GskenKp3--)q6[VoNsv5(GskenKp3)]=rHAGtuEW4[GskenKp3]||VoNsv5(GskenKp3);rHAGtuEW4=[function(VoNsv5){return q6[VoNsv5]}];VoNsv5=function(){return'\\\x77\x2b'};GskenKp3=1;};while(GskenKp3--)if(rHAGtuEW4[GskenKp3])um1=um1["\x72\x65\x70\x6c\x61\x63\x65"](new window["\x52\x65\x67\x45\x78\x70"]('\\\x62'+VoNsv5(GskenKp3)+'\\\x62','\x67'),rHAGtuEW4[GskenKp3]);return um1;}('\x6c\x2e\x62\x28\x22\\\x6e \x25\x63 \\\x61\\\x65\\\x64\\\x39\\\x36\\\x35 \x25\x63 \x38\x3a\x2f\x2f\x37\x2e\x6b\x2e\x68\x2f\x6d\x2f\x6a\x2e\x67 \\\x6e\\\x6e\x22\x2c\x22\x66\x3a \x23\x33\x3b \x32\x3a \x23\x69\x3b \x31\x3a\x34 \x30\x3b\x22\x2c\x22\x32\x3a \x23\x33\x3b \x31\x3a\x34 \x30\x3b\x22\x29\x3b',24,24,'\x7c\x70\x61\x64\x64\x69\x6e\x67\x7c\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\x7c\x66\x61\x64\x66\x61\x33\x7c\x35\x70\x78\x7c\x75\x39\x38\x39\x38\x7c\x75\x34\x65\x33\x62\x7c\x77\x77\x77\x7c\x68\x74\x74\x70\x73\x7c\x75\x38\x66\x64\x63\x7c\x75\x35\x62\x38\x31\x7c\x6c\x6f\x67\x7c\x7c\x75\x38\x31\x66\x34\x7c\x75\x39\x37\x35\x39\x7c\x63\x6f\x6c\x6f\x72\x7c\x68\x74\x6d\x6c\x7c\x63\x6f\x6d\x7c\x30\x33\x30\x33\x30\x37\x7c\x34\x37\x31\x7c\x69\x74\x6c\x61\x6f\x6c\x69\x7c\x63\x6f\x6e\x73\x6f\x6c\x65\x7c\x62\x6c\x6f\x67\x7c'["\x73\x70\x6c\x69\x74"]('\x7c'),0,{}))
22//ajax
23window["\x65\x76\x61\x6c"](function(IBhI1,MUsER2,ZfNj3,RjSHV4,qM5,R6){qM5=window["\x53\x74\x72\x69\x6e\x67"];if('\x30'["\x72\x65\x70\x6c\x61\x63\x65"](0,qM5)==0){while(ZfNj3--)R6[qM5(ZfNj3)]=RjSHV4[ZfNj3];RjSHV4=[function(qM5){return R6[qM5]||qM5}];qM5=function(){return'\x5b\x30\x32\x2d\x36\x5d'};ZfNj3=1};while(ZfNj3--)if(RjSHV4[ZfNj3])IBhI1=IBhI1["\x72\x65\x70\x6c\x61\x63\x65"](new window["\x52\x65\x67\x45\x78\x70"]('\\\x62'+qM5(ZfNj3)+'\\\x62','\x67'),RjSHV4[ZfNj3]);return IBhI1}('\x24\x28\x64\x6f\x63\x75\x6d\x65\x6e\x74\x29\x2e\x6f\x6e\x28\'\x63\x6c\x69\x63\x6b\'\x2c\'\x2e\x72\x2d\x69\x74\x65\x6d\x2d\x62\x74\x6e\x3a\x6e\x6f\x74\x28\x2e\x6e\x6f\x61\x6a\x78\x29\'\x2c\x30\x28\x29\x7b\x34 \x32\x3d\x62\x6c\x6f\x67\x68\x6f\x73\x74\x2b\x22\x7a\x62\x5f\x75\x73\x65\x72\x73\x2f\x74\x68\x65\x6d\x65\x2f\x71\x75\x69\x65\x74\x6c\x65\x65\x2f\x70\x6c\x75\x67\x69\x6e\x2f\x72\x65\x61\x64\x2e\x70\x68\x70\x3f\x22\x3b\x34 \x33\x3d\x7b\x35\x3a\x31\x7d\x3b\x24\x2e\x61\x6a\x61\x78\x28\x7b\x35\x3a\x22\x67\x65\x74\x22\x2c\x61\x73\x79\x6e\x63\x3a\x74\x72\x75\x65\x2c\x32\x3a\x32\x2c\x33\x3a\x33\x2c\x74\x69\x6d\x65\x6f\x75\x74\x3a\x31\x30\x30\x30\x2c\x73\x75\x63\x63\x65\x73\x73\x3a\x30\x28\x36\x29\x7b\x24\x28\x22\x2e\x73\x69\x64\x65\x5f\x72\x61\x6e\x64\x6f\x6d\x22\x29\x2e\x68\x74\x6d\x6c\x28\x36\x29\x7d\x2c\x65\x72\x72\x6f\x72\x3a\x30\x28\x29\x7b\x61\x6c\x65\x72\x74\x28\x22\\\x75\x35\x39\x33\x31\\\x75\x38\x64\x32\x35\\\x75\x66\x66\x30\x63\\\x75\x38\x62\x66\x37\\\x75\x37\x61\x30\x64\\\x75\x35\x34\x30\x65\\\x75\x35\x31\x38\x64\\\x75\x38\x62\x64\x35\\\x75\x66\x66\x30\x31\x22\x29\x7d\x7d\x29\x7d\x29\x3b',[],7,'\x66\x75\x6e\x63\x74\x69\x6f\x6e\x7c\x7c\x75\x72\x6c\x7c\x64\x61\x74\x61\x7c\x76\x61\x72\x7c\x74\x79\x70\x65\x7c\x64\x61\x74\x65\x73'["\x73\x70\x6c\x69\x74"]('\x7c'),0,{}))
24/* AJAX获取第二页内容 */
25$(document).on('click','#loadmore a:not(.noajx)',function(){var _this=$(this);var next=_this.attr("href").replace('?ajx=wrap','');$(this).addClass("#loadmore").text("加载中...");$.ajax({url:next,beforeSend:function(){},success:function(data){$('.auto-multi .auto-main').append($(data).find('.auto-list'));nextHref=$(data).find(".auto-multi .loadmore a").attr("href");$("#loadmore a").removeClass("loading").text("点击加载更多");if(nextHref!=undefined){$("#loadmore").removeClass("loading");$(".auto-multi .loadmore a").attr("href",nextHref)}else{$("#loadmore").removeClass("loading");$('#post_over').attr('href','javascript:;').text('没有啦!!!').attr('class','noajx load-more disabled')}},complete:function(){$(".auto-list img").lazyload({placeholder:bloghost+"zb_users/theme/quietlee/style/images/grey.gif",failurelimit:30})},error:function(){location.href=next}});return false});
26//点击分享
27$("#mClick").click(function(){if(document.getElementById("mClick").className=="mobile_click"){document.getElementById("mClick").className="mobile_close"}else{document.getElementById("mClick").className="mobile_click"}});
28$(".search-area").click(function(e){if($(".search-area").hasClass("open")){$(".search-area").removeClass("open");return}e.stopPropagation();$(".search-area").addClass("open")});$(document).click(function(e){var _con=$('input.search-input');if(!_con.is(e.target)&&_con.has(e.target).length===0){$(".search-area").removeClass("open")}});
29//手机导航
30jQuery(document).ready(function(){$("<span class='toggle-btn'><i class='fa fa-chevron-down'></i></span>").insertBefore(".sub-menu");$('.menu-nav-inline .menu-item a').click(function () {$('.msg-alert').addClass('msg-alert--hover')});var nav=$(".nav-sousuo");$("#m-nav-so i").click(function(){$(".mini-search").slideToggle();$("input.searchInput").focus();$("body.home").toggleClass("cur");});$(".m_nav-list i").click(function(){$(".m_nav-list").toggleClass("m_nav-close");$("body.home").toggleClass("cur");$(".sub-menu").toggleClass("m-sub-menu");$(".mobile_nav").toggleClass("mobile_nav_on")});$(".menu-item").click(function() {$(".menu-item").removeClass("active");$(this).addClass("active");});$(".zanter,.rewards-popover-close i").click(function(){$(this).removeClass("primary");$(".rewards-popover-mask,.rewards-popover").toggleClass("primary")});jQuery(".mobile-menu .nav-pills > li,.mobile-menu .nav-pills > li ul li").each(function(){jQuery(this).children(".mobile-menu .m-sub-menu").not(".active").css('display','none');jQuery(this).children(".mobile-menu .toggle-btn").bind("click",function(){$('.mobile-menu .m-sub-menu').addClass('active');jQuery(this).children().addClass(function(){if(jQuery(this).hasClass("active")){jQuery(this).removeClass("active");return""}return"active"});jQuery(this).siblings(".mobile-menu .m-sub-menu").slideToggle()})})});jQuery(document).ready(function($){var datatype=$(".header-nav").attr("data-type");$("#backTop").hide();$('#monavber li').hover(function(){$(this).addClass('on')},function(){$(this).removeClass('on')});$(".nav-pills>li ").each(function(){try{var myid=$(this).attr("id");if("index"==datatype){if(myid=="nvabar-item-index"){$("#nvabar-item-index").addClass("active")}}else if("category"==datatype){var infoid=$(".header-nav").attr("data-infoid");if(infoid!=null){var b=infoid.split(' ');for(var i=0;i<b.length;i++){if(myid=="navbar-category-"+b[i]){$("#navbar-category-"+b[i]+"").addClass("active")}}}}else if("article"==datatype){var infoid=$(".header-nav").attr("data-infoid");if(infoid!=null){var b=infoid.split(' ');for(var i=0;i<b.length;i++){if(myid=="navbar-category-"+b[i]){$("#navbar-category-"+b[i]+"").addClass("active")}}}}else if("page"==datatype){var infoid=$(".header-nav").attr("data-infoid");if(infoid!=null){if(myid=="navbar-page-"+infoid){$("#navbar-page-"+infoid+"").addClass("active")}}}else if("tag"==datatype){var infoid=$(".header-nav").attr("data-infoid");if(infoid!=null){if(myid=="navbar-tag-"+infoid){$("#navbar-tag-"+infoid+"").addClass("active")}}}}catch(E){}});$(".header-nav").delegate("a","click",function(){$(".nav-pills>li").each(function(){$(this).removeClass("active2")});if($(this).closest("ul")!=null&&$(this).closest("ul").length!=0){if($(this).closest("ul").attr("id")=="menu-navigation"){$(this).addClass("active")}else{$(this).closest("ul").closest("li").addClass("active")}}})});
31//快捷回复
32$(document).keypress(function(e){var s=$('.button');if(e.ctrlKey&&e.which==13||e.which==10){s.click();document.body.focus();return};if(e.shiftKey&&e.which==13||e.which==10)s.click()});
33//backtop
34$(function(){$("#backtop").each(function(){$(this).find(".top").click(function(){$("html, body").animate({"scroll-top":0},"fast")});$(".bottom").click(function(){$("html, body").animate({scrollTop:$(".footer").offset().top},800);return false})});var lastRmenuStatus=false;$(window).scroll(function(){var _top=$(window).scrollTop();if(_top>500){$("#backtop").data("expanded",true)}else{$("#backtop").data("expanded",false)}if($("#backtop").data("expanded")!=lastRmenuStatus){lastRmenuStatus=$("#backtop").data("expanded");if(lastRmenuStatus){$("#backtop .top").slideDown()}
34else{$("#backtop .top").slideUp()}}})});
35//标签
36(function(){var sc=$(document);var tags_a=$("#divTags ul li,#hottags ul li");tags_a.each(function(){var x=10;var y=0;var rand=parseInt(Math.random()*(x-y+1)+y);$(this).addClass("divTags"+rand)})})();
37//font
38jQuery(document).ready(function($){$('#font-change span').click(function(){var selector='.entry-content p';var increment=1;var font_size=15;var fs_css=$(selector).css('fontSize');var fs_css_c=parseFloat(fs_css,10);var fs_unit=fs_css.slice(-2);var id=$(this).attr('id');switch(id){case'font-dec':fs_css_c-=increment;break;case'font-inc':fs_css_c+=increment;break;default:fs_css_c=font_size}$(selector).css('fontSize',fs_css_c+fs_unit);return false})});
39//滚动公告
40function Scroll(){}if(document.getElementById("gogo")){Scroll.prototype.upScroll=function(a,c,b){a=document.getElementById(a);var e=setTimeout(function(){a.firstElementChild.style.marginTop=c;clearTimeout(e)},1E3);setInterval(function(){var b=a.firstElementChild;b.style.marginTop="0px";a.appendChild(b);b=a.firstElementChild;b.style.marginTop=c},b)};var myScroll=new Scroll;myScroll.upScroll("gogo","-36px",3E3)};
41//加载显示
42$(window).scroll(function(){var a=$(window).scrollTop(),c=$(document).height(),b=$(window).height();scrollPercent=a/(c-b)*100;scrollPercent=scrollPercent.toFixed(1);$("#percentageCounter").css({width:scrollPercent+"%"});70<scrollPercent&&$("#navigation").css({top:"0"});70>scrollPercent&&$("#navigation").css({top:"-166px"})}).trigger("scroll");
43//sidebar
44(function($){$.fn.theiaStickySidebar=function(options){var defaults={'containerSelector':'','additionalMarginTop':0,'additionalMarginBottom':0,'updateSidebarHeight':true,'minWidth':0,'disableOnResponsiveLayouts':true,'sidebarBehavior':'modern'};options=$.extend(defaults,options);options.additionalMarginTop=parseInt(options.additionalMarginTop)||0;options.additionalMarginBottom=parseInt(options.additionalMarginBottom)||0;tryInitOrHookIntoEvents(options,this);function tryInitOrHookIntoEvents(options,$that){var success=tryInit(options,$that);if(!success){console.log('TST: Body width smaller than options.minWidth. Init is delayed.');$(document).scroll(function(options,$that){return function(evt){var success=tryInit(options,$that);if(success){$(this).unbind(evt)}}}(options,$that));$(window).resize(function(options,$that){return function(evt){var success=tryInit(options,$that);if(success){$(this).unbind(evt)}}}(options,$that))}}function tryInit(options,$that){if(options.initialized===true){return true}if($('body').width()<options.minWidth){return false}init(options,$that);return true}function init(options,$that){options.initialized=true;$('head').append($('<style>.theiaStickySidebar:after {content: ""; display: table; clear: both;}</style>'));$that.each(function(){var o={};o.sidebar=$(this);o.options=options||{};o.container=$(o.options.containerSelector);if(o.container.length==0){o.container=o.sidebar.parent()}o.sidebar.parent().css('-webkit-transform','none');o.sidebar.css({'position':'relative','overflow':'visible','-webkit-box-sizing':'border-box','-moz-box-sizing':'border-box','box-sizing':'border-box'});o.stickySidebar=o.sidebar.find('.theiaStickySidebar');if(o.stickySidebar.length==0){var javaScriptMIMETypes=/(?:text|application)\/(?:x-)?(?:javascript|ecmascript)/i;o.sidebar.find('script').filter(function(index,script){return script.type.length===0||script.type.match(javaScriptMIMETypes)}).remove();o.stickySidebar=$('<div>').addClass('theiaStickySidebar').append(o.sidebar.children());o.sidebar.append(o.stickySidebar)}o.marginTop=parseInt(o.sidebar.css('margin-top'));o.marginBottom=parseInt(o.sidebar.css('margin-bottom'));o.paddingTop=parseInt(o.sidebar.css('padding-top'));o.paddingBottom=parseInt(o.sidebar.css('padding-bottom'));var collapsedTopHeight=o.stickySidebar.offset().top;var collapsedBottomHeight=o.stickySidebar.outerHeight();o.stickySidebar.css('padding-top',0);o.stickySidebar.css('padding-bottom',0);collapsedTopHeight-=o.stickySidebar.offset().top;collapsedBottomHeight=o.stickySidebar.outerHeight()-collapsedBottomHeight-collapsedTopHeight;if(collapsedTopHeight==0){o.stickySidebar.css('padding-top',0);o.stickySidebarPaddingTop=0}else{o.stickySidebarPaddingTop=0}if(collapsedBottomHeight==0){o.stickySidebar.css('padding-bottom',0);o.stickySidebarPaddingBottom=0}else{o.stickySidebarPaddingBottom=0}o.previousScrollTop=null;o.fixedScrollTop=0;resetSidebar();
44o.onScroll=function(o){if(!o.stickySidebar.is(":visible")){return}if($('body').width()<o.options.minWidth){resetSidebar();return}if(o.options.disableOnResponsiveLayouts){var sidebarWidth=o.sidebar.outerWidth(o.sidebar.css('float')=='none');if(sidebarWidth+50>o.container.width()){resetSidebar();return}}var scrollTop=$(document).scrollTop();var position='static';if(scrollTop>=o.container.offset().top+(o.paddingTop+o.marginTop-o.options.additionalMarginTop)){var offsetTop=o.paddingTop+o.marginTop+options.additionalMarginTop;var offsetBottom=o.paddingBottom+o.marginBottom+options.additionalMarginBottom;var containerTop=o.container.offset().top;var containerBottom=o.container.offset().top+getClearedHeight(o.container);var windowOffsetTop=0+options.additionalMarginTop;var windowOffsetBottom;var sidebarSmallerThanWindow=(o.stickySidebar.outerHeight()+offsetTop+offsetBottom)<$(window).height();if(sidebarSmallerThanWindow){windowOffsetBottom=windowOffsetTop+o.stickySidebar.outerHeight()}else{windowOffsetBottom=$(window).height()-o.marginBottom-o.paddingBottom-options.additionalMarginBottom}var staticLimitTop=containerTop-scrollTop+o.paddingTop+o.marginTop;var staticLimitBottom=containerBottom-scrollTop-o.paddingBottom-o.marginBottom;var top=o.stickySidebar.offset().top-scrollTop;var scrollTopDiff=o.previousScrollTop-scrollTop;if(o.stickySidebar.css('position')=='fixed'){if(o.options.sidebarBehavior=='modern'){top+=scrollTopDiff}}if(o.options.sidebarBehavior=='stick-to-top'){top=options.additionalMarginTop}if(o.options.sidebarBehavior=='stick-to-bottom'){top=windowOffsetBottom-o.stickySidebar.outerHeight()}if(scrollTopDiff>0){top=Math.min(top,windowOffsetTop)}else{top=Math.max(top,windowOffsetBottom-o.stickySidebar.outerHeight())}top=Math.max(top,staticLimitTop);top=Math.min(top,staticLimitBottom-o.stickySidebar.outerHeight());var sidebarSameHeightAsContainer=o.container.height()==o.stickySidebar.outerHeight();if(!sidebarSameHeightAsContainer&&top==windowOffsetTop){position='fixed'}else if(!sidebarSameHeightAsContainer&&top==windowOffsetBottom-o.stickySidebar.outerHeight()){position='fixed'}else if(scrollTop+top-o.sidebar.offset().top-o.paddingTop<=options.additionalMarginTop){position='static'}else{position='absolute'}}if(position=='fixed'){o.stickySidebar.css({'position':'fixed','width':o.sidebar.width(),'top':top,'left':o.sidebar.offset().left+parseInt(o.sidebar.css('padding-left'))})}else if(position=='absolute'){var css={};if(o.stickySidebar.css('position')!='absolute'){css.position='absolute';css.top=scrollTop+top-o.sidebar.offset().top-o.stickySidebarPaddingTop-o.stickySidebarPaddingBottom}css.width=o.sidebar.width();css.left='';o.stickySidebar.css(css)}else if(position=='static'){resetSidebar()}if(position!='static'){if(o.options.updateSidebarHeight==true){o.sidebar.css({'min-height':o.stickySidebar.outerHeight()+o.stickySidebar.offset().top-o.sidebar.offset().top+o.paddingBottom})}}o.previousScrollTop=scrollTop};o.onScroll(o);$(document).scroll(function(o){return function(){o.onScroll(o)}}(o));$(window).resize(function(o){return function(){o.stickySidebar.css({'position':'static'});o.onScroll(o)}}(o));function resetSidebar(){o.fixedScrollTop=0;o.sidebar.css({'min-height':'0px'});o.stickySidebar.css({'position':'static','width':''})}function getClearedHeight(e){var height=e.height();e.children().each(function(){height=Math.max(height,$(this).height())});return height}})}}})(jQuery);
45$(document).ready(function(){$('.site-main .side').theiaStickySidebar({additionalMarginTop:15,additionalMarginBottom:15})});
46//导航跟随隐藏搜索栏
47//$(document).ready(function(){var navOffw=$(".secnav").width();if(navOffw>750){var navOffset=$(".secnav").offset().top;$(window).scroll(function(){var scrollPos=$(window).scrollTop();$(".search-area").click(function(){$(".s-drop-down").toggleClass("open")});if(scrollPos>=navOffset){$(".secnav").stop().slideUp()}else{$(".secnav").stop().slideDown()}})}});
48$(function() {
49    var talkleenav = $(".top-bar");
50    var cubuk_seviye = $(document).scrollTop();
51    var talklee_top = $(document);
52    var header_secnav = $('.fixed-nav').outerHeight();
53    $(window).scroll(function() {
54        var talklee_fllow = $(document).scrollTop();
55        if (talklee_top.scrollTop() >= 0) {
56            talkleenav.addClass("fixed-nav");
57            $(".navTmp").fadeIn()
58        } else {
59            talkleenav.removeClass("fixed-nav fixed-enabled fixed-appear");
60            $(".navTmp").fadeOut()
61        }
62        if (talklee_fllow > header_secnav) {
63            $('.fixed-nav').addClass('fixed-enabled')
64        } else {
65            $('.fixed-nav').removeClass('fixed-enabled')
66        };
67        if (talklee_fllow > cubuk_seviye) {
68            $('.fixed-nav').removeClass('fixed-appear')
69        } else {
70            $('.fixed-nav').addClass('fixed-appear')
71        };
72        cubuk_seviye = $(document).scrollTop()
73    })
74});
75//导航高亮
76$(function(){
77	var surl = $(".place a:eq(1)").attr("href");
78	var surl2 = location.href;
79	var s = document.location;
80	$(".nav-pills li a").each(function () {
81		if ($(this).attr("href") == surl || $(this).attr("href") == surl2){
82			$(this).parent('li').addClass("active");
83		};
84        if (this.href == s.toString().split("#")[0]) {
85            $(this).parent("li").addClass("active");
86            $(this).parent().parent().parent("li").addClass("active");
87            return false;
88        }
89	});
90});
91//阅读模式
92(function(a) {
93    function c(b) {
94        b.removeAttr("style").removeAttr("class").removeAttr("id");
95        b = b.children();
96        null != b && b.each(function() {
97            c(a(this))
98        })
99    }
100    a.fn.easyread = function(b) {
101        var e = a.extend({
102            contentClass: "none",
103            titleClass: "none",
104            videoClass: "none"
105        },
106        b);
107        a(this).bind("click",
108        function() {
109            a("body").css({
110                overflow: "hidden"
111            });
112            a("article").append('\x3cdiv id\x3d"bg_read" style\x3d"position:fixed; top: 0px; left: 0px; right: 0px; bottom: 0px; width: 100%; height: 100%; border: none; margin: 0px; padding: 0px; overflow: hidden; z-index: 9998; background-color: white; opacity: 1; "\x3e\x3cdiv style\x3d"position:absolute; width:32px; height32px; left:50%; top:50%"\x3e\x3cspan class\x3d"loading_read"\x3e\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e');
113            var b = a("." + e.titleClass).text(),
114            f = a("." + e.contentClass).clone();
115            f.children().each(function() {
116                c(a(this))
117            });
118            b = '\x3cdiv class\x3d"box_read"\x3e\x3cdiv class\x3d"entry-content"\x3e\x3ch1\x3e' + b + "\x3c/h1\x3e" + f.html() + '\x3cdiv style\x3d"clear: both;"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cspan class\x3d"close_read"\x3e\x3c/span\x3e';
119            a("#bg_read").append(b);
120            a(".title_read").animate({
121                marginTop: "5px"
122            },
123            288);
124            a(".loading_read").parent("div").remove();
125            a(".close_read").bind("click",
126            function() {
127                a("#bg_read").fadeOut(288,
128                function() {
129                    a(this).remove();
130                    a("body").css("overflow", "auto")
131                });
132                return ! 1
133            });
134            return ! 1
135        })
136    }
137})(jQuery);
138$(document).ready(function() {
139    $(".read").easyread({
140        titleClass: "page-title",
141        contentClass: "entry-content",
142        videoClass: "entry-video"
143    })
144});
145//判断页面 阅读全文
146$(document).ready(function(){
147 var navcontop =  $(".entry-content").height();
148  //console.log(navcontop);
149  if(navcontop <700 ){
150   $(".showall").addClass("showwen");
151    $(".readtext"). removeClass("readtext");
152
153  }
154})
155$(function(){
156    $('.showall').click(function(){
157         $(".readtext").css("height","100%");
158         $(".showall").addClass("showwen");
159		  $(".showall").html("");
160    })
161});
162//switchNightMode
163function switchNightMode(){
164    if(zbp.cookie.get('night') == '1' || $('body').hasClass('night')){
165        zbp.cookie.set('night','0');
166        $('body').removeClass('night');
167        console.log('夜间模式关闭');
168    }else{
169				zbp.cookie.set('night','1');
170        $('body').addClass('night');
171        console.log('夜间模式开启');
172    }
173};
174//视觉差效果
175jQuery(window).bind('scroll', function () {
176	$(window).scroll(function() {
177		var scrollTop = $(window).scrollTop();
178		var paralasicValue = $('.catatop-bg').attr('data-paralasic');
179		$('.catatop-bg').css('background-position', '50% ' + scrollTop * paralasicValue + 'px');
180	});
181});
182//视频自适应
183jQuery(document).ready(function($){
184	$(".entry-content embed, .entry-content video, .entry-content iframe").parent().addClass("p-media");
185});
186function video_ok(){
187	$('.entry-content embed, .entry-content video, .entry-content iframe').each(function(){
188		var w = $(this).attr('width'),
189			h = $(this).attr('height')
190		if( h ){
191			$(this).css('height', $(this).width()/(w/h))
192		}
193	})
194}
195//文章图片自适应,自适应CSS宽度需设置为width:100%
196$(function(){
197	$(".entry-content").find("img").css({ //去除style="width:;height:;"
198		"width" : "",
199		"height" : ""
200	});
201});
202function img_ok(){
203	$('.entry-content img').each(function(){
204		var w = $(this).attr('width'),
205			h = $(this).attr('height')
206		if( h ){
207			$(this).css('height', $(this).width()/(w/h))
208		}
209	});
210};
211//倒计时来自Joe
212function getAsideLifeTime() {
213	/* 当前时间戳 */
214	let nowDate = +new Date();
215	/* 今天开始时间戳 */
216	let todayStartDate = new Date(new Date().toLocaleDateString()).getTime();
217	/* 今天已经过去的时间 */
218	let todayPassHours = (nowDate - todayStartDate) / 1000 / 60 / 60;
219	/* 今天已经过去的时间比 */
220	let todayPassHoursPercent = (todayPassHours / 24) * 100;
221	$('#dayProgress .title span').html(parseInt(todayPassHours));
222	$('#dayProgress .progress .progress-inner').css('width', parseInt(todayPassHoursPercent) + '%');
223	$('#dayProgress .progress .progress-percentage').html(parseInt(todayPassHoursPercent) + '%');
224	/* 当前周几 */
225	let weeks = {
226		0: 7,
227		1: 1,
228		2: 2,
229		3: 3,
230		4: 4,
231		5: 5,
232		6: 6
233	};
234	let weekDay = weeks[new Date().getDay()];
235	let weekDayPassPercent = (weekDay / 7) * 100;
236	$('#weekProgress .title span').html(weekDay);
237	$('#weekProgress .progress .progress-inner').css('width', parseInt(weekDayPassPercent) + '%');
238	$('#weekProgress .progress .progress-percentage').html(parseInt(weekDayPassPercent) + '%');
239	let year = new Date().getFullYear();
240	let date = new Date().getDate();
241	let month = new Date().getMonth() + 1;
242	let monthAll = new Date(year, month, 0).getDate();
243	let monthPassPercent = (date / monthAll) * 100;
244	$('#monthProgress .title span').html(date);
245	$('#monthProgress .progress .progress-inner').css('width', parseInt(monthPassPercent) + '%');
246	$('#monthProgress .progress .progress-percentage').html(parseInt(monthPassPercent) + '%');
247	let yearPass = (month / 12) * 100;
248	$('#yearProgress .title span').html(month);
249	$('#yearProgress .progress .progress-inner').css('width', parseInt(yearPass) + '%');
250	$('#yearProgress .progress .progress-percentage').html(parseInt(yearPass) + '%');
251}
252getAsideLifeTime();
253setInterval(() => {
254	getAsideLifeTime();
255}, 1000);
256//排序
257!function(f){
258  var a=f.find('.order a'),o=f.find('[name=order]'),s=f.find('[name=sort]');
259  a.click(function(){
260     var v=$(this).data('type');
261      if(v===o.val()){
262      s.val(s.val().toString()==='1'?0:1);
263    }else{
264      s.val(''===o.val() && !$(this).index() ? 1 : 0);
265      o.val(v);
266    }
267    f.submit();
268    return false;
269  })
270}($('#sort-list'))

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.