MediaWiki:BloodTest.js — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 6: | Строка 6: | ||
document.querySelectorAll(".gamemode.wvw").forEach(hide); | document.querySelectorAll(".gamemode.wvw").forEach(hide); | ||
document.querySelectorAll(".gamemode.pvp").forEach(hide); | document.querySelectorAll(".gamemode.pvp").forEach(hide); | ||
+ | document.querySelectorAll(".gamemode.pve").forEach(show); | ||
function hide(elem) { | function hide(elem) { | ||
elem.style.display = "none"; | elem.style.display = "none"; | ||
+ | } | ||
+ | |||
+ | function show(elem) { | ||
+ | elem.style.display = ""; | ||
} | } | ||
})(); | })(); |
Версия 19:45, 20 мая 2018
/* Для тестирования разной фигни. * Подгружается через MediaWiki:Common.js */ (function() { document.querySelectorAll(".gamemode.wvw").forEach(hide); document.querySelectorAll(".gamemode.pvp").forEach(hide); document.querySelectorAll(".gamemode.pve").forEach(show); function hide(elem) { elem.style.display = "none"; } function show(elem) { elem.style.display = ""; } })();