summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-02-01 21:56:10 +0300
committerAndrew Dolgov <[email protected]>2018-02-01 22:36:46 +0300
commit0af56d18e86ac90cdd53d8e79781777b3fa23688 (patch)
treec7bf32de005aa3ed3bc8c53c91b1e4dce1fc9541 /js
parentf7f56cc0c0307bbf7f01d2375f916e976be49cdb (diff)
various fixes related to multi-theme support
Diffstat (limited to 'js')
-rw-r--r--js/read.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/js/read.js b/js/read.js
index 9d74792..ec85233 100644
--- a/js/read.js
+++ b/js/read.js
@@ -144,7 +144,12 @@ function apply_styles() {
var lineHeight = res[2] ? res[2] + "%" : DEFAULT_LINE_HEIGHT + "%";
var themeName = res[3] ? res[3] : false;
- $("#reader iframe").contents().find("*")
+ book.setStyle("fontSize", fontSize);
+ book.setStyle("fontFamily", fontFamily);
+ book.setStyle("lineHeight", lineHeight);
+ book.setStyle("textAlign", "justify");
+
+ $("#reader iframe").contents().find("p")
.css("background", "")
.css("color", "")
.css("background-color", "")
@@ -153,8 +158,6 @@ function apply_styles() {
.css("line-height", lineHeight)
.css("text-align", "justify");
- $("#reader").show();
-
});
}