()
| 94 | const offCount = new Text(); |
| 95 | |
| 96 | function updateOffCount(): void { |
| 97 | const count = countElements('.feature-checkbox:not(:checked)'); |
| 98 | switch (count) { |
| 99 | case 0: { |
| 100 | offCount.nodeValue = ''; |
| 101 | break; |
| 102 | } |
| 103 | |
| 104 | case countElements('.feature-checkbox'): { |
| 105 | offCount.nodeValue = '(JS off… are you breaking up with me?)'; |
| 106 | break; |
| 107 | } |
| 108 | |
| 109 | default: { |
| 110 | offCount.nodeValue = `(${count} off)`; |
| 111 | } |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | export default async function initFeatureList(): Promise<void> { |
| 116 | // Generate list |