MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / decTime

Function decTime

src/dialogs/dialog.js:95–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93 }, 0);
94
95 function decTime() {
96 if (waitFor >= 1000) {
97 okBtn.textContent = `${strOK} (${Number.parseInt(waitFor / 1000)}sec)`;
98 waitFor -= 1000;
99 setTimeout(decTime, 1000);
100 } else {
101 okBtn.textContent = strOK;
102 okBtn.classList.remove("disabled");
103 cancelBtn?.classList.remove("disabled");
104 }
105 }
106
107 function hideBox() {
108 box.classList.add("hide");

Callers 1

dialogFunction · 0.85

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected