MediaWiki:Common.js: Difference between revisions
Content deleted Content added
Add search filtering for CPU benchmark table |
No edit summary |
||
Line 13:
table.dataset.searchInitialised = 'true';
/* Create a wrapper that follows the table's natural width */
var tableBlock = document.createElement('div');
tableBlock.className = 'benchmark-table-block';
table.parentNode.insertBefore(tableBlock, table);
tableBlock.appendChild(table);
var controls = document.createElement('div');
controls.className = 'benchmark-table-controls';
var searchWrapper = document.createElement('div');
Line 24 ⟶ 34:
input.setAttribute(
'aria-label',
'Search
);
Line 39 ⟶ 49:
searchWrapper.appendChild(clearButton);
tableBlock.insertBefore(controls, table);
var rows = Array.from(
| |||