2017-09-17 10:36:32 +00:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
2023-08-26 18:12:34 +00:00
|
|
|
|
|
2017-12-10 07:43:51 +00:00
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
|
|
<meta name="description" content="">
|
2021-07-11 10:52:35 +00:00
|
|
|
|
<title>{{_('Comic Reader')}} | {{title}}</title>
|
2017-12-10 07:43:51 +00:00
|
|
|
|
<meta name="viewport" content="width=device-width, user-scalable=no">
|
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
2022-11-10 16:02:50 +00:00
|
|
|
|
{% if g.google_site_verification|length > 0 %}
|
2022-12-25 09:32:01 +00:00
|
|
|
|
<meta name="google-site-verification" content="{{g.google_site_verification}}">
|
2022-11-10 16:02:50 +00:00
|
|
|
|
{% endif %}
|
2017-09-17 11:37:21 +00:00
|
|
|
|
|
2017-12-10 07:43:51 +00:00
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/libs/normalize.css') }}">
|
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}" type="text/css"/>
|
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/kthoom.css') }}" type="text/css"/>
|
|
|
|
|
|
|
|
|
|
<script src="{{ url_for('static', filename='js/libs/jquery.min.js') }}"></script>
|
2021-01-24 10:16:57 +00:00
|
|
|
|
<script src="{{ url_for('static', filename='js/libs/plugins.js') }}"></script>
|
2017-12-10 07:43:51 +00:00
|
|
|
|
<script src="{{ url_for('static', filename='js/libs/screenfull.min.js') }}"></script>
|
2021-05-16 06:35:20 +00:00
|
|
|
|
<script src="{{ url_for('static', filename='js/compress/uncompress.js') }}"></script>
|
2017-12-10 07:43:51 +00:00
|
|
|
|
<script src="{{ url_for('static', filename='js/kthoom.js') }}"></script>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div id="sidebar">
|
|
|
|
|
<div id="tocView" class="view" tabindex="-1">
|
|
|
|
|
<ul id="thumbnails"></ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="bookmarksView" class="view">
|
|
|
|
|
<ul id="bookmarks"></ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="main" class="main">
|
|
|
|
|
<div id="titlebar" class="main">
|
|
|
|
|
<div id="opener">
|
|
|
|
|
<a id="slider" class="icon-menu">Menu</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="metainfo">
|
2018-08-31 08:47:58 +00:00
|
|
|
|
<span id="book-title">{{ title | shortentitle }}</span>
|
2017-12-10 07:43:51 +00:00
|
|
|
|
<span id="title-seperator"> – </span>
|
|
|
|
|
<span id="chapter-title"></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="title-controls">
|
|
|
|
|
<a id="setting" class="icon-cog">Settings</a>
|
|
|
|
|
<a id="fullscreen" class="icon-resize-full">Fullscreen</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="progress" role="progressbar" class="loading">
|
2021-04-17 19:25:45 +00:00
|
|
|
|
<div class="bar-load from-left">
|
2017-12-10 07:43:51 +00:00
|
|
|
|
<div class="text load">
|
|
|
|
|
Loading...
|
2017-09-17 11:37:21 +00:00
|
|
|
|
</div>
|
2017-11-19 12:20:59 +00:00
|
|
|
|
</div>
|
2021-04-17 19:25:45 +00:00
|
|
|
|
<div class="bar-read from-left">
|
2017-12-10 07:43:51 +00:00
|
|
|
|
<div class="text page"></div>
|
2017-11-19 12:20:59 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2017-12-10 07:43:51 +00:00
|
|
|
|
</div>
|
2017-11-19 12:20:59 +00:00
|
|
|
|
|
2017-12-10 07:43:51 +00:00
|
|
|
|
<div id="mainContent" tabindex="-1">
|
|
|
|
|
<div id="mainText" style="display:none"></div>
|
|
|
|
|
</div>
|
2023-08-31 14:51:06 +00:00
|
|
|
|
<div id="left" class="arrow" style="display:none">‹</div>
|
|
|
|
|
<div id="right" class="arrow" style="display:none">›</div>
|
2017-12-10 07:43:51 +00:00
|
|
|
|
</div>
|
2017-11-19 12:20:59 +00:00
|
|
|
|
|
2017-12-10 07:43:51 +00:00
|
|
|
|
<div class="modal md-effect-1" id="settings-modal">
|
|
|
|
|
<div class="md-content">
|
|
|
|
|
<h3>{{_('Settings')}}</h3>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="settings-column">
|
|
|
|
|
<table>
|
|
|
|
|
<thead>
|
|
|
|
|
<tr><th colspan="2">{{_('Keyboard Shortcuts')}}</th></tr>
|
2023-08-26 18:12:34 +00:00
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
2019-04-21 09:20:15 +00:00
|
|
|
|
<tr><td id="prev_page_key">←</td> <td>{{_('Previous Page')}}</td></tr>
|
|
|
|
|
<tr><td id="next_page_key">→</td> <td>{{_('Next Page')}}</td></tr>
|
2021-11-24 19:41:07 +00:00
|
|
|
|
<tr><td>S</td> <td>{{_('Single Page Display')}}</td></tr>
|
|
|
|
|
<tr><td>O</td> <td>{{_('Long Strip Display')}}</td></tr>
|
2017-12-10 07:43:51 +00:00
|
|
|
|
<tr><td>B</td> <td>{{_('Scale to Best')}}</td></tr>
|
|
|
|
|
<tr><td>W</td> <td>{{_('Scale to Width')}}</td></tr>
|
|
|
|
|
<tr><td>H</td> <td>{{_('Scale to Height')}}</td></tr>
|
|
|
|
|
<tr><td>N</td> <td>{{_('Scale to Native')}}</td></tr>
|
|
|
|
|
<tr><td>R</td> <td>{{_('Rotate Right')}}</td></tr>
|
|
|
|
|
<tr><td>L</td> <td>{{_('Rotate Left')}}</td></tr>
|
|
|
|
|
<tr><td>F</td> <td>{{_('Flip Image')}}</td></tr>
|
2023-08-26 18:12:34 +00:00
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="settings-column">
|
|
|
|
|
<table id="settings">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>{{_('Settings')}}</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>{{_('Theme')}}:</th>
|
|
|
|
|
<td>
|
|
|
|
|
<div class="inputs">
|
2017-12-10 07:43:51 +00:00
|
|
|
|
<label for="lightTheme"><input type="radio" id="lightTheme" name="theme" value="light" /> {{_('Light')}}</label>
|
|
|
|
|
<label for="darkTheme"><input type="radio" id="darkTheme" name="theme" value="dark" /> {{_('Dark')}}</label>
|
2017-11-19 12:20:59 +00:00
|
|
|
|
</div>
|
2017-12-10 07:43:51 +00:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2021-11-24 19:41:07 +00:00
|
|
|
|
<tr>
|
|
|
|
|
<th>{{_('Display')}}:</th>
|
|
|
|
|
<td>
|
|
|
|
|
<div class="inputs">
|
|
|
|
|
<label for="singlePage"><input type="radio" id="singlePage" name="pageDisplay" value="0" /> {{_('Single Page')}}</label>
|
|
|
|
|
<label for="longStrip"><input type="radio" id="longStrip" name="pageDisplay" value="1" /> {{_('Long Strip')}}</label>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2017-12-10 07:43:51 +00:00
|
|
|
|
<tr>
|
|
|
|
|
<th>{{_('Scale')}}:</th>
|
|
|
|
|
<td>
|
|
|
|
|
<div class="inputs">
|
|
|
|
|
<label for="fitBest"><input type="radio" id="fitBest" name="fitMode" value="66" /> {{_('Best')}}</label>
|
|
|
|
|
<label for="fitWidth"><input type="radio" id="fitWidth" name="fitMode" value="87" /> {{_('Width')}}</label>
|
|
|
|
|
<label for="fitHeight"><input type="radio" id="fitHeight" name="fitMode" value="72" /> {{_('Height')}}</label>
|
|
|
|
|
<label for="fitNative"><input type="radio" id="fitNative" name="fitMode" value="78" /> {{_('Native')}}</label>
|
2023-08-26 18:12:34 +00:00
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>{{_('Rotate')}}:</th>
|
|
|
|
|
<td>
|
|
|
|
|
<div class="inputs">
|
|
|
|
|
<label for="r0"><input type="radio" id="r0" name="rotateTimes" value="0" /> 0°</label>
|
|
|
|
|
<label for="r90"><input type="radio" id="r90" name="rotateTimes" value="1" /> 90°</label>
|
|
|
|
|
<label for="r180"><input type="radio" id="r180" name="rotateTimes" value="2" /> 180°</label>
|
|
|
|
|
<label for="r270"><input type="radio" id="r270" name="rotateTimes" value="3" /> 270°</label>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>{{_('Flip')}}:</th>
|
|
|
|
|
<td>
|
|
|
|
|
<div class="inputs">
|
|
|
|
|
<label for="vflip"><input type="checkbox" id="vflip" name="vflip" /> {{_('Horizontal')}}</label>
|
|
|
|
|
<label for="hflip"><input type="checkbox" id="hflip" name="hflip" /> {{_('Vertical')}}</label>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>{{_('Direction')}}:</th>
|
|
|
|
|
<td>
|
|
|
|
|
<div class="inputs">
|
2019-04-21 09:20:15 +00:00
|
|
|
|
<label for="leftToRight"><input type="radio" id="leftToRight" name="direction" value="0" /> {{_('Left to Right')}}</label>
|
|
|
|
|
<label for="rightToLeft"><input type="radio" id="rightToLeft" name="direction" value="1" /> {{_('Right to Left')}}</label>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
2021-04-25 19:59:53 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-08-26 18:12:34 +00:00
|
|
|
|
<th>{{_('Next Page')}}:</th>
|
|
|
|
|
<td>
|
|
|
|
|
<div class="inputs">
|
|
|
|
|
<label for="resetToTop"><input type="radio" id="resetToTop" name="nextPage" value="0" /> {{_('Reset to Top')}}</label>
|
|
|
|
|
<label for="rememberPosition"><input type="radio" id="rememberPosition" name="nextPage" value="1" /> {{_('Remember Position')}}</label>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2021-04-25 19:59:53 +00:00
|
|
|
|
<th>{{_('Scrollbar')}}:</th>
|
|
|
|
|
<td>
|
|
|
|
|
<div class="inputs">
|
|
|
|
|
<label for="showScrollbar"><input type="radio" id="showScrollbar" name="scrollbar" value="1" /> {{_('Show')}}</label>
|
|
|
|
|
<label for="hideScrollbar"><input type="radio" id="hideScrollbar" name="scrollbar" value="0" /> {{_('Hide')}}</label>
|
2023-08-26 18:12:34 +00:00
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
2017-12-10 07:43:51 +00:00
|
|
|
|
</div>
|
2023-08-26 18:12:34 +00:00
|
|
|
|
<div class="closer icon-cancel-circled"></div>
|
2017-09-17 10:36:32 +00:00
|
|
|
|
</div>
|
2017-12-10 07:43:51 +00:00
|
|
|
|
</div>
|
2023-08-26 18:12:34 +00:00
|
|
|
|
<div class="overlay"></div>
|
|
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
|
|
|
<script>
|
|
|
|
|
window.calibre = {
|
2023-08-31 14:51:06 +00:00
|
|
|
|
bookmarkUrl: "{{ url_for('web.set_bookmark', book_id=comicfile, book_format=extension.upper()) }}",
|
|
|
|
|
bookmark: "{{ bookmark.bookmark_key if bookmark != None }}",
|
|
|
|
|
useBookmarks: "{{ current_user.is_authenticated | tojson }}"
|
2023-08-26 18:12:34 +00:00
|
|
|
|
};
|
2023-08-31 14:51:06 +00:00
|
|
|
|
|
2023-08-26 18:12:34 +00:00
|
|
|
|
document.onreadystatechange = function () {
|
|
|
|
|
if (document.readyState == "complete") {
|
2023-08-31 14:51:06 +00:00
|
|
|
|
if (calibre.useBookmarks) {
|
|
|
|
|
currentImage = eval(calibre.bookmark);
|
|
|
|
|
if (typeof currentImage !== 'number') {
|
|
|
|
|
currentImage = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
init("{{ url_for('web.serve_book', book_id=comicfile, book_format=extension) }}");
|
2023-08-26 18:12:34 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
2017-12-10 07:43:51 +00:00
|
|
|
|
</body>
|
2017-09-17 10:36:32 +00:00
|
|
|
|
</html>
|