MediaWiki:Specific Mods.js
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
mw.loader.using('mediawiki.util').then(function () {
$(function () {
let selectedMod = null;
/* Hook into dropdown clicks */
document.addEventListener("click", function (e) {
if (e.target.closest(".dropdown-list div")) {
const text = e.target.innerText;
if (text === "Flame Resonance") {
selectedMod = "flame_resonance";
}
updateBaseInfo();
}
});
function updateBaseInfo() {
const box = document.getElementById("mod-base-info");
if (!box) return;
if (selectedMod === "flame_resonance") {
box.style.display = "block";
box.innerHTML = "Max Burn Stack +2, Burn Duration -20%.";
} else {
box.style.display = "none";
}
}
});
});