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