Difference between revisions of "MediaWiki:Common.js"

From AlHaq
Jump to navigation Jump to search
Line 6: Line 6:
 
{
 
{
  
var text = document.createTextNode(' navigators');
+
var text = document.createTextNode('<hr /> navigators');
 
var child = document.getElementById('catlinks');
 
var child = document.getElementById('catlinks');
 
child.parentNode.insertBefore(text, child);
 
child.parentNode.insertBefore(text, child);
 
}
 
}

Revision as of 07:42, 17 May 2014

/* Any JavaScript here will be loaded for all users on every page load. */

window.onload=addNavigation;

function addNavigation()
{

var text = document.createTextNode('<hr /> navigators');
var child = document.getElementById('catlinks');
child.parentNode.insertBefore(text, child);
}