Visual alert Command

Hello wizeboters!

I’m havig some problems with visual alert.
Actually i can use the " kappa odyssey" command. All is ok.
But i’m not a coder at all. ( i’m the visual guy… )
How can i have a visual alert, playing a static webm video, ( whitout the translation from the bottom of the page)?
Or, at least, a Gif + a sound but static?
If anyone can help, i will be so gratefull ^^

Vell done anyway wizebot team for this great tool!

No? Nobody can help me? ^^

Hello,
Here are some “examples”:

Exemple #1 (Gif):

var max_seconds = 10;
var img = "https://media.giphy.com/media/4no7ul3pa571e/giphy.gif";

setTimeout(function() {
     $(".img_gif").animate({
        opacity: 0
     }, 8000, function() { setRefresh(); });
}, (max_seconds*1000));

$(".screen_div").html("<img class='img_gif' src='" + img + "' style='position: absolute; right: 100px; bottom: 100px; width: 500px;' />");

Exemple #2 (Webm):

var max_seconds = 10;
var webm = "http://video.webmfiles.org/big-buck-bunny_trailer.webm";

setTimeout(function() {
     $(".video").animate({
        opacity: 0
     }, 8000, function() { setRefresh(); });
},  (max_seconds*1000));

$(".screen_div").html("<video class='video' autoplay src='" + webm + "' style='position: absolute; right: 100px; bottom: 100px; width: 500px;'></video>");
3 Likes

ah cool! Thank you! Now i know webm video can be used! thank yoooouuuu!

1 Like

This post has been closed. Please contact a moderator if you have questions!