(index)
| 12 | const patternListItems = patternListElement.querySelectorAll('li'); |
| 13 | |
| 14 | function 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 | |
| 28 | function transitionToNamedPattern(name) { |
| 29 | const index = patternNames.findIndex(p => p.toLowerCase() === name.toLowerCase()); |
no outgoing calls
no test coverage detected