").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",a.proxy(function(b){var d=a(b.target).parent().is(this._controls.$absolute)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(d,c.dotsSpeed)},this));for(b in this._overrides)this._core[b]=a.proxy(this[b],this)},e.prototype.destroy=function(){var a,b,c,d,e;e=this._core.settings;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)"$relative"===b&&e.navContainer?this._controls[b].html(""):this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},e.prototype.update=function(){var a,b,c,d=this._core.clones().length/2,e=d+this._core.items().length,f=this._core.maximum(!0),g=this._core.settings,h=g.center||g.autoWidth||g.dotsData?1:g.dotsEach||g.items;if("page"!==g.slideBy&&(g.slideBy=Math.min(g.slideBy,g.items)),g.dots||"page"==g.slideBy)for(this._pages=[],a=d,b=0,c=0;a
=h||0===b){if(this._pages.push({start:Math.min(f,a-d),end:a-d+h-1}),Math.min(f,a-d)===f)break;b=0,++c}b+=this._core.mergers(this._core.relative(a))}},e.prototype.draw=function(){var b,c=this._core.settings,d=this._core.items().length<=c.items,e=this._core.relative(this._core.current()),f=c.loop||c.rewind;this._controls.$relative.toggleClass("disabled",!c.nav||d),c.nav&&(this._controls.$previous.toggleClass("disabled",!f&&e<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!f&&e>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!c.dots||d),c.dots&&(b=this._pages.length-this._controls.$absolute.children().length,c.dotsData&&0!==b?this._controls.$absolute.html(this._templates.join("")):b>0?this._controls.$absolute.append(new Array(b+1).join(this._templates[0])):b<0&&this._controls.$absolute.children().slice(b).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(a.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotsData?1:c.dotsEach||c.items)}},e.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,a.proxy(function(a,c){return a.start<=b&&a.end>=b},this)).pop()},e.prototype.getPosition=function(b){var c,d,e=this._core.settings;return"page"==e.slideBy?(c=a.inArray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},e.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},e.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},e.prototype.to=function(b,c,d){var e;!d&&this._pages.length?(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c)):a.proxy(this._overrides.to,this._core)(b,c)},a.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(c){this._core=c,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":a.proxy(function(c){c.namespace&&"URLHash"===this._core.settings.startPosition&&a(b).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!c)return;this._hashes[c]=b.content}},this),"changed.owl.carousel":a.proxy(function(c){if(c.namespace&&"position"===c.property.name){var d=this._core.items(this._core.relative(this._core.current())),e=a.map(this._hashes,function(a,b){return a===d?b:null}).join();if(!e||b.location.hash.slice(1)===e)return;b.location.hash=e}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),a(b).on("hashchange.owl.navigation",a.proxy(function(a){var c=b.location.hash.substring(1),e=this._core.$stage.children(),f=this._hashes[c]&&e.index(this._hashes[c]);f!==d&&f!==this._core.current()&&this._core.to(this._core.relative(f),!1,!0)},this))};e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var c,d;a(b).off("hashchange.owl.navigation");for(c in this._handlers)this._core.$element.off(c,this._handlers[c]);for(d in Object.getOwnPropertyNames(this))"function"!=typeof this[d]&&(this[d]=null)},a.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){function e(b,c){var e=!1,f=b.charAt(0).toUpperCase()+b.slice(1);return a.each((b+" "+h.join(f+" ")+f).split(" "),function(a,b){if(g[b]!==d)return e=!c||b,!1}),e}function f(a){return e(a,!0)}var g=a("").get(0).style,h="Webkit Moz O ms".split(" "),i={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},j={csstransforms:function(){return!!e("transform")},csstransforms3d:function(){return!!e("perspective")},csstransitions:function(){return!!e("transition")},cssanimations:function(){return!!e("animation")}};j.csstransitions()&&(a.support.transition=new String(f("transition")),a.support.transition.end=i.transition.end[a.support.transition]),j.cssanimations()&&(a.support.animation=new String(f("animation")),a.support.animation.end=i.animation.end[a.support.animation]),j.csstransforms()&&(a.support.transform=new String(f("transform")),a.support.transform3d=j.csstransforms3d())}(window.Zepto||window.jQuery,window,document);/*!
* Cxscroll - jQuery Plugin for Infinite Scrolling / Auto-Paging
* @version 1.0
* @requires jQuery v1.8.0+
* @preserve
*/(function($){'use strict';$.Cxscroll={defaults:{pagenum:3,contentBox:'div',padding:0,url:'',callback:false,}};var Cxscroll=function($e,options){if($e.children('#_ajax_spanallpost').length==0){return false;}
var _ajaxTo=$e.children('#_ajax_spanallpost'),_data=_ajaxTo.data('Cxscroll'),_userOptions=(typeof options==='function')?{callback:options}:options,_options=$.extend({},$.Cxscroll.defaults,_userOptions,_data||{}),_contentBox=$(_options.contentBox),_$scroll=$(window),_scroll_auto=true,_$e_Html=_ajaxTo.html(),_setBindings=function(){var _$window_scTop=$(window).scrollTop(),_$window_Height=$(window).height(),_contentBox_top=$e.offset().top-_$window_scTop,_contentBox_Height=_contentBox_top-_$window_Height;if(_contentBox_Height<0){_load();_scroll_auto=false;}
_$scroll.bind('scroll',function(){_contentBox_top=$e.offset().top-_$window_scTop,_contentBox_Height=_contentBox_top-_$window_Height;var sum=$(this).scrollTop();if(_scroll_auto&&sum>_contentBox_Height){_scroll_auto=false;_load();}});},_load=function(){if(!_ajaxTo.hasClass('current')&&_ajaxTo.data('action').length>0){_ajaxTo.addClass('current');var _ajax_data=_ajaxTo.data(),_postHtml='';$.ajax({type:'POST',url:_options.url,dataType:"json",data:_ajax_data,success:function(success_data){if(success_data.success=='ok'){if(_options.callback){_options.callback.call(this,_ajaxTo,success_data,_contentBox);}else{_postHtml=$(success_data.data.html).hide();_contentBox.append(_postHtml);_postHtml.fadeIn(800);echo.init({offset:100,throttle:50,unload:false});}
$.each(success_data.data.arr,function(n,value){_ajaxTo.removeData(n);_ajaxTo.data(n,value);});_ajaxTo.removeClass('current');if(success_data.data.starus==0){$e.html('—— 没有更多了 ——
');}else if(success_data.data.arr.paged-1>_options.pagenum){$(_options.loading).hide();_ajaxTo.html(_$e_Html).show();}else{_scroll_auto=true;}}else{window.wxc.xcConfirm(success_data.msg,'error');}}});}};var _$data_page=_ajaxTo.data('paged');if(_$data_page&&_$data_page-1>_options.pagenum){_ajaxTo.show();$(_options.loading).hide();}else{_ajaxTo.hide();$(_options.loading).slideDown("10",function(){_setBindings();});}
_ajaxTo.bind('click',function(){$e.children('.tit_tips').remove();_ajaxTo.html(' 加载中...');_load();});return _ajaxTo;};$.fn.Cxscroll=function(m){return this.each(function(){var $this=$(this);Cxscroll($this,m);});};})(jQuery);function Cx_urlopen(url,type){var type=arguments[1]?arguments[1]:1;var point=url.lastIndexOf(".");var type=url.substr(point);type=type.toLocaleLowerCase();var arr=[".jpg",".png",".css",".js",'.gif','.jpeg','.zip','.rar','.7z'];if($.inArray(type,arr)!=-1){var html='';$('body').append(html);$('#cx-UrlOpen')[0].click();$('#cx-UrlOpen').remove();}else{if(chenxing.URLOPEN==1||type==2){window.wxc.xcConfirm('点击确定跳转到目标页面!','info',{onClose:function(){window.open(url);}});}else{window.location.href=url;}}}
function chenxing_check_login(){if(chenxing.UID>0)return true;return false;};jQuery(document).ready(function($){echo.init({offset:100,throttle:50,unload:true});if($('.megamenu').length>0){var _megamenu=$('.megamenu');_megamenu.each(function(){var _this=$(this),_this_li=_this.children('ul').children('li');if(_this_li.length>0){var _thisli_length=_this_li.length,_this_li_width=_this_li.width(),_this_ul_width=_this_li_width*_thisli_length+20;_this.children('ul').css({'width':_this_ul_width});}});}
if($('#cx-one-slider').length>0){var owl=$('#cx-one-slider');owl.owlCarousel({items:1,loop:true,margin:0,autoplay:true,autoplayTimeout:3000,nav:true,navElement:'div',navText:['',''],});}else if($('#cx-three-slider').length>0){var owl=$('#cx-three-slider');owl.owlCarousel({items:1,loop:true,margin:0,autoplay:true,autoplayTimeout:3000,nav:true,navElement:'div',navText:['',''],responsive:{1180:{items:2,center:true,autoWidth:true,}}});}
if($('.indextj-box').length>0){$('.indextj-box').owlCarousel({dots:false,navElement:'div',items:2,nav:true,navText:['',''],responsive:{800:{items:4},600:{items:3,stagePadding:20,},0:{stagePadding:15,}}})}
window.onload=function(){$('#_ajax_paged').Cxscroll({url:chenxing.ajax_url,contentBox:'#index_ajax_list',loading:'#_ajax_postpage_loading',pagenum:chenxing.ajax_page,});}
var _ajax_contentBox=$('#index_ajax_list'),_ajax_loading=$('.loading_ajax'),_ajax_pagebox=$('#_ajax_paged');jQuery(document).on("click",".index_ajax_list li",function(){if($('#_ajax_spanallpost').length>0&&$('#_ajax_spanallpost').hasClass('current')){window.wxc.xcConfirm('技能冷却中,请稍后!','info');return false;}
var _this=$(this).children('a'),_data=_this.data(),_flow=$('.update_area_content').hasClass('flow-blog');if(parseInt(_ajax_loading.css('height'))>0||$(this).hasClass('current'))return false;$(this).siblings().removeClass("current");$(this).addClass("current");if(_flow){_ajax_loading.animate({height:'51px',marginBottom:'20px'});}else{_ajax_loading.animate({height:'51px'});}
var oDate=new Date().getTime();jQuery.ajax({url:chenxing.ajax_url,data:_data,type:'post',dataType:'json',success:function(data){var oDate2=new Date().getTime();if((oDate2-oDate)>1000){datet=0;}else{datet=1000-(oDate2-oDate);}
setTimeout(function(){if(data.success=='ok'){_ajax_contentBox.html(data.data.html);echo.init({offset:200,throttle:50,unload:false});if(data.data.starus==1){var html='';html+='加载更多';html+='';_ajax_pagebox.html(html);if($('.pagination').length>0){$('.pagination').hide();}
$('#_ajax_paged').Cxscroll({url:chenxing.ajax_url,contentBox:'#index_ajax_list',loading:'#_ajax_postpage_loading',pagenum:chenxing.ajax_page,});}else{_ajax_pagebox.html('—— 没有更多了 ——
');}}else{window.wxc.xcConfirm('服务器开小差了,再点击下试试吧','error');}
_ajax_loading.animate({height:'0',marginBottom:'0'});},datet);},error:function(data){window.wxc.xcConfirm('服务器开小差了,再点击下试试吧!','error');console.log(data.responseText);console.log(data);}})
return false});$('#js-postall').click(function(){var _this=$(this),_body=$('#image_div'),_alldiv=$('#image_div_all'),_next=$('.next-cat'),_pre=$('.pre-cat');if(_this.hasClass('ajaxno'))return false;_this.addClass('ajaxno');if(_this.data('all')=='all'){_this.html('分页浏览').data('all','page');if(_alldiv.data('ajax')!='no'){_alldiv.html(' 正在获取内容,请稍后...
');}
_next.fadeOut();_pre.fadeOut();_body.fadeOut();_alldiv.fadeIn('10',function(){if(_alldiv.data('ajax')!='no'){$.post(chenxing.ajax_url,{action:'chenxing_imageall',type:'all',post_id:chenxing.PID},function(data){_alldiv.html(data);_alldiv.data('ajax','no');});}});}else{_this.html('单页浏览').data('all','all');_alldiv.fadeOut('0',function(){_next.fadeIn();_pre.fadeIn();_body.fadeIn(200);});}
_this.removeClass('ajaxno');});$('#js-postall-no').click(function(){window.wxc.xcConfirm($(this).data('smg'),'error');});if(chenxing.PID>0){$.get(chenxing.ajax_url,{action:'Cx_post_views',pid:chenxing.PID},function(data){$('.cx-views').html(''+data);});if($('#image_div').length>0){$(document).keydown(function(event){var keyNum=event.which,Item=$('#image_div'),prev_link=Item.find(".prev"),next_link=Item.find(".next");switch(keyNum){case 37:window.location.href=next_link.attr('href');break;case 39:window.location.href=prev_link.attr('href');break;}});}}
jQuery(document).on("click","#filter-wrap-category a",function(){var _this=$(this),_data_type=_this.data(),_key=null,_nolinked=$('.filter-tag');if(_this.hasClass('tag-linked')||_this.hasClass('cat-linked')||_this.hasClass('orderby_linked'))return false;if(_nolinked.hasClass('no-linked')){window.wxc.xcConfirm('数据正在处理,即将为您呈现请稍后!','info');return false;}
_nolinked.addClass('no-linked');for(var _key in _data_type);_this.parent('.fl_list').children('.'+_key+'-linked').removeClass(_key+'-linked');_this.addClass(_key+'-linked');if(_key=='cat')return true;var _cat_id=$('.cat-linked').data('cat'),_tag_id=[],_orderby=$('.orderby-linked').data('orderby'),oDate=new Date().getTime();$('.tag-linked').each(function(index,tag_this){_tag_id.push($(tag_this).data('tag'));});_ajax_loading.animate({height:'51px',marginTop:'20px'});$.post(chenxing.ajax_url,{action:$('#filter-wrap-category').data('action')?$('#filter-wrap-category').data('action'):'postlist_newajax',type:'sxpost',cat:_cat_id,tag:_tag_id,term:$('#filter-wrap-category').data('term')?$('#filter-wrap-category').data('term'):'category',paged:1,orderby:_orderby},function(data){_nolinked.removeClass('no-linked');var oDate2=new Date().getTime();if((oDate2-oDate)>1000){datet=0;}else{datet=1000-(oDate2-oDate);}
setTimeout(function(){if(data.success=='ok'){_ajax_contentBox.html(data.data.html);echo.init({offset:200,throttle:50,unload:false});if(data.data.starus==1){var html='';html+='加载更多';html+='';_ajax_pagebox.html(html);if($('.pagination').length>0){$('.pagination').hide();}
$('#_ajax_paged').Cxscroll({url:chenxing.ajax_url,contentBox:'#index_ajax_list',loading:'#_ajax_postpage_loading',pagenum:chenxing.ajax_page,});}else{_ajax_pagebox.html('—— 没有更多了 ——
');}}else{window.wxc.xcConfirm('没有找到相关记录,换个条件试试吧!','error');}
_ajax_loading.animate({height:'0',marginBottom:'0'});},datet);},'json');return false;});if($('#filter-wrap-category .filter-tag').length>0){function _cat_filtertag(){$('.filter-tag .fl_list').each(function(index,_this){var _$this=$(_this);_$this.removeAttr('style');if(_$this.children('div.filter-box-show').length>0){_$this.children('div.filter-box-show').remove();}
if(_$this.children('div.filter-box-hide').length>0){_$this.children('div.filter-box-hide').remove();}
var _maxheight=_$this.css('max-height');_$this.css('max-height','none');if(_$this.height()>parseInt(_maxheight)){_$this.css('height',_maxheight);if(_$this.children('div.filter-box-hide').length==0){_$this.append('展开
');}}});}
_cat_filtertag();var _winWidth=$(window).width();$(window).resize(function(){var _winRewidth=$(window).width();if(_winWidth!=_winRewidth){_winWidth=_winRewidth;_cat_filtertag();}});jQuery(document).on("click",".filter-box-hide",function(){var _this=$(this),_parent=_this.parent();_this.remove();_parent.css({'height':'auto','max-height':'none'});_parent.append('收起
');});jQuery(document).on("click",".filter-box-show",function(){var _this=$(this),_parent=_this.parent();_this.remove();_parent.removeAttr('style');_parent.append('展开
');});}
$('.share-fx').on('click',function(){$(this).toggleClass('share-dj');$('.myshare').slideToggle();});$('.-mob-share-list li').on('click',function(){var _this=$(this),_dren=_this.parent('ul'),_url=_dren.data('url'),_img=_dren.data('images'),_desc=$('meta[name="description"]').length?$('meta[name="description"]').attr('content'):'',_tit=document.title||'',_type=_this.data('type');switch(_type){case 'qq':url='http://connect.qq.com/widget/shareqq/index.html?url='+_url+'&desc='+_desc+'&summary='+_tit+'&site='+chenxing.blogname+'&pics='+_img;break;case 'weibo':url='http://service.weibo.com/share/share.php?title='+_tit+'&url='+_url+'&source=bookmark&pic='+_img;break;case 'douban':url='http://www.douban.com/share/service?image='+_img+'&href='+_url+'&name='+_tit+'&text='+_desc;break;case 'qzone':url='http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+_url+'&title='+_tit+'&desc='+_desc;break;}
if(_type!='weixin'){window.open(url);}});if($('.single-qrcode-share').length>0){$('.single-qrcode-share').each(function(){$(this).qrcode($(this).data('link'));});}
$.fn.hoverDelay=function(options){var defaults={hoverDuring:300,outDuring:200,hoverEvent:function(){$.noop();},outEvent:function(){$.noop();}};var sets=$.extend(defaults,options||{});var hoverTimer,outTimer;return $(this).each(function(){$(this).hover(function(){clearTimeout(outTimer);hoverTimer=setTimeout(sets.hoverEvent,sets.hoverDuring);},function(){clearTimeout(hoverTimer);outTimer=setTimeout(sets.outEvent,sets.outDuring);});});}
$(".login-text-js").hoverDelay({hoverEvent:function(){$(".nav_user").stop().slideDown();},outEvent:function(){$(".nav_user").slideUp();}});jQuery(document).on("click","#filter-wrap-picture a",function(){var _this=$(this),_nolinked=$('.filter-tag');if(_nolinked.hasClass('no-linked')){window.wxc.xcConfirm('数据正在处理,即将为您呈现请稍后!','info');return false;}
_nolinked.addClass('no-linked');if(_this.hasClass('orderby_linked'))return false;_this.parent('.fl_list').children('.orderby-linked').removeClass('orderby-linked');_this.addClass('orderby-linked');var _orderby=$('.orderby-linked').data('orderby'),_post_id=$('.update_area_list'),_post_list=$('#_ajax_paged'),_load=$('.loading_ajax'),oDate=new Date().getTime();_load.animate({height:'51px',marginTop:'20px'});$.post(chenxing.ajax_url,{action:'chenxing_picture_ajax',type:'top',orderby:_orderby,num:_nolinked.data('num')},function(data){_nolinked.removeClass('no-linked');var oDate2=new Date().getTime();if((oDate2-oDate)>1000){datet=0;}else{datet=1000-(oDate2-oDate);}
setTimeout(function(){if(data.success==1){_post_id.html(data.post_list);echo.init({offset:200,throttle:50,unload:false});if(data.post_all>0){var html='加载更多继续加载相关的内容
';_post_list.html(html).css({"margin":"50px"});}else{_post_list.html('—— 相关文章已全部加载 ——
').css({"margin":"0"});}}else{alert('服务器未找到相关数据!');}
_load.animate({height:'0',marginTop:'0'});},datet);},'json');return false;});jQuery(document).on("click","#_ajax_picturepost",function(){var _this=$(this),_data=_this.data(),_post_id=$('.update_area_list'),_ajax_sp=$('#_ajax_paged');if(_this.hasClass('no-linked'))return false;_this.addClass("no-linked");_ajax_sp.children('.tit_tips').remove();_this.html(' 加载中...');jQuery.post(chenxing.ajax_url,_data,function(data){if(data.success==1){var po_li=$(data.post_list).hide();_post_id.append(po_li);po_li.fadeIn(800);echo.init({offset:200,throttle:50,unload:false});if(data.post_all>0){var html='加载更多继续加载相关的内容
';_ajax_sp.html(html).css({"margin":"50px"});}else{_ajax_sp.html('—— 相关文章已全部加载 ——
').css({"margin":"0"});}}else{alert('该栏目没有找到内容!');}},'json');return false});$('.meiriqiandao').on('click',function(){var _this=$(this);if(_this.hasClass('ajaxnone'))return false;_this.addClass('ajaxnone');$.post(chenxing.ajax_url,{action:'daily_sign'},function(data){if(data.success=='success'||data.success=='info'){_this.attr({'id':'meiriqiandao_no','title':'今日已签到'}).children('span').text('今日已签到');}else{_this.removeClass('ajaxnone');}
window.wxc.xcConfirm(data.msg,data.success);},'json');});$('.collect').click(function(){if(!chenxing_check_login()){alert('请先登录!');return;}
var _this=$(this);var pid=Number(_this.attr('pid'));if(_this.attr('uid')&&_this.hasClass('collect-no')){var uid=Number(_this.attr('uid'));$.ajax({type:'POST',async:false,xhrFields:{withCredentials:true},dataType:'html',url:chenxing.ajax_url,data:'action=chenxing_collect&uid='+uid+'&pid='+pid+'&act=add',cache:false,success:function(){_this.children("span").text("已收藏");_this.addClass("collect-animate").attr("title","已收藏");setTimeout(function(){_this.removeClass('collect-animate').removeClass('collect-no').addClass('collect-yes');},500);}});}else if(_this.attr('uid')&&_this.hasClass('remove-collect')){var uid=Number(_this.attr('uid'));$.ajax({type:'POST',async:false,xhrFields:{withCredentials:true},dataType:'html',url:chenxing.ajax_url,data:'action=chenxing_collect&uid='+uid+'&pid='+pid+'&act=remove',cache:false,success:function(){_this.children("span").text("点击收藏");_this.addClass("collect-animate").attr("title","点击收藏");setTimeout(function(){_this.removeClass('collect-animate').removeClass('remove-collect').removeClass('collect-yes').addClass('collect-no');},500);}});location.reload();}
return false;});if($('.nav_headertop').length>0){var scrollTop=t=0;$(window).bind("scroll",function(){var scrollTop=$(this).scrollTop(),scrollHeight=$(document).height(),windowHeight=$(this).height();if(scrollTop+windowHeight==scrollHeight){$('.nav_headertop').removeClass('hiddened');}else{if(t<=scrollTop&&scrollTop>100){$('.nav_headertop').addClass('hiddened');}else{$('.nav_headertop').removeClass('hiddened');}}
setTimeout(function(){t=scrollTop;},0);});}
$('a.slide-user-menu').on('click',function(){var _mask=$('.slide-mask'),_wrapper=$('.slide-wrapper');_mask.show();_wrapper.addClass('moved');$('body').css('overflow','hidden');_mask.on('click',function(){_mask.hide();_wrapper.removeClass('moved');$('body').css('overflow','auto');});});$('.slide-moible-menu').on('click',function(){var _this=$(this),_iconbox=_this.children('i'),_menubox=$('.header-molble-menu');if(_menubox.height()==0){$('body').css('overflow','hidden');_iconbox.html('');var h_header=_menubox.css("height","100%").height();_menubox.height(0);_menubox.animate({height:h_header,'paddingBottom':'50px'});}else{_iconbox.html('');_menubox.animate({height:0,'paddingBottom':0});$('body').css('overflow','auto');}});});console.log('\n'+' %c CX-UDY Designed by 奈雪の图 %c https://www.naixue.org '+'\n','color: #fadfa3; background: #030307; padding:5px 0; font-size:13px;','background: #fadfa3; padding:5px 0; font-size:13px;');function MYdownresult(result){_url=result.data;while(_url.indexOf('*!agf')>=0)_url=_url.replace('*!agf','=');while(_url.indexOf('&a^f')>=0)_url=_url.replace('&a^f','b');if(result.status==3){window.wxc.xcConfirm(result.msg,'info',{onClose:function(){Cx_urlopen($.CxJM.atob(_url,true));}});}else if(result.status==1){Cx_urlopen($.CxJM.atob(_url,true));}else{window.wxc.xcConfirm(result.msg,'info',{onClose:function(){window.location.reload();}});}}
var _down_botton=$('.down_botton'),_downa_legth=_down_botton.children('a').length;if(_downa_legth==1){_down_botton.css({'top':'50%','margin-top':'-30px'});}
$('.Mypassdown').click(function(){var _this=$(this),_mima=_this.data('ma'),_url=_this.data('down'),_name=_this.html(),_color=_this.css('background'),_tname=_this.text();if(!_mima)_mima='NO';var clipboard=new Clipboard('.Mypassdown',{text:function(){return _mima;}});clipboard.on('success',function(e){if(_url){if(_this.hasClass('downnone'))return;if(_mima!='NO'){window.wxc.xcConfirm('资源提取密码已复制成功,点击确定跳转到资源提取页面!','success',{onClose:function(){_this.addClass('downnone').css('background','#F44336').html(' 处理中...');$.post(chenxing.ajax_url,{action:'Post_down_ajax',pid:chenxing.PID,uid:chenxing.UID,down:_url,name:_tname},function(result){_this.removeClass('downnone').html(_name).css('background',_color);MYdownresult(result);},'json');}});}else{_this.addClass('downnone').css('background','#F44336').html(' 处理中...');$.post(chenxing.ajax_url,{action:'Post_down_ajax',pid:chenxing.PID,uid:chenxing.UID,down:_url,name:_tname},function(result){_this.removeClass('downnone').html(_name).css('background',_color);MYdownresult(result);},'json');}}else{window.wxc.xcConfirm('非常抱歉,资源已失效!','error');}});clipboard.on('error',function(e){if(_url){if(_this.hasClass('downnone'))return;if(_mima!='NO'){window.wxc.xcConfirm('资源提取密码'+_mima+',记录后点击确定跳转到资源提取页面!','success',{onClose:function(){_this.addClass('downnone').css('background','#F44336').html(' 处理中...');$.post(chenxing.ajax_url,{action:'Post_down_ajax',pid:chenxing.PID,uid:chenxing.UID,down:_url,name:_tname},function(result){_this.removeClass('downnone').html(_name).css('background',_color);MYdownresult(result);},'json');}});}else{_this.addClass('downnone').css('background','#F44336').html(' 处理中...');$.post(chenxing.ajax_url,{action:'Post_down_ajax',pid:chenxing.PID,uid:chenxing.UID,down:_url,name:_tname},function(result){_this.removeClass('downnone').html(_name).css('background',_color);MYdownresult(result);},'json');}}else{window.wxc.xcConfirm('非常抱歉,资源已失效!','error');}});});$('.buy_ziyuan_ajax').click(function(){var _this=$(this),_msg=_this.data('msg'),_pay=_this.data('pay'),_credit=_this.data('credit'),_nonce=_this.data('nonce'),_url=_this.data('url');if(!_this.hasClass('downnone')){window.wxc.xcConfirm(_msg,'confirm',{onOk:function(){if(_pay>_credit){window.wxc.xcConfirm('积分数量不足,点击确定跳转到充值页面!','error',{onOk:function(){Cx_urlopen(_url);}});}else{_this.addClass('downnone');_this.html('处理中...');$.post(chenxing.ajax_url,{action:!_this.data('action')?'Ziyuan_buy_ajax':_this.data('action'),pid:chenxing.PID,uid:chenxing.UID,nonce:_nonce},function(result){window.wxc.xcConfirm(result.msg,result.type,{onOk:function(){if(result.status==1){Cx_urlopen(result.credit_url);}else{window.location.reload();}}});},'json');}}});}else{window.wxc.xcConfirm('交易正在处理,请稍后!','info');}
return false;});function chenxingweb(){this.init();}
chenxingweb.prototype={constructor:chenxingweb,init:function(){this._initBackTop()},_initBackTop:function(){var $backTop=this.$backTop=$('');$('body').append($backTop);$backTop.click(function(){$("html, body").animate({scrollTop:0},120)});var timmer=null;$(window).bind("scroll",function(){var d=$(document).scrollTop(),e=$(window).height();0