Skip to content

Instantly share code, notes, and snippets.

@skamithi
Created July 19, 2013 12:50
Show Gist options
  • Save skamithi/6038899 to your computer and use it in GitHub Desktop.
Save skamithi/6038899 to your computer and use it in GitHub Desktop.
notifies user that they tapped on a button.... Work in progress..
# 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