Skip to content

Instantly share code, notes, and snippets.

@ryanlucas
Last active May 1, 2022 10:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save ryanlucas/261b81bec80b884d76ef184c6f938406 to your computer and use it in GitHub Desktop.
Save ryanlucas/261b81bec80b884d76ef184c6f938406 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: "100%"}});
} else {
return "No image available."
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment