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

aus Kamelopedia, der wüsten Enzyklopädie
Zur Navigation springen Zur Suche springen
Die Seite wurde neu angelegt.
 
Keine Bearbeitungszusammenfassung
 
(4 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt)
Zeile 1: Zeile 1:
addOnloadHook(function () {
addOnloadHook(function () {
alert(document.location.hostname.indexOf('www.'));
 
  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").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;
}
});