Skip to content

Instantly share code, notes, and snippets.

@bard
Last active June 19, 2019 20:03
Show Gist options
  • Save bard/e3ef78384faa301574bc871cf0d28daf to your computer and use it in GitHub Desktop.
Save bard/e3ef78384faa301574bc871cf0d28daf to your computer and use it in GitHub Desktop.
# Trivia
# Trivia
Start*
mounted -> RetrievingToken
RetrievingToken
tokenRetrieved -> Home
tokenFailure -> Error
Error
backHomeClicked -> Home
Home
beginClicked -> RetrievingQuestions
RetrievingQuestions
questionsRetrieved -> AnsweringQuestions
questionsFailure -> Error
noMoreQuestions -> Error
AnsweringQuestions
answerProvided -> AnsweringQuestions
answerProvided_lastAnswer -> ViewingResults
ViewingResults
playAgainClicked -> RetrievingQuestions
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