Skip to content
This repository has been archived by the owner on Nov 17, 2018. It is now read-only.

Commit

Permalink
Add <audio> for deleting an item.
Browse files Browse the repository at this point in the history
  • Loading branch information
seven1m committed Sep 12, 2011
1 parent 1228254 commit 75e90f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.html
Expand Up @@ -45,6 +45,7 @@
// delete to do when clicking 'x'
$('.delete').live('click', function(e) {
$(e.target).parent('li').remove();
$('#delSound')[0].play();
saveTodos();
return false;
});
Expand Down Expand Up @@ -146,5 +147,9 @@
<div id="qrcode"></div>
<a href="#" class="back">back</a>
</div>
<audio id="delSound" preload>
<source src="mp3/boom.mp3"/>
<source src="mp3/boom.ogg"/>
</audio>
</body>
</html>
Binary file added mp3/boom.mp3
Binary file not shown.
Binary file added mp3/boom.ogg
Binary file not shown.

0 comments on commit 75e90f0

Please sign in to comment.