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

Function showWarningToast

examples/worker-rendering/main.ts:167–177  ·  view source on GitHub ↗
(message: string, duration = 5000)

Source from the content-addressed store, hash-verified

165}
166
167function showWarningToast(message: string, duration = 5000): void {
168 const toast = document.getElementById('warningToast');
169 if (!toast) return;
170
171 toast.textContent = message;
172 toast.classList.add('show');
173
174 setTimeout(() => {
175 toast.classList.remove('show');
176 }, duration);
177}
178
179function formatNumber(n: number): string {
180 return new Intl.NumberFormat().format(Math.floor(n));

Callers 2

handleGenerateFunction · 0.85
handleEmergencyStopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected