- next entry/exit reader after finishing an entry

This commit is contained in:
Alex Ling
2020-02-16 01:00:52 +00:00
parent 1850573961
commit 5a7a54d17e
4 changed files with 17 additions and 3 deletions

View File

@@ -36,6 +36,7 @@ $(function() {
var lastURL = $('img').last().attr('id');
// load the reader URL for the last page to update reading progrss to 100%
$.get(lastURL);
$('#next-btn').removeAttr('hidden');
return;
}
$('#hidden').load(encodeURI(nextURL) + ' .uk-container', function(res, status, xhr){
@@ -71,6 +72,6 @@ function replaceHistory(url) {
history.replaceState(null, "", url);
console.log('reading ' + url);
}
function exit(url) {
function redirect(url) {
window.location.replace(url);
}