update epub.js
This commit is contained in:
parent
a0b66637d1
commit
3226fc969d
1 changed files with 16 additions and 8 deletions
|
@ -11,24 +11,32 @@
|
||||||
<link rel="stylesheet" href="/static/epub.js/css/normalize.css">
|
<link rel="stylesheet" href="/static/epub.js/css/normalize.css">
|
||||||
<link rel="stylesheet" href="/static/epub.js/css/main.css">
|
<link rel="stylesheet" href="/static/epub.js/css/main.css">
|
||||||
<link rel="stylesheet" href="/static/epub.js/css/popup.css">
|
<link rel="stylesheet" href="/static/epub.js/css/popup.css">
|
||||||
|
<style>
|
||||||
|
.arrow {
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-o-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: text;
|
||||||
|
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<script src="/static/epub.js/libs/jquery-2.1.0.min.js"></script>
|
<script src="/static/epub.js/libs/jquery-2.1.0.min.js"></script>
|
||||||
|
|
||||||
<script src="/static/epub.js/libs/zip.min.js"></script>
|
<script src="/static/epub.js/libs/zip.min.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
"use strict";
|
"use strict";
|
||||||
|
var reader;
|
||||||
document.onreadystatechange = function () {
|
document.onreadystatechange = function () {
|
||||||
if (document.readyState == "complete") {
|
if (document.readyState == "complete") {
|
||||||
EPUBJS.filePath = "/static/epub.js/libs/";
|
EPUBJS.filePath = "/static/epub.js/libs/";
|
||||||
EPUBJS.cssPath = "/static/epub.js/css/";
|
EPUBJS.cssPath = "/static/epub.js/css/";
|
||||||
// fileStorage.filePath = EPUBJS.filePath;
|
// fileStorage.filePath = EPUBJS.filePath;
|
||||||
|
reader = ePubReader(document.location.pathname.replace(/\/reader\//, '/epub/'));
|
||||||
var reader = ePubReader(document.location.pathname.replace(/\/reader\//, '/epub/'));
|
}
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- Render -->
|
<!-- Render -->
|
||||||
|
@ -103,7 +111,7 @@
|
||||||
<div id="viewer"></div>
|
<div id="viewer"></div>
|
||||||
<div id="next" class="arrow">›</div>
|
<div id="next" class="arrow">›</div>
|
||||||
|
|
||||||
<div id="loader"><img src="img/loader.gif"></div>
|
<div id="loader"><img src="/static/epub.js/img/loader.gif"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal md-effect-1" id="settings-modal">
|
<div class="modal md-effect-1" id="settings-modal">
|
||||||
<div class="md-content">
|
<div class="md-content">
|
||||||
|
|
Loading…
Reference in a new issue