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
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.getElementById("wwwde").style.display = "inline";
    document.getElementById("wwwde").style.display = "inline";
    //document.location.href = "http://kamelopedia.mormo.org/index.php/"+wgPageName;
    document.location.href = "http://kamelopedia.mormo.org/index.php/"+wgPageName;
}
}
});
});

Version vom 2. November 2010, 17:21 Uhr

addOnloadHook(function () {

 if (document.location.hostname.indexOf("www.") != -1 || document.location.hostname.indexOf("de.") != -1)
{
     document.getElementById("wwwde").style.display = "inline";
     document.location.href = "http://kamelopedia.mormo.org/index.php/"+wgPageName;
}
});