MCPcopy
hub / github.com/stemdeckapp/stemdeck / startPhraseRotation

Function startPhraseRotation

static/js/job.js:42–52  ·  view source on GitHub ↗
(status)

Source from the content-addressed store, hash-verified

40}
41
42function 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
54function stopPhraseRotation() {
55 if (phraseTimerId) {

Callers 3

applyStateFunction · 0.85
importFromUrlFunction · 0.85
wireJobFormFunction · 0.85

Calls 3

stopPhraseRotationFunction · 0.85
pickPhraseFunction · 0.85
setOverlayPhraseFunction · 0.85

Tested by

no test coverage detected