2015-08-02 20:59:11 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html class="no-js">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
2016-07-09 10:54:13 +02:00
|
|
|
<title>ePubJS Reader</title>
|
2015-08-02 20:59:11 +02:00
|
|
|
<meta name="description" content="">
|
2016-07-09 10:54:13 +02:00
|
|
|
<meta name="viewport" content="width=device-width, user-scalable=no">
|
2015-08-02 20:59:11 +02:00
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
|
2016-07-09 10:54:13 +02:00
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/normalize.css') }}">
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}">
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/popup.css') }}">
|
|
|
|
<script src="{{ url_for('static', filename='js/libs/jquery.min.js') }}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/libs/zip.min.js') }}"></script>
|
2015-08-02 20:59:11 +02:00
|
|
|
|
2016-07-09 10:54:13 +02:00
|
|
|
<script>
|
2015-08-02 20:59:11 +02:00
|
|
|
"use strict";
|
|
|
|
|
2016-07-09 10:54:13 +02:00
|
|
|
document.onreadystatechange = function () {
|
|
|
|
if (document.readyState == "complete") {
|
2016-07-19 08:48:11 +02:00
|
|
|
EPUBJS.filePath = "{{ url_for('static', filename='js/libs/') }}";
|
|
|
|
EPUBJS.cssPath = "{{ url_for('static', filename='css/') }}";
|
2015-08-02 20:59:11 +02:00
|
|
|
|
2016-07-09 10:54:13 +02:00
|
|
|
window.reader = ePubReader("{{ url_for('static', filename=bookid) }}/");
|
2016-07-16 10:44:47 +02:00
|
|
|
//keybind
|
|
|
|
$(document).keydown(function(event){
|
|
|
|
if(event.keyCode == 37){
|
|
|
|
window.reader.book.prevPage();
|
|
|
|
}
|
|
|
|
if(event.keyCode == 39){
|
|
|
|
window.reader.book.nextPage();
|
|
|
|
}
|
|
|
|
});
|
2016-07-19 08:48:11 +02:00
|
|
|
//bind mouse
|
|
|
|
$(window).bind('DOMMouseScroll mousewheel', function(event) {
|
|
|
|
var delta = 0;
|
|
|
|
if (event.originalEvent.wheelDelta) {
|
|
|
|
delta = event.originalEvent.wheelDelta;
|
|
|
|
}else if (event.originalEvent.detail) {
|
|
|
|
delta = event.originalEvent.detail*-1;
|
|
|
|
}
|
|
|
|
if (delta >= 0) {
|
|
|
|
window.reader.book.prevPage();
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
window.reader.book.nextPage();
|
|
|
|
}
|
|
|
|
});
|
2016-07-09 10:54:13 +02:00
|
|
|
}
|
|
|
|
};
|
2015-08-02 20:59:11 +02:00
|
|
|
|
|
|
|
</script>
|
|
|
|
|
2016-07-09 10:54:13 +02:00
|
|
|
<!-- File Storage -->
|
|
|
|
<!-- <script src="js/libs/localforage.min.js"></script> -->
|
2015-08-02 20:59:11 +02:00
|
|
|
|
2016-07-09 10:54:13 +02:00
|
|
|
<!-- Full Screen -->
|
|
|
|
<!--<script src="js/libs/screenfull.min.js"></script>-->
|
|
|
|
<script src="{{ url_for('static', filename='js/libs/screenfull.min.js') }}"></script>
|
2015-08-02 20:59:11 +02:00
|
|
|
|
2016-07-09 10:54:13 +02:00
|
|
|
<!-- Render -->
|
|
|
|
<!--<script src="js/epub.min.js"></script>-->
|
|
|
|
<script src="{{ url_for('static', filename='js/epub.min.js') }}"></script>
|
2015-08-02 20:59:11 +02:00
|
|
|
|
2016-07-09 10:54:13 +02:00
|
|
|
<!-- Hooks -->
|
|
|
|
<!--<script src="js/hooks.min.js"></script>-->
|
|
|
|
<script src="{{ url_for('static', filename='js/hooks.min.js') }}"></script>
|
2015-08-02 20:59:11 +02:00
|
|
|
|
2016-07-09 10:54:13 +02:00
|
|
|
<!-- Reader -->
|
|
|
|
<!--<script src="js/reader.min.js"></script>-->
|
|
|
|
<script src="{{ url_for('static', filename='js/reader.min.js') }}"></script>
|
2015-08-02 20:59:11 +02:00
|
|
|
|
2016-07-09 10:54:13 +02:00
|
|
|
<!-- Plugins -->
|
|
|
|
<!-- <script src="js/plugins/search.js"></script> -->
|
2016-11-01 19:49:47 +02:00
|
|
|
<!--script src="{{ url_for('static', filename='js/plugins/search.js') }}"></script-->
|
2015-08-02 20:59:11 +02:00
|
|
|
|
2016-07-09 10:54:13 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="sidebar">
|
|
|
|
<div id="panels">
|
2016-11-01 19:49:47 +02:00
|
|
|
<!--input id="searchBox" placeholder="search" type="search"-->
|
2015-08-02 20:59:11 +02:00
|
|
|
|
2016-11-01 19:49:47 +02:00
|
|
|
<!--a id="show-Search" class="show_view icon-search" data-view="Search">Search</a-->
|
2016-07-09 10:54:13 +02:00
|
|
|
<a id="show-Toc" class="show_view icon-list-1 active" data-view="Toc">TOC</a>
|
|
|
|
<a id="show-Bookmarks" class="show_view icon-bookmark" data-view="Bookmarks">Bookmarks</a>
|
|
|
|
<a id="show-Notes" class="show_view icon-edit" data-view="Notes">Notes</a>
|
2015-08-02 20:59:11 +02:00
|
|
|
|
2016-07-09 10:54:13 +02:00
|
|
|
</div>
|
|
|
|
<div id="tocView" class="view">
|
|
|
|
</div>
|
|
|
|
<div id="searchView" class="view">
|
|
|
|
<ul id="searchResults"></ul>
|
|
|
|
</div>
|
|
|
|
<div id="bookmarksView" class="view">
|
|
|
|
<ul id="bookmarks"></ul>
|
|
|
|
</div>
|
|
|
|
<div id="notesView" class="view">
|
|
|
|
<div id="new-note">
|
|
|
|
<textarea id="note-text"></textarea>
|
|
|
|
<button id="note-anchor">Anchor</button>
|
|
|
|
</div>
|
|
|
|
<ol id="notes"></ol>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="main">
|
|
|
|
|
|
|
|
<div id="titlebar">
|
|
|
|
<div id="opener">
|
|
|
|
<a id="slider" class="icon-menu">Menu</a>
|
|
|
|
</div>
|
|
|
|
<div id="metainfo">
|
|
|
|
<span id="book-title"></span>
|
|
|
|
<span id="title-seperator"> – </span>
|
|
|
|
<span id="chapter-title"></span>
|
|
|
|
</div>
|
|
|
|
<div id="title-controls">
|
|
|
|
<a id="bookmark" class="icon-bookmark-empty">Bookmark</a>
|
|
|
|
<a id="setting" class="icon-cog">Settings</a>
|
|
|
|
<a id="fullscreen" class="icon-resize-full">Fullscreen</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-08-02 20:59:11 +02:00
|
|
|
|
2016-07-09 10:54:13 +02:00
|
|
|
<div id="divider"></div>
|
|
|
|
<div id="prev" class="arrow">‹</div>
|
|
|
|
<div id="viewer"></div>
|
|
|
|
<div id="next" class="arrow">›</div>
|
|
|
|
|
|
|
|
<div id="loader"><img src="{{ url_for('static', filename='img/loader.gif') }}"></div>
|
|
|
|
</div>
|
|
|
|
<div class="modal md-effect-1" id="settings-modal">
|
|
|
|
<div class="md-content">
|
|
|
|
<h3>Settings</h3>
|
|
|
|
<div>
|
|
|
|
<p>
|
2016-11-09 20:24:33 +02:00
|
|
|
<input type="checkbox" id="sidebarReflow" name="sidebarReflow">{{_(Reflow text when sidebars are open.)}}
|
2016-07-09 10:54:13 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="closer icon-cancel-circled"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="overlay"></div>
|
|
|
|
</body>
|
2015-08-02 20:59:11 +02:00
|
|
|
</html>
|