summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
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();
-
});
}