function accountLink(type) {
    if (type == "login") {
      changeText(
        "account-link",
        "Already have an account?&nbsp;<a class='login' href='#'>Log In</a>"
      );
      document.getElementById("signup-button").classList.add("submitButton");
      changeView(["reset"])
    } else {
      changeText(
        "account-link",
        "Don't have an account?&nbsp;<a class='signup' href='#'>Sign Up</a>"
      );
      changeView(["reset"], "show")
      showSignupForm = true;
      document.getElementById("login-button").classList.add("submitButton");
    } 
  }
// Provide links to alternative sign-in types
Provide links to alternative sign-in types
Provide links to alternative sign - in types
function accountLink(type) {
    if (type == "login") {
      changeText(
        "account-link",
        "Already have an account?&nbsp;<a class='login' href='#'>Log In</a>"
      );
      document.getElementById("signup-button").classList.add("submitButton");
      changeView(["reset"])
    } else {
      changeText(
        "account-link",
        "Don't have an account?&nbsp;<a class='signup' href='#'>Sign Up</a>"
      );
      changeView(["reset"], "show")
      showSignupForm = true;
      document.getElementById("login-button").classList.add("submitButton");
    } 
  }
function accountLink ( type ) { if ( type == "login" ) { changeText ( "account-link" , "Already have an account?&nbsp;<a class='login' href='#'>Log In</a>" ) ; document . getElementById ( "signup-button" ) . classList . add ( "submitButton" ) ; changeView ( [ "reset" ] ) } else { changeText ( "account-link" , "Don't have an account?&nbsp;<a class='signup' href='#'>Sign Up</a>" ) ; changeView ( [ "reset" ] , "show" ) showSignupForm = true ; document . getElementById ( "login-button" ) . classList . add ( "submitButton" ) ; } }
Provide links to alternative sign-in types
Provide links to alternative sign - in types