var vals = [ `

{dev}Osan

Software Development Club

`, //Original `

{dev}Osan

Software Development Club

`, //By Sig ]; var vals2 = [ `{dev}Osan`, //Original `{dev}Osan`, //By Sig ]; window.onload=generateLogo(Math.floor(Math.random()*vals.length)); function generateLogo(numb) { document.getElementById("devOsanLogo-dynamic").innerHTML=vals[numb]; document.getElementById("devOsanMiniLogo-dynamic").innerHTML=vals2[numb]; } $(function(){ var navMain = $(".navbar-collapse"); navMain.on("click","a:not([data-toggle])",null,function(){navMain.collapse('hide');}); });