MCPcopy Create free account
hub / github.com/google/agents-cli / setActive

Function setActive

docs/src/javascripts/lifecycle.js:245–247  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

243 // Cycle the active class through cards.
244 let active = 0;
245 function setActive(i) {
246 cards.forEach((c, idx) => c.classList.toggle("lc-loop__card--active", idx === i));
247 }
248 setActive(0);
249
250 let timer = null;

Callers 2

initLoopFunction · 0.85
tickFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected