Added new icon to sound events console. Ticket #109 GitLab

This commit is contained in:
Arturo Gonzalez 2016-12-13 12:15:07 +01:00
parent 820ff676dc
commit 8b6caf8628
3 changed files with 3 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -95,7 +95,7 @@ echo '<a href="javascript: ok();">' .
html_print_image("images/icono_ok.png", true, array("style" => "margin-left: 15px;")) . html_print_image("images/icono_ok.png", true, array("style" => "margin-left: 15px;")) .
'</a>'; '</a>';
echo '<a href="javascript: test_sound_button();">' . echo '<a href="javascript: test_sound_button();">' .
html_print_image("images/icono_altavoz.png", true, array("id" => "button_try", "style" => "margin-left: 15px;")) . html_print_image("images/icono_test.png", true, array("id" => "button_try", "style" => "margin-left: 15px;")) .
'</a>'; '</a>';
?> ?>
@ -120,12 +120,12 @@ var test_sound = false;
function test_sound_button() { function test_sound_button() {
if (!test_sound) { if (!test_sound) {
$("#button_try").attr('src', '../../images/icono_try.png'); $("#button_try").attr('src', '../../images/icono_test_active.png');
$('body').append("<audio src='../../include/sounds/Star_Trek_emergency_simulation.wav' autoplay='true' hidden='true' loop='false'>"); $('body').append("<audio src='../../include/sounds/Star_Trek_emergency_simulation.wav' autoplay='true' hidden='true' loop='false'>");
test_sound = true; test_sound = true;
} }
else { else {
$("#button_try").attr('src', '../../images/icono_altavoz.png'); $("#button_try").attr('src', '../../images/icono_test.png');
$('body audio').remove(); $('body audio').remove();
test_sound = false; test_sound = false;
} }