MCPcopy Create free account
hub / github.com/UdaraJay/Stats / refreshAnalytics

Function refreshAnalytics

ui/script.js:509–519  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

507}
508
509function refreshAnalytics() {
510 if (document.hidden) return;
511 fetchAndRenderAnalytics();
512
513 const live = document.getElementById("live");
514 live.style.backgroundColor = "red";
515 setTimeout(() => {
516 live.style.backgroundColor = "#e2e2e2";
517 live.classList.remove("fresh");
518 }, 9000);
519}
520
521/* initial paint & schedule */
522fetchAndRenderAnalytics();

Callers

nothing calls this directly

Calls 1

fetchAndRenderAnalyticsFunction · 0.85

Tested by

no test coverage detected