Skip to content

Instantly share code, notes, and snippets.

@yoshikischmitz
Last active May 22, 2019 05:19
Show Gist options
  • Save yoshikischmitz/f7be680a6f10cd7502aebf7c10674a95 to your computer and use it in GitHub Desktop.
Save yoshikischmitz/f7be680a6f10cd7502aebf7c10674a95 to your computer and use it in GitHub Desktop.
Loading
Loading
gps loaded -> Wait for Stores
stores loaded -> Wait for GPS
network error -> Network Error Screen
gps error -> GPS Error Screen
Wait for Stores
load stores -> Store Screen
network error -> GPS Error Screen
Wait for GPS
load gps -> Store Screen
gps error -> GPS Error Screen
Store Screen
Network Error Screen
retry -> Loading
GPS Error Screen
retry -> Loading
function render(model){
if (model.active_states[0].image_url) {
return $("img",
{src: model.active_states[0].image_url, style: {height: "400"}});
} else {
return "No image available."
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment