ges a{color:red;padding:0px 5px;}.chapterPages .curr{color:blue}
_inlineRun(function(){
var page = $(".mod-page");
var isTouch = !
!
("ontouchstart" iindow);
var isMouse = !
!
("onmousemove" iindow);
var chapterView = $("#ChapterView"), body = $("body");
var pageContent = chapterView.find(".page-content"), saveFont = core.cookie("current-font"), currentFont = 1;
var font = function(){
//font size;
var sizes = ["font-normal", "font-large", "font-xlarge", "font-xxlarge", "font-xxxlarge"],
level = sizes.length;
return {
set: function(c){
console.log(sizes[currentFont])
pageContent.toggleClass( sizes[currentFont] + " " + sizes[c] );
currentFont = c;
core.cookie("current-font", c, { expires: 3600 });
core.cookie("currentFontString", sizes[c], { expires: 3600 });
},
increase: function(){
if( currentFont < level - 1 ) {
this.set(currentFont + 1)
}
},
descrease: function(){
if( currentFont > 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 });
-->>(第6/10页)(本章未完,请点击下一页继续阅读)