(sec)
| 93 | const app = document.getElementById("app"); |
| 94 | |
| 95 | function fmt(sec) { |
| 96 | if (!isFinite(sec) || sec < 0) sec = 0; |
| 97 | const m = Math.floor(sec / 60); |
| 98 | const s = Math.floor(sec % 60); |
| 99 | return m + ":" + String(s).padStart(2, "0"); |
| 100 | } |
| 101 | function esc(s) { |
| 102 | return String(s).replace(/[&<>"]/g, (c) => ({ "&": "&", "<": "<", ">": ">", '"': """ })[c]); |
| 103 | } |
no outgoing calls
no test coverage detected