Skip to content

Instantly share code, notes, and snippets.

@Iheartweb
Created February 1, 2012 05:04
Show Gist options
  • Select an option

  • Save Iheartweb/1715207 to your computer and use it in GitHub Desktop.

Select an option

Save Iheartweb/1715207 to your computer and use it in GitHub Desktop.
Lu Example: Carousl observer with button notifier
<ol id="whirly-woo" data-lu="Carousel" class="carousel" data-lu-config="{
'Carousel': {
observe: '#whirly-previous'
}
}">
<li class="one lu-selected">One</li>
<li class="two">Two</li>
<li class="three">Three</li>
<li class="four">Four</li>
<li class="five">Five</li>
</ol>
<button type="button" data-lu="Button:Next" data-lu-config="{
'Button:Next': {
notify: '#whirly-woo'
}
}">Next</button>
<button id="whirly-previous" type="button" data-lu="Button:Previous">Previous</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment