MediaWiki:Common.js: Różnice pomiędzy wersjami
Przejdź do nawigacji
Przejdź do wyszukiwania
Nie podano opisu zmian |
oauth2 |
||
(Nie pokazano 3 pośrednich wersji utworzonych przez tego samego użytkownika) | |||
Linia 1: | Linia 1: | ||
$(function () { | $(function () { | ||
if (location.href.includes('3meraldK')) { | if (location.href.includes('3meraldK')) { | ||
var 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'; | |||
window.onwheel = function () { | |||
if (audio.currentTime <= 0) audio.play(); | |||
}; | |||
} | } | ||
}()) | }()); | ||
$('li#pt-anon_oauth_login a').click(function(){ | |||
articlePath = mw.config.get('wgArticlePath'); | |||
url = articlePath.replace('$1', 'Special:OAuth2Client/redirect?returnto=Special:OAuth2Client/close'); | |||
var left = (screen.width/2) - 200; | |||
var above = (screen.height/2) - 200; | |||
newwindow = window.open(url, "_blank", "resizable=yes, scrollbars=yes, titlebar=yes, width=400, height=400, top="+above+", left="+left); | |||
return false; | |||
}) | |||
if (mw.config.get('wgTitle') == 'OAuth2Client/close') { | |||
window.opener.location.reload(); | |||
window.close(); | |||
} |
Aktualna wersja na dzień 17:32, 3 wrz 2024
$(function () { if (location.href.includes('3meraldK')) { var 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'; window.onwheel = function () { if (audio.currentTime <= 0) audio.play(); }; } }()); $('li#pt-anon_oauth_login a').click(function(){ articlePath = mw.config.get('wgArticlePath'); url = articlePath.replace('$1', 'Special:OAuth2Client/redirect?returnto=Special:OAuth2Client/close'); var left = (screen.width/2) - 200; var above = (screen.height/2) - 200; newwindow = window.open(url, "_blank", "resizable=yes, scrollbars=yes, titlebar=yes, width=400, height=400, top="+above+", left="+left); return false; }) if (mw.config.get('wgTitle') == 'OAuth2Client/close') { window.opener.location.reload(); window.close(); }