Compare commits

..

No commits in common. "master" and "favicon2" have entirely different histories.

2 changed files with 14 additions and 2 deletions

View file

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

View file

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