Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
1366
_assets/javascripts/global/countdown.js
Normal file
1366
_assets/javascripts/global/countdown.js
Normal file
File diff suppressed because it is too large
Load Diff
@ -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
|
||||||
|
);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@ -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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user