I have a small program that displays a timer which shows how long it took to complete the task. Can I add sound? The timer works great but I can't seem to find a way to have it play a small wav or mp3 when the timer says Well done.
$timer.html('Well done, it took ' + $timer.html() + ' seconds!').animate({
left: gpos.left + $graph.width() - $timer.width() - 20
}, 1000);
$timer.html('Well done, it took ' + $timer.html() + ' seconds!').animate({
left: gpos.left + $graph.width() - $timer.width() - 20
}, 1000);