mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-25 19:09:08 +02:00
2012-04-24 Miguel de Dios <miguel.dedios@artica.es>
* operation/events/sound_events.php, godmode/setup/setup.php: fixed the audio, now it uses the html5 tag. Fixes: #3472957 MERGED FROM 4.0.2 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6137 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
8c5de64b91
commit
355933a461
@ -1,3 +1,12 @@
|
|||||||
|
2012-04-24 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* operation/events/sound_events.php, godmode/setup/setup.php: fixed
|
||||||
|
the audio, now it uses the html5 tag.
|
||||||
|
|
||||||
|
Fixes: #3472957
|
||||||
|
|
||||||
|
MERGED FROM 4.0.2
|
||||||
|
|
||||||
2012-04-24 Miguel de Dios <miguel.dedios@artica.es>
|
2012-04-24 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* install.php: cleaned source code style.
|
* install.php: cleaned source code style.
|
||||||
|
@ -260,14 +260,14 @@ function toggleButton(type) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$("#button_sound_" + type).attr('src', 'images/control_pause.png');
|
$("#button_sound_" + type).attr('src', 'images/control_pause.png');
|
||||||
$('#layer_sound_' + type).html("<embed src='" + $("#sound_" + type).val() + "' autostart='true' hidden='true' loop='true'>");
|
$('#layer_sound_' + type).html("<audio src='" + $("#sound_" + type).val() + "' autoplay='true' hidden='true' loop='true'>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function replaySound(type) {
|
function replaySound(type) {
|
||||||
if ($("#button_sound_" + type).attr('src') == 'images/control_pause.png') {
|
if ($("#button_sound_" + type).attr('src') == 'images/control_pause.png') {
|
||||||
$('#layer_sound_' + type).html("");
|
$('#layer_sound_' + type).html("");
|
||||||
$('#layer_sound_' + type).html("<embed src='" + $("#sound_" + type).val() + "' autostart='true' hidden='true' loop='true'>");
|
$('#layer_sound_' + type).html("<audio src='" + $("#sound_" + type).val() + "' autoplay='true' hidden='true' loop='true'>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,12 +122,12 @@ function toggleButton() {
|
|||||||
function ok() {
|
function ok() {
|
||||||
fired = false;
|
fired = false;
|
||||||
$('body').css('background', 'white');
|
$('body').css('background', 'white');
|
||||||
$('embed').remove();
|
$('audio').remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
function stopSound() {
|
function stopSound() {
|
||||||
$('embed').remove();
|
$('audio').remove();
|
||||||
|
|
||||||
$('body').css('background', 'white');
|
$('body').css('background', 'white');
|
||||||
redBackground = false;
|
redBackground = false;
|
||||||
|
|
||||||
@ -179,7 +179,7 @@ function check_event() {
|
|||||||
id_row = firedId;
|
id_row = firedId;
|
||||||
fired = true;
|
fired = true;
|
||||||
$('embed').remove();
|
$('embed').remove();
|
||||||
$('body').append("<embed src='../../" + data['sound'] + "' autostart='true' hidden='true' loop='true'>");
|
$('body').append("<audio src='../../" + data['sound'] + "' autoplay='true' hidden='true' loop='true'>");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"json"
|
"json"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user