diff options
author | Andrew Dolgov <[email protected]> | 2018-02-22 12:18:59 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-02-22 12:18:59 +0300 |
commit | f41005d3759740b08f81877e868176fe6ffb28ca (patch) | |
tree | 421f275605d599720da03238742ec296c754abae /js/reader.js | |
parent | 256e97d1e9293fc29680e9860c4c7714042aba63 (diff) |
exp: set iframe event handlers on ready
Diffstat (limited to 'js/reader.js')
-rw-r--r-- | js/reader.js | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/js/reader.js b/js/reader.js index 93a3755..453c925 100644 --- a/js/reader.js +++ b/js/reader.js @@ -1,10 +1,12 @@ -$(window).on("click tap", function() { - if (parent.$(".header").is(":visible")) { - parent.show_ui(false); - parent.request_fullscreen(); - } else { - parent.show_ui(true); - parent.disable_fullscreen(); - } +$(document).ready(function() { + $(window).on("click tap", function() { + if (parent.$(".header").is(":visible")) { + parent.show_ui(false); + parent.request_fullscreen(); + } else { + parent.show_ui(true); + parent.disable_fullscreen(); + } + }); }); |