summaryrefslogtreecommitdiff
path: root/read.html
diff options
context:
space:
mode:
Diffstat (limited to 'read.html')
-rw-r--r--read.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/read.html b/read.html
index 03ff9e3..c552960 100644
--- a/read.html
+++ b/read.html
@@ -647,6 +647,21 @@
};
});
+ book.on("renderer:chapterDisplayed", function() {
+
+ // cleanup possibly interfering styles
+ var c = $("#reader iframe").contents();
+
+ c.find("p")
+ .removeAttr("style")
+ .removeAttr("class")
+ .css("margin", "0px");
+
+ c.find("*")
+ .removeAttr("class");
+
+ });
+
book.on("renderer:keydown", hotkey_handler);
book.getMetadata().then(function(meta){