MediaWiki:Common.js: Unterschied zwischen den Versionen

Aus Stadtsprachen
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 21: Zeile 21:
$(document).ready(function () {
$(document).ready(function () {
   if(mw.config.get("wgUserName") != null){
   if(mw.config.get("wgUserName") != null){
     $('.commentsIntern').css("hide", "block");
     $('.commentsIntern').css("hidden", "block");
});
});

Version vom 30. Mai 2022, 14:30 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 () {
  if(mw.config.get("wgUserName") != null){
     $('.commentsIntern').css("hidden", "block");
});