function homeButton(){
    var nowConfirm = 0;
    var alternator = 0;
    console.log("Home Button Feature Active");
    setInterval(function(){
      nowConfirm = nowConfirm + 1000;
      if(nowConfirm >= 3000){
        nowConfirm = 0;
        if(alternator == 0) {
          alternator++;
          document.getElementById("homeNote").innerHTML = "Home";
          document.getElementById("homeNote").style.background = "#00c606";
        } else {
          alternator--;
          document.getElementById("homeNote").innerHTML = "Bought";
          document.getElementById("homeNote").style.background = "#00ad05";
        }
      }
    }, 1000);
  }
//This function activates a "toggle" on the home button to notify the user that they are on the boughtGifts page.
This function activates a "toggle" on the home button to notify the user that they are on the boughtGifts page.
This function activates a " toggle " on the home button to notify the user that they are on the boughtGifts page .
function homeButton(){
    var nowConfirm = 0;
    var alternator = 0;
    console.log("Home Button Feature Active");
    setInterval(function(){
      nowConfirm = nowConfirm + 1000;
      if(nowConfirm >= 3000){
        nowConfirm = 0;
        if(alternator == 0) {
          alternator++;
          document.getElementById("homeNote").innerHTML = "Home";
          document.getElementById("homeNote").style.background = "#00c606";
        } else {
          alternator--;
          document.getElementById("homeNote").innerHTML = "Bought";
          document.getElementById("homeNote").style.background = "#00ad05";
        }
      }
    }, 1000);
  }
function homeButton ( ) { var nowConfirm = 0 ; var alternator = 0 ; console . log ( "Home Button Feature Active" ) ; setInterval ( function ( ) { nowConfirm = nowConfirm + 1000 ; if ( nowConfirm >= 3000 ) { nowConfirm = 0 ; if ( alternator == 0 ) { alternator ++ ; document . getElementById ( "homeNote" ) . innerHTML = "Home" ; document . getElementById ( "homeNote" ) . style . background = "#00c606" ; } else { alternator -- ; document . getElementById ( "homeNote" ) . innerHTML = "Bought" ; document . getElementById ( "homeNote" ) . style . background = "#00ad05" ; } } } , 1000 ) ; }
This function activates a "toggle" on the home button to notify the user that they are on the boughtGifts page.
This function activates a " toggle " on the home button to notify the user that they are on the boughtGifts page .