function navigation(nav){
  sessionStorage.setItem("validUser", JSON.stringify(currentUser));
  sessionStorage.setItem("userArr", JSON.stringify(userArr));
  switch(nav){
    case 0:
      window.location.href = "home.html";
      break;
    case 1:
      window.location.href = "lists.html";
      break;
    case 2:
      window.location.href = "invites.html";
      break;
    case 3:
      window.location.href = "settings.html";
      break;
    default:
      break;
  }
}
//This function assists the navigation tab in storing basic data before redirecting to another page
This function assists the navigation tab in storing basic data before redirecting to another page
This function assists the navigation tab in storing basic data before redirecting to another page
function navigation(nav){
  sessionStorage.setItem("validUser", JSON.stringify(currentUser));
  sessionStorage.setItem("userArr", JSON.stringify(userArr));
  switch(nav){
    case 0:
      window.location.href = "home.html";
      break;
    case 1:
      window.location.href = "lists.html";
      break;
    case 2:
      window.location.href = "invites.html";
      break;
    case 3:
      window.location.href = "settings.html";
      break;
    default:
      break;
  }
}
function navigation ( nav ) { sessionStorage . setItem ( "validUser" , JSON . stringify ( currentUser ) ) ; sessionStorage . setItem ( "userArr" , JSON . stringify ( userArr ) ) ; switch ( nav ) { case 0 : window . location . href = "home.html" ; break ; case 1 : window . location . href = "lists.html" ; break ; case 2 : window . location . href = "invites.html" ; break ; case 3 : window . location . href = "settings.html" ; break ; default : break ; } }
This function assists the navigation tab in storing basic data before redirecting to another page
This function assists the navigation tab in storing basic data before redirecting to another page