MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 4:
$(function() {
const tables = document.getElementsByClassName("ram_rom_map");
for (letvar i = 0; i < tables.length; i++) {
const table = tables[i];
// Sort table by the first column
Line 11:
// Add the ending address to the length column
const rows = table.getElementsByTagName("tbody")[0].children;
for (letvar j = 0; j < rows.length; j++) {
const row = rows[j];
const address = row.children[0].innerText;