diff options
author | Devaev Maxim <[email protected]> | 2019-07-13 06:38:55 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-07-13 06:38:55 +0300 |
commit | 98468bfa3069e76862be8e0a19bbe8e3fc6748fa (patch) | |
tree | 8a2cf0083532b2d7058b194410bd32386a7f07d3 /web/share/js/tools.js | |
parent | ad97aecaf4d043c59d018310b4d8f4852d30b6e0 (diff) |
using js modules
Diffstat (limited to 'web/share/js/tools.js')
-rw-r--r-- | web/share/js/tools.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/share/js/tools.js b/web/share/js/tools.js index 240fdc29..0498927c 100644 --- a/web/share/js/tools.js +++ b/web/share/js/tools.js @@ -20,7 +20,7 @@ *****************************************************************************/ -var tools = new function() { +export var tools = new function() { let __debug = (new URL(window.location.href)).searchParams.get("debug"); this.setDefault = function(dict, key, value) { @@ -160,6 +160,6 @@ var tools = new function() { this.info("Browser:", this.browser); }; -var $ = (id) => document.getElementById(id); -var $$ = (cls) => document.getElementsByClassName(cls); -var $$$ = (selector) => document.querySelectorAll(selector); +export var $ = (id) => document.getElementById(id); +export var $$ = (cls) => document.getElementsByClassName(cls); +export var $$$ = (selector) => document.querySelectorAll(selector); |