MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / showStatus

Function showStatus

examples/worker-rendering/main.ts:155–165  ·  view source on GitHub ↗
(message: string, type: 'success' | 'warning' | 'error' = 'success')

Source from the content-addressed store, hash-verified

153}
154
155function showStatus(message: string, type: 'success' | 'warning' | 'error' = 'success'): void {
156 const el = document.getElementById('statusMessage');
157 if (!el) return;
158
159 el.textContent = message;
160 el.className = `status-message show ${type}`;
161
162 setTimeout(() => {
163 el.classList.remove('show');
164 }, 5000);
165}
166
167function showWarningToast(message: string, duration = 5000): void {
168 const toast = document.getElementById('warningToast');

Callers 6

handleGenerateFunction · 0.85
handleStartStreamingFunction · 0.85
streamFrameFunction · 0.85
handleClearFunction · 0.85
handleEmergencyStopFunction · 0.85
initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected