Skip to content

Instantly share code, notes, and snippets.

@Martin-Pitt
Created November 8, 2018 13:34
Show Gist options
  • Save Martin-Pitt/18f393da3646ba79cf2675a3deabf8b1 to your computer and use it in GitHub Desktop.
Save Martin-Pitt/18f393da3646ba79cf2675a3deabf8b1 to your computer and use it in GitHub Desktop.
Room&
Room&
Status
Event starts within 10m -> Booked
Free
Use now -> In Use
Booked
Check in -> In Use
10m grace period -> Free
In Use
Check out -> Free
10m post-event -> Free
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`Room is ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment