MediaWiki:Common.js/customInterface.js

//==================================== //           Random image //==================================== /* Display a random image in the   */ /* Wikia Rail (Oasis)              */ /* Images list */ var WikiaRailImageArray = new Array; WikiaRailImageArray[0] = ""; WikiaRailImageArray[1] = ""; WikiaRailImageArray[2] = ""; WikiaRailImageArray[3] = ""; WikiaRailImageArray[4] = ""; WikiaRailImageArray[5] = ""; WikiaRailImageArray[6] = ""; WikiaRailImageArray[7] = ""; WikiaRailImageArray[8] = ""; /* Choosing the image */ var chosenWikiaRailImage = Math.round(Math.random * (WikiaRailImageArray.length - 1)); /* Adding the image */ $('#WikiaRail').append(WikiaRailImageArray[chosenWikiaRailImage]);