Last active
May 22, 2019 05:19
-
-
Save yoshikischmitz/f7be680a6f10cd7502aebf7c10674a95 to your computer and use it in GitHub Desktop.
Loading
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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