Added countdown to website
All checks were successful
the build was successful

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2019-04-28 11:07:57 +02:00
parent 1622e0515f
commit 32dd6acf3f
3 changed files with 1385 additions and 7 deletions

File diff suppressed because it is too large Load Diff

View File

@ -32,4 +32,19 @@ $(function() {
throttle: 250,
unload: false
});
let countdownSpan = $("#countdown");
countdown.setFormat({singular: " Millisekunde| Sekunde| Minute| Stunde| Tag| Woche| Monat| Jahr| Jahrzehnt| Jahrhundert| Jahrtausend",
plural: " Millisekunden| Sekunden| Minuten| Stunden| Tage| Wochen| Monate| Jahre| Jahrzehnte| Jahrhunderte| Jahrtausende",
last: " und ",
delim: ", "});
let counterID = countdown(function(timestamp) {
countdownSpan.innerText = timestamp.toLocaleString();
}, new Date(2019, 5, 26, 18, 0),
countdown.DAYS |
countdown.HOURS |
countdown.MINUTES |
countdown.SECONDS
);
});