2017-09-17 10:36:32 +00:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
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 %}
|
|
|
|
|
<meta name="google-site-verification" content='{{g.google_site_verification}}' />
|
|
|
|
|
{% 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>
|
|
|
|
|
<script>
|
2019-04-21 09:20:15 +00:00
|
|
|
|
var updateArrows = function() {
|
|
|
|
|
if ($('input[name="direction"]:checked').val() === "0") {
|
|
|
|
|
$("#prev_page_key").html("←");
|
|
|
|
|
$("#next_page_key").html("→");
|
|
|
|
|
} else {
|
|
|
|
|
$("#prev_page_key").html("→");
|
|
|
|
|
$("#next_page_key").html("←");
|
|
|
|
|
}
|
|
|
|
|
};
|
2017-12-10 07:43:51 +00:00
|
|
|
|
document.onreadystatechange = function () {
|
|
|
|
|
if (document.readyState == "complete") {
|
2019-07-13 18:45:48 +00:00
|
|
|
|
init("{{ url_for('web.serve_book', book_id=comicfile, book_format=extension) }}");
|
|
|
|
|
updateArrows();
|
2017-12-10 07:43:51 +00:00
|
|
|
|
}
|
2019-05-31 06:43:51 +00:00
|
|
|
|
}
|
2017-12-10 07:43:51 +00:00
|
|
|
|
</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>
|
|
|
|
|
<canvas id="mainImage"></canvas>
|
|
|
|
|
</div>
|
2019-04-21 09:20:15 +00:00
|
|
|
|
<div id="left" class="arrow" onclick="showLeftPage()">‹</div>
|
|
|
|
|
<div id="right" class="arrow" onclick="showRightPage()">›</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>
|
|
|
|
|
</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>
|
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>
|
|
|
|
|
</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">
|
|
|
|
|
<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>
|
|
|
|
|
<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>
|
2017-11-19 12:20:59 +00:00
|
|
|
|
</div>
|
2017-12-10 07:43:51 +00:00
|
|
|
|
</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>
|
2019-04-21 09:20:15 +00:00
|
|
|
|
<tr>
|
|
|
|
|
<th>{{_('Direction')}}:</th>
|
|
|
|
|
<td>
|
|
|
|
|
<div class="inputs">
|
|
|
|
|
<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>
|
|
|
|
|
<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>
|
|
|
|
|
<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>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
2019-04-21 09:20:15 +00:00
|
|
|
|
</tr>
|
2017-12-10 07:43:51 +00:00
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
2017-09-17 10:36:32 +00:00
|
|
|
|
</div>
|
2017-12-10 07:43:51 +00:00
|
|
|
|
<div class="closer icon-cancel-circled"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="overlay"></div>
|
2019-04-21 09:20:15 +00:00
|
|
|
|
<script>
|
|
|
|
|
$('input[name="direction"]').change(function() {
|
|
|
|
|
updateArrows();
|
|
|
|
|
});
|
|
|
|
|
</script>
|
2017-12-10 07:43:51 +00:00
|
|
|
|
</body>
|
2017-09-17 10:36:32 +00:00
|
|
|
|
</html>
|