refactoring

This commit is contained in:
Devaev Maxim
2020-07-11 01:58:07 +03:00
parent e390914c7e
commit 01fee4992b
6 changed files with 33 additions and 21 deletions

View File

@@ -139,6 +139,14 @@ export var tools = new function() {
$(`${el.id}-value`).style.width = `${percent}%`;
};
this.setHiddenVisible = function(el, visible) {
el.classList.toggle("hidden", !visible);
};
this.setFeatureEnabled = function(el, enabled) {
el.classList.toggle("feature-disabled", !enabled);
};
/************************************************************************/
let __debug = (new URL(window.location.href)).searchParams.get("debug");