User:Valoeghesepedia/common.js

function displayLink {       var locations = document.getElementsByTagName("a"); var asdfm; var aLinkHolder; for (asdfm = 0; asdfm < locations.length; asdfm++) { aLinkHolder = locations[asdfm].innerHTML; var href = locations[asdfm].href; aLinkHolder = aLinkHolder + " [" + href + "] "; locations[asdfm].innerHTML = aLinkHolder; } //for each a tag add the link in subscript };

function ruinLogo {       var logoUrl = "https://static1.squarespace.com/static/5834a8848419c2625bdd5b05/t/5834cc18579fb34d13df62f1/1479855239117/MAGS-logo.jpg?format=750w"; var theHeader = document.getElementsByClassName("branding-box"); var newHeader = "  "; theHeader[0].innerHTML = newHeader; };

function improveTitle {       var titles = document.getElementsByTagName("title"); titles[0].innerHTML = "Heil Gibbs"; };

function betterSearch {       var searchbarr = document.getElementById("searchInput"); searchbarr.placeholder = "Search the vast database of MAGS"; };

function onLoadDo {       ruinLogo; //displayLink; improveTitle; betterSearch; };

window.addEventListener("load", onLoadDo);