Skip to content

Instantly share code, notes, and snippets.

@grahaml
Last active October 23, 2018 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahaml/0b4c7d904260f2e65fe9d3df18d6673e to your computer and use it in GitHub Desktop.
Save grahaml/0b4c7d904260f2e65fe9d3df18d6673e to your computer and use it in GitHub Desktop.
Login Form
Login Form
Inactive *
focus email -> Email
focus password -> Password
Active
Email
focus password -> Password
Email Empty*
type -> Email Filled
Email Filled
validate failed -> Email Invalid
Email Invalid
clear text -> Email Empty
type -> Email Filled
Password
focus email -> Email
Password Empty*
type -> Email Filled
Password Filled
validate failed -> Email Invalid
Password Invalid
clear text -> Email Empty
type -> Email Filled
Submitting
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment