MCPcopy Create free account
hub / github.com/collidingScopes/iron-interface / highlightActivePattern

Function highlightActivePattern

voice-control.js:14–26  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

12const patternListItems = patternListElement.querySelectorAll('li');
13
14function highlightActivePattern(index) {
15 patternListItems.forEach((item, i) => {
16 if (i === index) {
17 item.style.color = '#f700ff';
18 item.style.fontSize = '32px';
19 item.style.fontWeight = 'bold';
20 } else {
21 item.style.color = '#ffffff';
22 item.style.fontSize = '18px';
23 item.style.fontWeight = 'normal';
24 }
25 });
26}
27
28function transitionToNamedPattern(name) {
29 const index = patternNames.findIndex(p => p.toLowerCase() === name.toLowerCase());

Callers 2

transitionToNamedPatternFunction · 0.85
voice-control.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected