Skip to content

Instantly share code, notes, and snippets.

@BurningDog
Forked from ryanlucas/Hi.jpg
Last active July 13, 2020 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BurningDog/5e23535018bb9cc74577ed0e43136ae5 to your computer and use it in GitHub Desktop.
Save BurningDog/5e23535018bb9cc74577ed0e43136ae5 to your computer and use it in GitHub Desktop.
Image Prototype Demo
Image Prototype Demo
You are here
click -> Hi
Hi
click -> You are here
function render(model){
if (model.active_states[0].image_url) {
return $("img",
{src: model.active_states[0].image_url, style: {height: "20%"}});
} else {
return "No image available."
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment