(table)
| 150 | }) |
| 151 | } |
| 152 | function initializeTable(table) { |
| 153 | if (table.hasAttribute('data-gradient-initialized')) return |
| 154 | table.setAttribute('data-gradient-initialized', 'true') |
| 155 | const columnCount = table.rows[0]?.cells.length || 0 |
| 156 | for (let col = 0; col < columnCount; col++) { |
| 157 | applyGradientToColumn(table, col) |
| 158 | } |
| 159 | } |
| 160 | function initializeTables() { |
| 161 | document.querySelectorAll('table:not([data-gradient-initialized])').forEach(initializeTable) |
| 162 | } |
nothing calls this directly
no test coverage detected