diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/common.js | 2 | ||||
-rw-r--r-- | js/dict.js | 2 | ||||
-rw-r--r-- | js/index.js | 2 | ||||
-rw-r--r-- | js/offline.js | 2 | ||||
-rw-r--r-- | js/read.js | 2 | ||||
-rw-r--r-- | js/reader.js | 2 |
6 files changed, 12 insertions, 0 deletions
diff --git a/js/common.js b/js/common.js index 9843c59..8367034 100644 --- a/js/common.js +++ b/js/common.js @@ -1,3 +1,5 @@ +'use strict'; + $.urlParam = function(name){ try { var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); @@ -1,3 +1,5 @@ +'use strict'; + $(document).ready(function() { $(window).on("mouseup touchend", function() { if (!navigator.onLine) return; diff --git a/js/index.js b/js/index.js index 785dc32..b6ec4ee 100644 --- a/js/index.js +++ b/js/index.js @@ -1,3 +1,5 @@ +'use strict'; + function cache_refresh(force) { if ('serviceWorker' in navigator) { localforage.getItem("epube.cache-timestamp").then(function(stamp) { diff --git a/js/offline.js b/js/offline.js index 40e230b..749b3ff 100644 --- a/js/offline.js +++ b/js/offline.js @@ -1,3 +1,5 @@ +'use strict'; + function offline_search(form) { var query = $(".search_query").val(); @@ -1,3 +1,5 @@ +'use strict'; + var _store_position = 0; var _enable_fullscreen = 0; diff --git a/js/reader.js b/js/reader.js index 453c925..34c5e06 100644 --- a/js/reader.js +++ b/js/reader.js @@ -1,3 +1,5 @@ +'use strict'; + $(document).ready(function() { $(window).on("click tap", function() { if (parent.$(".header").is(":visible")) { |