Created
July 19, 2013 12:50
-
-
Save skamithi/6038899 to your computer and use it in GitHub Desktop.
notifies user that they tapped on a button.... Work in progress..
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
# Requires jquery.hammer.js | |
# Requires wiselinks | |
# Add class 'tapit' to any clickable element on the page | |
tapAction = (element) -> | |
$(element).hammer().on 'tap', -> | |
$(this).fadeOut { | |
duration: 200 | |
} | |
$(this).fadeIn { | |
duration: 200 | |
} | |
$(document).ready tapAction('.tapit') | |
$(document).on 'page:done' -> | |
tapAction('.tapit') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment