首页
排行
0 ) { this.set( currentFont - 1 ); } }, day: function(){ isNight = false; body.removeClass("night"); core.cookie.removeCookie("night-mode", {}); }, night: function(){ isNight = true; body.addClass("night"); core.cookie("night-mode", true, { expires: 3600 }); } } }(); if( typeof saveFont !== "undefined" ){ font.set(saveFont * 1); } var isNight = !!core.cookie("night-mode"); if( isNight ){ font.night(); } function action(){ var type = $(this).data("role"); if( type == "inc" ){ font.increase(); }else if( type == "des" ) { font.descrease(); }else if( type == "mode" ){ if( isNight ){ font.day(); }else{ font.night(); } } } core.Tabs( $(".chapter-recommend .tab-choose a"), $(".chapter-recommend ul") ) if( isTouch ){ chapterView .on("touchstart MSPointerDown", ".config span", function(){ $(this).addClass("active"); }) .on("touchend MSPointerUp", ".config span", function(){ $(this).removeClass("active"); }); chapterView.on("touchend MSPointerUp", ".config span", action) }else if( isMouse ){ chapterView.on("click", ".config span", action) } });