Merge branch 'ent-10189-mejora-visual-para-el-boton-de-testeo-de-alertas-consola-sonora' into 'develop'

blink button test sound events pandora_enterprise#10189

See merge request artica/pandorafms!5470
This commit is contained in:
Rafael Ameijeiras 2023-02-10 08:01:34 +00:00
commit 616644c3cf
2 changed files with 58 additions and 0 deletions

View File

@ -1052,8 +1052,10 @@ function openSoundEventModal(settings) {
function test_sound_button(test_sound, urlSound) {
if (test_sound === true) {
$("#button-melody_sound").addClass("blink-image");
add_audio(urlSound);
} else {
$("#button-melody_sound").removeClass("blink-image");
remove_audio();
}
}

View File

@ -301,3 +301,59 @@
background: #e63c52;
}
}
/* Firefox old*/
@-moz-keyframes blink {
0% {
opacity: 1;
}
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@-webkit-keyframes blink {
0% {
opacity: 1;
}
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}
/* IE */
@-ms-keyframes blink {
0% {
opacity: 1;
}
50% {
opacity: 0.5;
}
100% {
opacity: 1;
}
}
/* Opera and prob css3 final iteration */
@keyframes blink {
0% {
opacity: 1;
}
50% {
opacity: 0.5;
}
100% {
opacity: 1;
}
}
.blink-image {
-moz-animation: blink normal 2s infinite ease-in-out; /* Firefox */
-webkit-animation: blink normal 2s infinite ease-in-out; /* Webkit */
-ms-animation: blink normal 2s infinite ease-in-out; /* IE */
animation: blink normal 2s infinite ease-in-out; /* Opera and prob css3 final iteration */
filter: hue-rotate(120deg);
}