MediaWiki:Common.js: Unterschied zwischen den Versionen

Aus Stadtsprachen
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 20: Zeile 20:


$(document).ready(function () {
$(document).ready(function () {
     $('.comment').css("none", "block");
     $('.p').css("none", "block");
});
});

Version vom 30. Mai 2022, 17:45 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 () {
     $('.p').css("none", "block");
});