Compare commits

...

5 commits

Author SHA1 Message Date
3c014f3c4d Merge pull request 'notblink' (#16) from notblink into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #16
2020-09-11 17:27:21 +02:00
7f970820d8 Fix quotes
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2020-09-11 17:14:08 +02:00
76228565aa [CI] Fix vnu path in html validator
All checks were successful
continuous-integration/drone/push Build is passing
2020-09-11 17:02:06 +02:00
3ccad58405 Try to remove blink JS
Some checks failed
continuous-integration/drone/push Build is failing
2020-09-11 16:54:43 +02:00
a51a2f8b7a Merge pull request 'favicon2' (#15) from favicon2 into master
All checks were successful
continuous-integration/drone/push Build is passing
2020-04-09 01:03:51 +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);