(msg)
| 347 | |
| 348 | let _toastTimer = null; |
| 349 | function toast(msg) { |
| 350 | let el = document.getElementById("m-toast"); |
| 351 | if (!el) { |
| 352 | el = document.createElement("div"); |
| 353 | el.id = "m-toast"; |
| 354 | el.className = "m-toast"; |
| 355 | document.body.appendChild(el); |
| 356 | } |
| 357 | el.textContent = msg; |
| 358 | el.classList.add("show"); |
| 359 | clearTimeout(_toastTimer); |
| 360 | _toastTimer = setTimeout(() => el.classList.remove("show"), 2400); |
| 361 | } |
| 362 | |
| 363 | function mainWaveform() { |
| 364 | const N = 56; |
no outgoing calls
no test coverage detected