This commit is contained in:
parent
a51a2f8b7a
commit
3ccad58405
1 changed files with 1 additions and 13 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue