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