public/javascripts/home.js
/*****************************************************************
* Simple Functions for the FTC Homepage (Brian Aguilar):
*
* textChange() - Changes banner text into one of many well-thought one-liners about the FTC.
* nightMode() - Changes css properties to create a dark mode
*****************************************************************/
Simple Functions for the FTC Homepage (Brian Aguilar):
textChange() - Changes banner text into one of many well-thought one-liners about the FTC.
nightMode() - Changes css properties to create a dark mode
Simple Functions for the FTC Homepage ( Brian Aguilar ) : textChange () - Changes banner text into one of many well - thought one - liners about the FTC . nightMode () - Changes css properties to create a dark mode
function textChange () {
  var bannerText = ["The Call Ends Here", "Is your phone on?", "Submit your tickets!", "Just check the Knowledge Base", "Where's Brother Wilcock?", "Mac > Windows", "Mac < Windows"];
  var num = Math.floor(Math.random() * (bannerText.length));
  document.getElementById("bText").innerHTML = '<div class="animated bounceIn">' + bannerText[num] + '</div>';
}
function textChange ( ) { var bannerText = [ "The Call Ends Here" , "Is your phone on?" , "Submit your tickets!" , "Just check the Knowledge Base" , "Where's Brother Wilcock?" , "Mac > Windows" , "Mac < Windows" ] ; var num = Math . floor ( Math . random ( ) * ( bannerText . length ) ) ; document . getElementById ( "bText" ) . innerHTML = '<div class="animated bounceIn">' + bannerText [ num ] + '</div>' ; }
Simple Functions for the FTC Homepage (Brian Aguilar):
textChange() - Changes banner text into one of many well-thought one-liners about the FTC.
Simple Functions for the FTC Homepage ( Brian Aguilar ) : textChange () - Changes banner text into one of many well - thought one - liners about the FTC .
//Array of awesome FTC inspired one-liners //Just a random number depending on amount of items in bannerText //Checking number on console //   console.log(num); //Changes HTML elements HTML to a random one-liner