|
|
|
@ -17,9 +17,19 @@
|
|
|
|
|
<script src="{{ url_for('static', filename='js/kthoom.js') }}"></script>
|
|
|
|
|
<script src="{{ url_for('static', filename='js/archive.js') }}"></script>
|
|
|
|
|
<script>
|
|
|
|
|
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("←");
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
document.onreadystatechange = function () {
|
|
|
|
|
if (document.readyState == "complete") {
|
|
|
|
|
init("{{ url_for('serve_book', book_id=comicfile, book_format=extension) }}");
|
|
|
|
|
init("{{ url_for('serve_book', book_id=comicfile, book_format=extension) }}");
|
|
|
|
|
updateArrows();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
@ -70,8 +80,8 @@
|
|
|
|
|
<div id="mainText" style="display:none"></div>
|
|
|
|
|
<canvas id="mainImage"></canvas>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="prev" class="arrow" onclick="showPrevPage()">‹</div>
|
|
|
|
|
<div id="next" class="arrow" onclick="showNextPage()">›</div>
|
|
|
|
|
<div id="left" class="arrow" onclick="showLeftPage()">‹</div>
|
|
|
|
|
<div id="right" class="arrow" onclick="showRightPage()">›</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="modal md-effect-1" id="settings-modal">
|
|
|
|
@ -84,8 +94,8 @@
|
|
|
|
|
<tr><th colspan="2">{{_('Keyboard Shortcuts')}}</th></tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr><td>←</td> <td>{{_('Previous Page')}}</td></tr>
|
|
|
|
|
<tr><td>→</td> <td>{{_('Next Page')}}</td></tr>
|
|
|
|
|
<tr><td id="prev_page_key">←</td> <td>{{_('Previous Page')}}</td></tr>
|
|
|
|
|
<tr><td id="next_page_key">→</td> <td>{{_('Next Page')}}</td></tr>
|
|
|
|
|
<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>
|
|
|
|
@ -144,6 +154,15 @@
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<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>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
@ -152,6 +171,10 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="overlay"></div>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
$('input[name="direction"]').change(function() {
|
|
|
|
|
updateArrows();
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|