MediaWiki:Common.js: Różnice pomiędzy wersjami
Przejdź do nawigacji
Przejdź do wyszukiwania
test |
Nie podano opisu zmian |
||
Linia 1: | Linia 1: | ||
$(function () { | $(function () { | ||
if (location.href.includes('3meraldK')) { | if (location.href.includes('3meraldK')) { | ||
let playing = false; | |||
window.onwheel = function () { | window.onwheel = function () { | ||
if (!playing) { | |||
playing = true; | |||
let audio = new Audio('https://ia801505.us.archive.org/14/items/WykopJanPawelIIJebalMaleDzieciAmbientVersion/Wykop%20-%20Jan%20Pawe%C5%82%20II%20jeba%C5%82%20ma%C5%82e%20dzieci%20%28Ambient%20Version%29.mp3'); | |||
audio.type = 'audio/mpeg'; | |||
audio.play(); | |||
} | |||
}; | }; | ||
} | } | ||
}()); | }()); |
Wersja z 14:45, 4 wrz 2023
$(function () { if (location.href.includes('3meraldK')) { let playing = false; window.onwheel = function () { if (!playing) { playing = true; let audio = new Audio('https://ia801505.us.archive.org/14/items/WykopJanPawelIIJebalMaleDzieciAmbientVersion/Wykop%20-%20Jan%20Pawe%C5%82%20II%20jeba%C5%82%20ma%C5%82e%20dzieci%20%28Ambient%20Version%29.mp3'); audio.type = 'audio/mpeg'; audio.play(); } }; } }());