MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
document.addEventListener("DOMContentLoaded", function () { | |||
var toc = document.getElementById("toc"); | |||
var guidesSection = document.getElementById("p-Guides"); | |||
if (toc && guidesSection) { | |||
guidesSection.parentNode.insertBefore(toc, guidesSection); | |||
} | } | ||
}); | }); |