mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 01:51:53 +08:00
refactoring
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user