MediaWiki:Common.js: Unterschied zwischen den Versionen
Aus Stadtsprachen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
Zeile 20: | Zeile 20: | ||
$(document).ready(function () { | $(document).ready(function () { | ||
$('.commentsIntern').css("none", "block"); | |||
$('.commentsIntern').css(" | |||
}); | }); |
Version vom 30. Mai 2022, 14:33 Uhr
/* Das folgende JavaScript wird für alle Benutzer geladen. */
$( function () {
$( '#mw-content-text' ).on( 'click', '.newwin > a', function () {
var otherWindow = window.open();
otherWindow.opener = null;
otherWindow.location = this;
return false;
} );
} );
$( function randombg(){
var random= Math.floor(Math.random()*3)+0;
var bigSize=
["url(http://kallimachos.de/stadtsprachen/images/stadtsprachen/2/25/Vorschlag_Banner_2.jpg)",
"url(http://kallimachos.de/stadtsprachen/images/stadtsprachen/a/a0/Vorschlag_Banner.jpg)",
"url(http://kallimachos.de/stadtsprachen/images/stadtsprachen/8/81/Vorschlag_Banner_3.jpg)"];
document.getElementById("random").style.backgroundImage=bigSize[random];
});
$(document).ready(function () {
$('.commentsIntern').css("none", "block");
});