2015-08-02 11:59:11 -07:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html class="no-js">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
2021-07-11 03:52:35 -07:00
|
|
|
|
<title>{{_('epub Reader')}} | {{title}}</title>
|
2015-08-02 11:59:11 -07:00
|
|
|
|
<meta name="description" content="">
|
2016-07-09 01:54:13 -07:00
|
|
|
|
<meta name="viewport" content="width=device-width, user-scalable=no">
|
2015-08-02 11:59:11 -07:00
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
2019-02-15 23:03:42 -08:00
|
|
|
|
<link rel="apple-touch-icon" sizes="140x140" href="{{ url_for('static', filename='favicon.ico') }}">
|
|
|
|
|
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
|
2015-08-02 11:59:11 -07:00
|
|
|
|
|
2017-02-07 10:11:18 -08:00
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/libs/normalize.css') }}">
|
2016-07-09 01:54:13 -07:00
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}">
|
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/popup.css') }}">
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div id="sidebar">
|
|
|
|
|
<div id="panels">
|
2016-11-01 10:49:47 -07:00
|
|
|
|
<!--input id="searchBox" placeholder="search" type="search"-->
|
2015-08-02 11:59:11 -07:00
|
|
|
|
|
2016-11-01 10:49:47 -07:00
|
|
|
|
<!--a id="show-Search" class="show_view icon-search" data-view="Search">Search</a-->
|
2016-07-09 01:54:13 -07: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>
|
2017-09-17 11:26:58 -07:00
|
|
|
|
<!--a id="show-Notes" class="show_view icon-edit" data-view="Notes">Notes</a-->
|
2015-08-02 11:59:11 -07:00
|
|
|
|
|
2016-07-09 01:54:13 -07:00
|
|
|
|
</div>
|
|
|
|
|
<div id="tocView" class="view">
|
|
|
|
|
</div>
|
2017-09-17 11:26:58 -07:00
|
|
|
|
<!--div id="searchView" class="view">
|
2016-07-09 01:54:13 -07:00
|
|
|
|
<ul id="searchResults"></ul>
|
2017-09-17 11:26:58 -07:00
|
|
|
|
</div-->
|
2016-07-09 01:54:13 -07:00
|
|
|
|
<div id="bookmarksView" class="view">
|
|
|
|
|
<ul id="bookmarks"></ul>
|
|
|
|
|
</div>
|
2017-09-17 11:26:58 -07:00
|
|
|
|
<!--div id="notesView" class="view">
|
2016-07-09 01:54:13 -07:00
|
|
|
|
<div id="new-note">
|
|
|
|
|
<textarea id="note-text"></textarea>
|
|
|
|
|
<button id="note-anchor">Anchor</button>
|
|
|
|
|
</div>
|
|
|
|
|
<ol id="notes"></ol>
|
2017-09-17 11:26:58 -07:00
|
|
|
|
</div-->
|
2016-07-09 01:54:13 -07:00
|
|
|
|
</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 11:59:11 -07:00
|
|
|
|
|
2016-07-09 01:54:13 -07: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">
|
2017-09-15 22:52:53 -07:00
|
|
|
|
<h3>{{_('Settings')}}</h3>
|
2021-12-12 05:10:44 -08:00
|
|
|
|
<div class="themes" id="themes">
|
|
|
|
|
Choose a theme below: <br />
|
|
|
|
|
|
|
|
|
|
<!-- Hardcoded a tick in the light theme button because it is the "default" theme. Need to find a way to do this dynamically on startup-->
|
|
|
|
|
<button type="button" id="lightTheme" class="lightTheme" onclick="selectTheme(this.id)"><span id="lightSelected">✓</span>{{_('Light')}}</button>
|
|
|
|
|
<button type="button" id="darkTheme" class="darkTheme" onclick="selectTheme(this.id)"><span id="darkSelected"> </span>{{_('Dark')}}</button>
|
|
|
|
|
<button type="button" id="sepiaTheme" class="sepiaTheme" onclick="selectTheme(this.id)"><span id="sepiaSelected"> </span>{{_('Sepia')}}</button>
|
|
|
|
|
</div>
|
2016-07-09 01:54:13 -07:00
|
|
|
|
<div>
|
|
|
|
|
<p>
|
2016-11-13 03:13:32 -08:00
|
|
|
|
<input type="checkbox" id="sidebarReflow" name="sidebarReflow">{{_('Reflow text when sidebars are open.')}}
|
2016-07-09 01:54:13 -07:00
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="closer icon-cancel-circled"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="overlay"></div>
|
2021-01-24 05:19:46 -08:00
|
|
|
|
<script src="{{ url_for('static', filename='js/libs/jquery.min.js') }}"></script>
|
2019-07-13 11:45:48 -07:00
|
|
|
|
<script src="{{ url_for('static', filename='js/libs/jszip.min.js') }}">
|
|
|
|
|
</script> <script src="{{ url_for('static', filename='js/libs/epub.min.js') }}"></script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
window.calibre = {
|
|
|
|
|
filePath: "{{ url_for('static', filename='js/libs/') }}",
|
|
|
|
|
cssPath: "{{ url_for('static', filename='css/') }}",
|
|
|
|
|
bookmarkUrl: "{{ url_for('web.bookmark', book_id=bookid, book_format='EPUB') }}",
|
2019-12-01 03:21:21 -08:00
|
|
|
|
bookUrl: "{{ url_for('web.serve_book', book_id=bookid, book_format='epub', anyname='file.epub') }}",
|
2019-07-13 11:45:48 -07:00
|
|
|
|
bookmark: "{{ bookmark.bookmark_key if bookmark != None }}",
|
|
|
|
|
useBookmarks: "{{ g.user.is_authenticated | tojson }}"
|
2017-08-23 08:52:52 -07:00
|
|
|
|
};
|
2021-12-12 05:10:44 -08:00
|
|
|
|
|
|
|
|
|
function selectTheme(id) {
|
|
|
|
|
tickSpans = document.getElementById("themes").querySelectorAll("span");
|
|
|
|
|
|
|
|
|
|
// Remove tick mark from all theme buttons
|
|
|
|
|
for(var i = 0; i < tickSpans.length; i++) {
|
|
|
|
|
document.getElementById(tickSpans[i].id).textContent = "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Add tick mark to the button corresponding to the currently selected theme
|
|
|
|
|
document.getElementById(id).querySelector("span").textContent = "✓";
|
|
|
|
|
|
|
|
|
|
// Apply theme to epubjs iframe
|
|
|
|
|
reader.rendition.themes.select(id);
|
|
|
|
|
|
|
|
|
|
// Apply theme to rest of the page. TODO - Do this smarter
|
|
|
|
|
if (id == "darkTheme") {
|
|
|
|
|
document.getElementById("main").style.backgroundColor = "black";
|
|
|
|
|
}
|
|
|
|
|
else if (id == "lightTheme") {
|
|
|
|
|
document.getElementById("main").style.backgroundColor = "white";
|
|
|
|
|
}
|
|
|
|
|
else if (id == "sepiaTheme") {
|
|
|
|
|
document.getElementById("main").style.backgroundColor = "#ece1ca";
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-08-23 08:52:52 -07:00
|
|
|
|
</script>
|
|
|
|
|
<script src="{{ url_for('static', filename='js/libs/screenfull.min.js') }}"></script>
|
|
|
|
|
<script src="{{ url_for('static', filename='js/libs/reader.min.js') }}"></script>
|
|
|
|
|
<script src="{{ url_for('static', filename='js/reading/epub.js') }}"></script>
|
2016-07-09 01:54:13 -07:00
|
|
|
|
</body>
|
2015-08-02 11:59:11 -07:00
|
|
|
|
</html>
|