Last active
December 13, 2015 18:16
-
-
Save TimonVS/a4926c2df11aee1c6f69 to your computer and use it in GitHub Desktop.
This file contains 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
# De index van de huidige pagina | |
current = page.horizontalPageIndex(page.currentPage) | |
# Maak de eerste indicator actief | |
allIndicators[current].states.switch("active") | |
page.on "change:currentPage", -> | |
# Maak alle indicators inactief | |
indicator.states.switch("default") for indicator in allIndicators | |
current = page.horizontalPageIndex(page.currentPage) | |
# Maak de indicator van de huidige pagina actief | |
allIndicators[current].states.switch("active") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment