Gebruiker:Eve/vector.js
Opmerking: nadat u de wijzigingen hebt gepubliceerd is het wellicht nodig uw browsercache te legen.
- Firefox / Safari: houd Shift ingedrukt terwijl u op Vernieuwen klikt of druk op Ctrl-F5 of Ctrl-R (⌘-Shift-R op een Mac)
- Google Chrome: druk op Ctrl-Shift-R (⌘-Shift-R op een Mac)
- Internet Explorer / Edge: houd Ctrl ingedrukt terwijl u op Vernieuwen klikt of druk op Ctrl-F5
- Opera: druk op Ctrl-F5.
importScript('user:Sumurai8/coachscript.js');
// Description: Puts the searchbar in the left column in the Vector-skin.
// Author: meta:User:Krinkle
// Version: 1.04
// URL: http://meta.wikimedia.org/wiki/User:Krinkle/Scripts/VectorSearchNav
// Stats: Bestand:Krinkle VectorSearchNav.js
jQuery(function(){ $j = jQuery;
// Move bar to the left
$("#p-search").prependTo("#mw-panel");
$("#p-search").attr("id", "custom-search");
// Make it look better
$("#custom-search").attr("class", "portal persistent");
$("#p-navigation").removeClass("first");
$("#simpleSearch").attr("class", "body");
$("#searchInput").css("width", "90px");
// Fix up the dropdown menu
$("div.vectorMenu ul").css("right", "0");
$("#right-navigation").css("margin-right", "1em");
$("#custom-search").append('<style type="text/css">#simpleSearch label { left: 0.5em !important; } .suggestions { left: 19px !important; } </style>');
$("body > .suggestions").css("left", "19px !important").css("right", "auto !important");
//Kwikitest
$("div#simpleSearch").css("width", "130px");
$("button#searchButton").css("margin-right", "7px");
});