Skip to content

Instantly share code, notes, and snippets.

@j-funk
Last active May 26, 2021 18:02
Show Gist options
  • Save j-funk/1c9fff7e58fc9fce2766588ef57c2990 to your computer and use it in GitHub Desktop.
Save j-funk/1c9fff7e58fc9fce2766588ef57c2990 to your computer and use it in GitHub Desktop.
Computer Off
Computer Off
toggle computer -> Computer On
Computer On&
toggle computer -> Computer Off
Audio
Audio On
toggle audio -> Audio Off
Audio Off
toggle audio -> Audio On
Video
Video On
toggle video -> Video Off
Video Off
toggle video -> Video On
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