MediaWiki:BloodTest.js — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 6: | Строка 6: | ||
coords = ["2px 0px", "-65px 0px", "-136px 0px", "-1px -66px", "-66px -66px", "-134px -66px"]; | coords = ["2px 0px", "-65px 0px", "-136px 0px", "-1px -66px", "-66px -66px", "-134px -66px"]; | ||
− | pumpkin. | + | pumpkin.setAttribute("class", "pumpkin"); |
− | + | pumpkin.style.backgroundPosition = coords[Math.random() * coords.length ^ 0]; | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
document.getElementById("p-logo").appendChild(pumpkin); | document.getElementById("p-logo").appendChild(pumpkin); |
Версия 15:39, 21 октября 2018
/* Для тестирования разной фигни. * Подгружается через MediaWiki:Common.js */ var pumpkin = document.createElement("div"), coords = ["2px 0px", "-65px 0px", "-136px 0px", "-1px -66px", "-66px -66px", "-134px -66px"]; pumpkin.setAttribute("class", "pumpkin"); pumpkin.style.backgroundPosition = coords[Math.random() * coords.length ^ 0]; document.getElementById("p-logo").appendChild(pumpkin);