Changeset 5113 in subversion
- Timestamp:
- Aug 23, 2011 8:48:15 AM (22 months ago)
- Location:
- trunk/plugins/newmail_notifier
- Files:
-
- 2 edited
-
newmail_notifier.js (modified) (2 diffs)
-
newmail_notifier.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/newmail_notifier/newmail_notifier.js
r4788 r5113 2 2 * New Mail Notifier plugin script 3 3 * 4 * @version 0. 14 * @version 0.2 5 5 * @author Aleksander Machniak <alec@alec.pl> 6 6 */ … … 51 51 function newmail_notifier_sound() 52 52 { 53 var elem, src = 'plugins/newmail_notifier/sound.wav'; 54 53 55 // HTML5 54 56 try { 55 var elem = $('<audio src="success.wav" />');57 elem = $('<audio src="' + src + '" />'); 56 58 elem.get(0).play(); 57 59 } 58 60 // old method 59 61 catch (e) { 60 var elem = $('<embed id="sound" src="success.wav" hidden=true autostart=true loop=false />');62 elem = $('<embed id="sound" src="' + src + '" hidden=true autostart=true loop=false />'); 61 63 elem.appendTo($('body')); 62 64 window.setTimeout("$('#sound').remove()", 5000); -
trunk/plugins/newmail_notifier/newmail_notifier.php
r4842 r5113 8 8 * 2. Sound - play wav file 9 9 * 10 * @version 0. 110 * @version 0.2 11 11 * @author Aleksander Machniak <alec@alec.pl> 12 12 *
Note: See TracChangeset
for help on using the changeset viewer.
