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, throttle: 250,
unload: false 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
);
}); });

View File

@ -1,8 +1,5 @@
show: false show: true
type: warning type: info
text: > text: >
<span class="far fa-exclamation-triangle"></span> <span class="far fa-info-circle"></span>
Gehe am 2. Juni um 17 Uhr in Hamburg auf die Straße, um gegen #Uploadfilter zu protestieren. Demo startet am Noch <span id="countdown"></span> bis zur 18 Uhr Prognose der Europawahl.
Jungfernstieg und macht dann eine Runde, vorbei am Springer Hochhaus.
<a href="https://gruenejugendhamburg.de/allgemein/aufruf-zur-demo-gegen-die-urheberrechtsreform-der-eu-am-02-juli-um-17-uhr-am-jungfernstieg/">Aufruf zur Demo</a>
#SaveTheInternet #LinkTax