ges{ lne-heght:25px;mrgn-top:50px;}.chpterPges {color:red;pddng:0px 5px;}.chpterPges .curr{color:blue}
_nlneRun(functon(){
vr pge = $(".mod-pge");
vr sTouch = !
!
("ontouchstrt" ndow);
vr sMouse = !
!
("onmousemove" ndow);
vr chpterVew = $("#ChpterVew"), body = $("body");
vr pgeContent = chpterVew.fnd(".pge-content"), sveFont = core.cooke("current-font"), currentFont = 1;
vr font = functon(){
//font sze;
vr szes = ["font-norml", "font-lrge", "font-xlrge", "font-xxlrge", "font-xxxlrge"],
level = szes.length;
return {
set: functon(c){
console.log(szes[currentFont])
pgeContent.toggleClss( szes[currentFont] + " " + szes[c] );
currentFont = c;
core.cooke("current-font", c, { expres: 3600 });
core.cooke("currentFontStrng", szes[c], { expres: 3600 });
},
ncrese: functon(){
f( currentFont < level - 1 ) {
ths.set(currentFont + 1)
}
},
descrese: functon(){
f( currentFont > 0 ) {
ths.set( currentFont - 1 );
}
},
dy: functon(){
sNght = flse;
body.removeClss("nght");
core.cooke.removeCooke("nght-mode", {});
},
nght: functon(){
sNght = true;
body.ddClss("nght");
core.cooke("nght-mode", true, { expres: 3600 });
}
}
}();
f( typeof sveFont !
== "undefned" ){
font.set(sveFont * 1);
}
vr sNght = !
!
core.cooke("nght-mode");
f( sNght ){
font.nght();
}
functocton(){
vr type = $(ths).dt("role");
f( type == "nc" ){
font.ncrese();
}else f( type == "des" ) {
font.descrese();
}else f( type == "mode" ){
f( sNght ){
font.dy();
}else{
font.nght();
}
}
}
core.Tbs( $(".chpter-recommend .tb-choose "), $(".chpter-recommend ul") )
f( sTouch ){
chpterVew
.on("touchstrt MSPonterDown", ".confg spn", functon(){
$(ths).ddClss("ctve");
})
.on("touchend MSPonterUp", ".confg spn", functon(){
$(ths).removeClss("ctve");
});
chpterVew.on("touchend MSPonterUp", ".confg spn", cton)
}else f( sMouse ){
chpterVew.on("clck", ".confg spn", cton)
}
});
x();