notblink #16

Merged
kleph merged 3 commits from notblink into master 2020-09-11 17:27:22 +02:00
2 changed files with 2 additions and 14 deletions

View file

@ -16,7 +16,7 @@ steps:
- name: w3c validator
image: validator/validator:latest
commands:
- vnu static/*.html
- /vnu-runtime-image/bin/vnu static/*.html
- name: markdown lint
image: pipelinecomponents/markdownlint:latest

View file

@ -31,18 +31,6 @@
<!-- Display the countdown timer in an element -->
<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>
const changeFavicon = link => {
@ -84,7 +72,7 @@ var x = setInterval(function() {
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("demo").innerHTML = "<blink>BEER TIME !</blink>";
document.getElementById("demo").innerHTML = '<span class="blink">BEER TIME !</span>';
changeFavicon('/favicon/beer')
}
}, 1000);