lore Đọc truyện online

Chương 1: Nhiệm vụ cuối cùng

2,815 Nhấn vào nội dung để bình luận hoặc báo lỗi.

```javascript

function goToAnchor() {

return -1;

}

function getCurChapterIndex() {

return this.chapters.indexOf(this.curChapter);

}

function scrollToChapter() {

var targetElement = $("#c" + this.curChapter).offset().top;

if (targetElement) {

$(targetElement).animate({ top: 0 }, 500);

} else {

console.log("Chương " + this.curChapter + " không tồn tại.");

}

}

function getLastChapter() {

return store.get("read_" + this.curChapter);

}

function setLastChapter() {

store.set("read_" + this.curChapter, this.curChapter);

}

function jumpToLastChapter() {

var lastChapterId = getLastChapter();

if (lastChapterId) {

this.curChapter = lastChapterId;

this.chapters = [];

this.chapterNames = {};

this.$read.html("");

this(nextPage());

}

}

function setBookHistory() {

this.bookHistory.curChapter = this.curChapter;

store.set("history_" + this.bookId, JSON.stringify(this.bookHistory));

}

function nextPage() {

if (disabledClick === true || this.isDisableAsync) {

return;

}

read.curChapter++;

setBookHistory();

}

```

0; vart = this; $.ajax({

url: t.getApiUrl(),

dataType: "json",

success: function(e) {

disabledClick = !

}

});

1, t.$readPause = !1;

var a = "[data-js=loading]";

if (0 == e.code) {

t.chapters.push(t.curChapter);

t.$read.attr("rel", t.getApiUrl(t.curChapter + 1));

isEpub(t.chapterNames[t.curChapter] === e.body.chapterName);

}

var o = "";

if (a.length > 0) {

abefore(t.getAnchor() + e(html) + e.body.pageButton + o);

t.$read.append(t.getAnchor() + e(html) + e.body.pageButton + o);

}

`(1 == e.body.pageType3 == e.body.pageType) && (t.isDisableAsync != true) {

return goUrl(e.body.goUrl);

} else if (5 == e.body.pageType) {

return goUrl(e.body.goUrl);

} else if (t.isNetError != false) {

t.isNetError = true;

t.perloadNum = 2;

_scrollTo("#c" + t.curChapter).offset().top);

t.isDisableAsync && ...

} else if (_isEmpty(e.body.pageButton) && read-disableAsync()) {

isEpub && jsClear();

t.perloadNum > 0 => --t.perloadNum;

t.isNeedFill() && t.autoFill;

} else if (1 == e.code) { ...`

(--read.curChapter، window.scrollTo(0, 0), window.location.href = e.body.goUrl): 111999 == e.code?

(--read.curChapter, window.location.href = e.body.url): (--read.curChapter, zy_alert(emsg)); read.setBookHistory(); error: function() { --read.curChapter, t.isNetError = !

0,Thì zy_alert("Mạng đang bận, vui lòng thử lại sau"); disabledClick = !

1 thì t.$read_PAUSE = !1 } }, isNeedFill: function() { return $("body").offset().height + 13; "Chương này là chương có phí, phiên bản trình duyệt hiện tại không hỗ trợ việc đọc các chương có phí. Vui lòng mở ứng dụng Huawei Reading để tiếp tục đọc."

1/1 0%