notblink #16
2 changed files with 2 additions and 14 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue