|
|
|
@ -83,6 +83,16 @@
|
|
|
|
|
<button type="button" id="sepiaTheme" class="sepiaTheme" onclick="selectTheme(this.id)"><span id="sepiaSelected"> </span>{{_('Sepia')}}</button>
|
|
|
|
|
<button type="button" id="blackTheme" class="blackTheme" onclick="selectTheme(this.id)"><span id="blackSelected"> </span>{{_('Black')}}</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
<!-- Hardcoded pagination as the initial value as it is the "default" flow. Need to find a way to do this dynamically on startup-->
|
|
|
|
|
<label for="readerFlow">{{_('Reader flow:')}}</label>
|
|
|
|
|
<select id="readerFlow" name="readerFlow">
|
|
|
|
|
<option value="paginated">{{_('Paginated')}}</option>
|
|
|
|
|
<option value="scrolled-doc">{{_('Scrolled')}}</option>
|
|
|
|
|
</select>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
<input type="checkbox" id="sidebarReflow" name="sidebarReflow">{{_('Reflow text when sidebars are open.')}}
|
|
|
|
@ -146,6 +156,17 @@
|
|
|
|
|
fontSizeFader.addEventListener ("change", function () {
|
|
|
|
|
reader.rendition.themes.fontSize(`${this.value}%`)
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// reader flow settings logic
|
|
|
|
|
let readerFlow = document.getElementById('readerFlow');
|
|
|
|
|
readerFlow.addEventListener ("change", function () {
|
|
|
|
|
reader.rendition.flow(this.value);
|
|
|
|
|
if (this.value === "paginated") {
|
|
|
|
|
document.getElementById("divider").classList.add("show");
|
|
|
|
|
} else {
|
|
|
|
|
document.getElementById("divider").classList.remove("show");
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
</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>
|
|
|
|
|