JSFiddle - React, Tailwind, and code Playground
HTML
<div id='video' style='display:none;width:100px;height:100px;background-color:#3AEF56'></div>
JavaScript
heureExec = '10';
minExec = '25';
timeOut = '10';
setInterval(function(){
var date = new Date();
var heure = date.getHours().toString();
var minutes = date.getMinutes().toString();
if(heure == heureExec && minutes == minExec){
if(document.getElementById('video').style.display == 'none'){
document.getElementById('video').style.display = 'block';
}
}
var end = parseInt(minExec) + parseInt(timeOut);
end = end.toString();
if(heure == heureExec && minutes == end ){
if(document.getElementById('video').style.display == 'block'){
document.getElementById('video').style.display = 'none';
}
}
},30000)