diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/read.js | 7 | ||||
-rw-r--r-- | js/reader.js | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -275,7 +275,12 @@ function apply_theme() { var themeUrl = baseUrl + "themes/" + theme + ".css"; $("#theme_css").attr("href", themeUrl); - $(book.renderer.doc).find("#theme_css").attr('href', themeUrl); + //$(book.renderer.doc).find("#theme_css").attr('href', themeUrl); + + window.parent.$.get(baseUrl + 'themes/' + theme + '.css', function(data) { + $(book.renderer.doc).find("#theme_css").html(data); + }); + }); } diff --git a/js/reader.js b/js/reader.js index 0a49a4b..15e2e65 100644 --- a/js/reader.js +++ b/js/reader.js @@ -17,6 +17,8 @@ function enable_swipes() { } $(document).ready(function() { + console.log('setting taps'); + $(window).on("click tap", function() { if (parent.$(".header").is(":visible")) { parent.show_ui(false); |