Benutzer:BoTeule/vector.js: Unterschied zwischen den Versionen

aus Kamelopedia, der wüsten Enzyklopädie
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(3 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt)
Zeile 3: Zeile 3:
  if (document.location.hostname.indexOf("www.") != -1 || document.location.hostname.indexOf("de.") != -1)
  if (document.location.hostname.indexOf("www.") != -1 || document.location.hostname.indexOf("de.") != -1)
{
{
    //document.location.href = "http://kamelopedia.mormo.org/index.php/"+wgPageName;
    //document.getElementById("wwwde").style.display = "inline";
    document.getElementById("wwwde").style.display = "inline";
    alert('Du wirst auf die offizielle Domain kamelopedia.mormo.org umgeleitet. Unter Umständen musst Du dich neu einloggen');
    document.location.href = "http://kamelopedia.mormo.org/index.php/"+wgPageName;
}
}
});
});

Aktuelle Version vom 2. November 2010, 17:22 Uhr

addOnloadHook(function () {

 if (document.location.hostname.indexOf("www.") != -1 || document.location.hostname.indexOf("de.") != -1)
{
     //document.getElementById("wwwde").style.display = "inline";
     alert('Du wirst auf die offizielle Domain kamelopedia.mormo.org umgeleitet. Unter Umständen musst Du dich neu einloggen');
     document.location.href = "http://kamelopedia.mormo.org/index.php/"+wgPageName;
}
});