Skip to content

Instantly share code, notes, and snippets.

@iFwu
Forked from ryanlucas/Hi.jpg
Last active August 7, 2020 07:50
Show Gist options
  • Save iFwu/afefe4694a3178881045e12f534c74d4 to your computer and use it in GitHub Desktop.
Save iFwu/afefe4694a3178881045e12f534c74d4 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