(status)
| 40 | } |
| 41 | |
| 42 | function startPhraseRotation(status) { |
| 43 | stopPhraseRotation(); |
| 44 | const phrase = pickPhrase(status); |
| 45 | jobStageEl.textContent = phrase; |
| 46 | setOverlayPhrase(phrase); |
| 47 | phraseTimerId = setInterval(() => { |
| 48 | const p = pickPhrase(status); |
| 49 | jobStageEl.textContent = p; |
| 50 | setOverlayPhrase(p); |
| 51 | }, ROTATION_MS); |
| 52 | } |
| 53 | |
| 54 | function stopPhraseRotation() { |
| 55 | if (phraseTimerId) { |
no test coverage detected