using js modules

This commit is contained in:
Devaev Maxim
2019-07-13 06:38:55 +03:00
parent ad97aecaf4
commit 98468bfa30
20 changed files with 104 additions and 70 deletions

View File

@@ -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);