Try to remove blink JS
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
kleph 2020-09-11 16:54:43 +02:00
parent a51a2f8b7a
commit 3ccad58405

View file

@ -31,18 +31,6 @@
<!-- Display the countdown timer in an element --> <!-- Display the countdown timer in an element -->
<p id="demo"></p> <p id="demo"></p>
<script>
(function() {
var blinks = document.getElementsByTagName('blink');
var visibility = 'hidden';
window.setInterval(function() {
for (var i = blinks.length - 1; i >= 0; i--) {
blinks[i].style.visibility = visibility;
}
visibility = (visibility === 'visible') ? 'hidden' : 'visible';
}, 250);
})();
</script>
<script> <script>
const changeFavicon = link => { const changeFavicon = link => {
@ -84,7 +72,7 @@ var x = setInterval(function() {
// If the count down is finished, write some text // If the count down is finished, write some text
if (distance < 0) { if (distance < 0) {
clearInterval(x); clearInterval(x);
document.getElementById("demo").innerHTML = "<blink>BEER TIME !</blink>"; document.getElementById("demo").innerHTML = "<span class="blink">BEER TIME !</span>";
changeFavicon('/favicon/beer') changeFavicon('/favicon/beer')
} }
}, 1000); }, 1000);