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 - name: w3c validator
image: validator/validator:latest image: validator/validator:latest
commands: commands:
- /vnu-runtime-image/bin/vnu static/*.html - vnu static/*.html
- name: markdown lint - name: markdown lint
image: pipelinecomponents/markdownlint:latest image: pipelinecomponents/markdownlint:latest

View file

@ -31,6 +31,18 @@
<!-- 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 => {
@ -72,7 +84,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 = '<span class="blink">BEER TIME !</span>'; document.getElementById("demo").innerHTML = "<blink>BEER TIME !</blink>";
changeFavicon('/favicon/beer') changeFavicon('/favicon/beer')
} }
}, 1000); }, 1000);