jQuery: HTML5 Gmail notifier

Today I played a little bit with jQuery and the HTML5 audio element to create a simple Gmail notifier than not only displays a bubble box, but also plays a sound when the bubble is displayed. It works fine in Firefox, Safari, Chrome and Opera, that is, in all the browsers that correctly support the play() method of the HTML5 audio interface. I can't test it in IE 9, so if you can do it, please let me know the results. When the document loads, the bubble takes two seconds to be displayed thanks to the setTimeout() function. Enjoy! smile

Live demo

jQuery: HTML5 Gmail notifier

Download

ZIP file

Gmail under attack

In the last hours many Gmail accounts have been compromised (including mine) and used to send spam. I had to reconfigure my account after recovering it. Too bad. Even my Blogger account was affected and blocked by Google to prevent attackers from inserting malicious code. Too bad. I'll probably have to switch to another mail account, less known but more secure.