Skip to content

Instantly share code, notes, and snippets.

@arianvp
Created October 2, 2012 19:14
Show Gist options
  • Save arianvp/3822647 to your computer and use it in GitHub Desktop.
Save arianvp/3822647 to your computer and use it in GitHub Desktop.
<script>
$(function() {
$('.item').bind('touchstart', function (e) {
$(e.srcElement).addClass('touched');
});
$('.item').bind('touchmove', function (e) {
$(e.srcElement).removeClass('touched');
});
$('.item').bind('touchend', function (e) {
$(e.srcElement).removeClass('touched');
});
});
</script>
<div ng-controller="ContactsController">
<h1>contacts</h1>
<ul>
<li class="item" ng-repeat="contact in contacts | filter:query">
<img src="http://gravatar.com/avatar/{{contact.avatar}}?s=32" />
{{contact.name}}
</li>
</ul>
</div>
<h1>Other</h1>
<div class="item logout" tap="logout()">
Logout
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment