|
Lines 438-445
Link Here
|
| 438 |
function playSound( sound ) { |
438 |
function playSound( sound ) { |
| 439 |
if (!(sound.indexOf("http://") === 0 || sound.indexOf("https://") === 0)) { |
439 |
if (!(sound.indexOf("http://") === 0 || sound.indexOf("https://") === 0)) { |
| 440 |
sound = '[% interface | html %]' + '/bootstrap/sound/' + sound; |
440 |
sound = '[% interface | html %]' + '/bootstrap/sound/' + sound; |
| 441 |
document.getElementById("audio-alert").innerHTML = '<audio src="' + sound + '" autoplay="autoplay" autobuffer="autobuffer"></audio>'; |
|
|
| 442 |
} |
441 |
} |
|
|
442 |
document.getElementById("audio-alert").innerHTML = '<audio src="' + sound + '" autoplay="autoplay" autobuffer="autobuffer"></audio>'; |
| 443 |
} |
443 |
} |
| 444 |
[% END %] |
444 |
[% END %] |
| 445 |
|
445 |
|
| 446 |
- |
|
|