Skip to content

Instantly share code, notes, and snippets.

@fpapado
Last active Jul 10, 2018
Embed
What would you like to do?
Unpublished*
Unpublished*
publish -> Published
Published
unpublish -> Unpublished
event exists -> Event
no event exists -> No Event
Placeholder*
No Event
date is before season -> BeforeSeason
date is after -> AfterSeason
BeforeSeason
AfterSeason
# As it stands, this is the default. Should we have an explicit "Published Placeholder"? Is that BeforeSeason?
BetweenEvents*
Event
event is Pre -> Pre
event is Live -> Live
event is Post -> Post
Pre
time passes -> Live
Live
time passes -> Post
Post
time passes -> Placeholder
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