From b663f1ce830efd00bad607d152919f99b0c2fcde Mon Sep 17 00:00:00 2001 From: Ghighi Eftimie Date: Sun, 16 Oct 2022 16:22:08 +0200 Subject: [PATCH] added font size fader in reader's settings popup #487 --- cps/templates/read.html | 47 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/cps/templates/read.html b/cps/templates/read.html index e5311998..f417e6c1 100644 --- a/cps/templates/read.html +++ b/cps/templates/read.html @@ -13,6 +13,38 @@ + + +
+
+ + +
+
@@ -128,7 +166,14 @@ else if (id == "blackTheme") { document.getElementById("main").style.backgroundColor = "black"; } - } + + } + + // font size settings logic + let fontSizeFader = document.getElementById('fontSizeFader'); + fontSizeFader.addEventListener ("change", function () { + reader.rendition.themes.fontSize(`${this.value}%`) + });