Skip to content

Instantly share code, notes, and snippets.

@pbouzakis
Last active December 27, 2015 02:29
Show Gist options
  • Save pbouzakis/7252404 to your computer and use it in GitHub Desktop.
Save pbouzakis/7252404 to your computer and use it in GitHub Desktop.
include /mixins
section.reader(data-bind="event: { mousemove: revealNavigationButtons }")
// ko if: itemSrc
iframe#nere-frame(data-bind="attr: { src: itemSrc }", width="100%", height="100%", frameborder="0")
// /ko
+components("flag", "pages", "$data")
div(data-winning-region="navButtons")
div(data-winning-region="readerControls")
// used to be this
section.reader(data-bind="event: { mousemove: revealNavigationButtons }")
// ko if: itemSrc
iframe#nere-frame(data-bind="attr: { src: itemSrc }", width="100%", height="100%", frameborder="0")
// /ko
.flag-container
// ko foreach: pages
// ko component: $root.flagFactory($data)
// /ko
// /ko
div(data-winning-region="navButtons")
div(data-winning-region="readerControls")
// of if rendering just one component
section.reader(data-bind="event: { mousemove: revealNavigationButtons }")
// ko if: itemSrc
iframe#nere-frame(data-bind="attr: { src: itemSrc }", width="100%", height="100%", frameborder="0")
// /ko
+component("flag", "currentFlag")
div(data-winning-region="navButtons")
div(data-winning-region="readerControls")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment