一秒记住 思路客 www.siluke123.com
")},gotoanchor:function(){return-1!
==thischaptersindexof(thiscurchapter)?
(_scrollto($("c"+thiscurchapter)offset()top),!
0):!1},getlastchapter:function(e){returnstoreget("read_"+e)},setlastchapter:function(e){storeset("read_"+e,thiscurchapter),e!
=resourseid&&storeset("read_"+resourseid,thiscurchapter)},jumptolastchapter:function(){vare=thisgetlastchapter(bookid);e&&(thiscurchapter=e,thischapters=[],thischapternames={},this$readhtml(),thisnextpage(!
0))},setbookhistory:function(){thisbookhistorycurchapter=thiscurchapter,storeset("history_"+bookid,jsonstringify(thisbookhistory))},nextpage:function(e){if(disabledclick||thisisdisableasync)return--readcurchapter,readsetbookhistory(),!
1;disabledclick=!0,e||thisisneterror||_scrollto($("c"+(thiscurchapter-1))offset()top),this$readpause=!
0;vart=this;$ajax({url:tgetapiurl(),datatype:"json",ess:function(e){disabledclick=!
1,t$readpause=!1;vara=$("[data-js=loading]");if(0==ecode){tchapterspush(tcurchapter),t$readattr("rel",tgetapiurl(tcurchapter+1)),isepub||(tchapternames[tcurchapter]=ebodychaptername||);varo=;if(alength?
abefore(tgetanchor()+ehtml+ebodypagebutton+o):t$readappend(tgetanchor()+ehtml+ebodypagebutton+o),(1==ebodypagetype||3==ebodypagetype)&&(tisdisableasync=!
0),5==ebodypagetype)returngourl(ebodygourl),!
0;tisneterror&&(tisneterror=!
1,tperloadnum=2,_scrollto($("c"+tcurchapter)offset()top)),tisdisableasync&&!
_isempty(ebodypagebutton)&&readdisableasync(),isepub&&jsclear(),tperloadnum>0&&--tperloadnum,tisneedfill()&&tautofill&&tautofill()}else1==ecode?
(--readcurchapter,windowscrollto(0,0),windowlocationhref=ebodygourl):111999==ecode?
(--readcurchapter,windowlocationhref=ebodyurl):(--readcurchapter,zyalert(emsg));readsetbookhistory()},error:function(){--readcurchapter,tisneterror=!
0,zyalert("网络繁忙,请稍后重试"),disabledclick=!
1,t$readpause=!1}})},isneedfill:function(){return$("body")offset()height+13该章节为付费章节,当前浏览器版本不支持付费阅读,请打开华为阅读继续阅读
")},gotoanchor:function(){return-1!
==thischaptersindexof(thiscurchapter)?
(_scrollto($("c"+thiscurchapter)offset()top),!
0):!1},getlastchapter:function(e){returnstoreget("read_"+e)},setlastchapter:function(e){storeset("read_"+e,thiscurchapter),e!
=resourseid&&storeset("read_"+resourseid,thiscurchapter)},jumptolastchapter:function(){vare=thisgetlastchapter(bookid);e&&(thiscurchapter=e,thischapters=[],thischapternames={},this$readhtml(),thisnextpage(!
0))},setbookhistory:function(){thisbookhistorycurchapter=thiscurchapter,storeset("history_"+bookid,jsonstringify(thisbookhistory))},nextpage:function(e){if(disabledclick||thisisdisableasync)return--readcurchapter,readsetbookhistory(),!
1;disabledclick=!0,e||thisisneterror||_scrollto($("c"+(thiscurchapter-1))offset()top),this$readpause=!
0;vart=this;$ajax({url:tgetapiurl(),datatype:"json",ess:function(e){disabledclick=!
1,t$readpause=!1;vara=$("[data-js=loading]");if(0==ecode){tchapterspush(tcurchapter),t$readattr("rel",tgetapiurl(tcurchapter+1)),isepub||(tchapternames[tcurchapter]=ebodychaptername||);varo=;if(alength?
abefore(tgetanchor()+ehtml+ebodypagebutton+o):t$readappend(tgetanchor()+ehtml+ebodypagebutton+o),(1==ebodypagetype||3==ebodypagetype)&&(tisdisableasync=!
0),5==ebodypagetype)returngourl(ebodygourl),!
0;tisneterror&&(tisneterror=!
1,tperloadnum=2,_scrollto($("c"+tcurchapter)offset()top)),tisdisableasync&&!
_isempty(ebodypagebutton)&&readdisableasync(),isepub&&jsclear(),tperloadnum>0&&--tperloadnum,tisneedfill()&&tautofill&&tautofill()}else1==ecode?
(--readcurchapter,windowscrollto(0,0),windowlocationhref=ebodygourl):111999==ecode?
(--readcurchapter,windowlocationhref=ebodyurl):(--readcurchapter,zyalert(emsg));readsetbookhistory()},error:function(){--readcurchapter,tisneterror=!
0,zyalert("网络繁忙,请稍后重试"),disabledclick=!
1,t$readpause=!1}})},isneedfill:function(){return$("body")offset()height+13该章节为付费章节,当前浏览器版本不支持付费阅读,请打开华为阅读继续阅读