Spacebound Angel

Home

Random Header Message

I made this little bit of script to show random header messages every time a page is loaded, kinda inspired by the minecraft title screen. Refresh the page a couple times to see what I mean.

function SetTagline() {
  const taglines = [
   'Stay as long as you like :)',
   'The human body is 60% Uranium',
   'Have you ever seen a ghost?',
   'Remember to drink water!'
  ];
  
  const selectedTagline =
    taglines[Math.floor(Math.random() * 1000) % taglines.length];
  
  document.getElementById('HeaderTagline')
    .innerHTML = selectedTagline;
}

SetTagline();