showStatus function

Last updated: 2026-03-04T23:36:57.288Z

Metrics

LOC: 10 Complexity: 3 Params: 2

Signature

showStatus(msg: string, isError = false): : void

Source Code

function showStatus(msg: string, isError = false): void {
  const el = document.getElementById("status");
  if (!el) return;
  el.textContent = msg;
  el.className = isError ? "status error" : "status success";
  el.style.display = "block";
  setTimeout(() => {
    el.style.display = "none";
  }, 2000);
}

No outgoing dependencies.

Impact (Incoming)

graph LR showStatus["showStatus"] doSend["doSend"] doSend -->|calls| showStatus style showStatus fill:#dbeafe,stroke:#2563eb,stroke-width:2px click showStatus "2aab6178fa5261e5.html" click doSend "a64fadbf3863fefa.html"
SourceType
doSend calls