Last active
May 24, 2020 17:15
-
-
Save steveruizok/aa491c142c60029b84fecd51822a9e00 to your computer and use it in GitHub Desktop.
Mobile Gallery
This file contains hidden or 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
Mobile Gallery | |
Gallery Closed* | |
clicked image -> Gallery Open | |
Gallery Open | |
clicked-close -> Gallery Closed | |
Image View* | |
clicked prev -> Image View | |
clicked next -> Image View | |
clicked grid button -> Grid View | |
Zoomed-Out* | |
clicked zoom button -> Zoomed-In | |
pinched in -> Zoomed-In | |
swiped horizontal -> Zoomed-Out | |
swiped vertical -> Far Enough Swipe? | |
Zoomed-In | |
clicked zoom button -> Zoomed-Out | |
pinched out -> Zoomed-Out | |
Far Enough Swipe? | |
yes -> Gallery Closed | |
no -> Image View | |
Grid View | |
clicked image -> Image View | |
clicked grid button -> Image View |
This file contains hidden or 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){ | |
let current_state_name = model.active_states[0].name | |
return $("h1", | |
{style: {color: "darkBlue"}}, | |
`The current state is: ${current_state_name}`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment