Benutzer:Ryuka/monoblack.js: Unterschied zwischen den Versionen

Aus GuildWiki
Wechseln zu:Navigation, Suche
 
Zeile 1: Zeile 1:
//Cursor bei Suche
+
/* autamtsiches Setzen des Cursors in die Suchleiste */
if (wgPageName == "Hauptseite" || wgPageName == "Benutzer:Ryuka"){
+
addOnloadHook(function() {
  addOnloadHook(
+
  if (wgPageName == "Hauptseite" || wgPageName == "Benutzer:Ryuka"){
     function(){document.forms.searchform.searchInput.focus();}
+
     document.forms.searchform.searchInput.focus();
  );
+
  }
}
+
});
  
//Menu-Wrapper erstellen
+
/* Menu-Wrapper erstellen */
var div = document.createElement("div");
+
addOnloadHook(function() {
div.id = "menu-wrapper";
+
  var div = document.createElement("div");
document.getElementById("column-one").appendChild(div);
+
  div.id = "menu-wrapper";
div.appendChild(document.getElementById("p-logo"));
+
  div.appendChild(document.getElementById("p-logo"));
div.appendChild(document.getElementById("p-search"));
+
  div.appendChild(document.getElementById("p-search"));
div.appendChild(document.getElementById("p-navigation"));
+
  div.appendChild(document.getElementById("p-navigation"));
div.appendChild(document.getElementById("p-partner"));
+
  div.appendChild(document.getElementById("p-partner"));
div.appendChild(document.getElementById("p-tb"));
+
  div.appendChild(document.getElementById("p-tb"));
 +
  document.getElementById("column-one").appendChild(div);
 +
});

Aktuelle Version vom 14. September 2016, 08:28 Uhr

/* autamtsiches Setzen des Cursors in die Suchleiste */
addOnloadHook(function() {
  if (wgPageName == "Hauptseite" || wgPageName == "Benutzer:Ryuka"){
    document.forms.searchform.searchInput.focus();
  }
});

/* Menu-Wrapper erstellen */
addOnloadHook(function() {
  var div = document.createElement("div");
  div.id = "menu-wrapper";
  div.appendChild(document.getElementById("p-logo"));
  div.appendChild(document.getElementById("p-search"));
  div.appendChild(document.getElementById("p-navigation"));
  div.appendChild(document.getElementById("p-partner"));
  div.appendChild(document.getElementById("p-tb"));
  document.getElementById("column-one").appendChild(div);
});