MediaWiki:Common.js

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

//   innerDiv.style.paddingTop = '56px'; var loader = new ContentLoader; loader.div = innerDiv; loader.callback = onSearchIconsArrival; loader.send('/index.php?title=Template:Searchicons&action=raw'); }

function onSearchIconsArrival {   var lines = this.text.split('\n'); var link = document.createElement('a'); link.href = '/index.php?title=Special:Search&adv=1'; var img = document.createElement('img'); img.alt = 'Search'; img.src = lines[rand(lines.length - 1)]; link.appendChild(img); this.div.insertBefore(link, this.div.firstChild); }