aboutsummaryrefslogtreecommitdiffstats
path: root/vorlesungen/stream/countdown.html
diff options
context:
space:
mode:
authorAndreas Müller <andreas.mueller@ost.ch>2021-09-28 14:27:37 +0200
committerAndreas Müller <andreas.mueller@ost.ch>2021-09-28 14:27:37 +0200
commit1a8e870f8f4c7e9d402ab7b867699ed999fec7dc (patch)
tree153f3c8d24c580db8c19ffc30d5879bd50705536 /vorlesungen/stream/countdown.html
parentanalogie-Abschnitt (diff)
downloadSeminarSpezielleFunktionen-1a8e870f8f4c7e9d402ab7b867699ed999fec7dc.tar.gz
SeminarSpezielleFunktionen-1a8e870f8f4c7e9d402ab7b867699ed999fec7dc.zip
slide infrastructure for MathSem
Diffstat (limited to 'vorlesungen/stream/countdown.html')
-rw-r--r--vorlesungen/stream/countdown.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/vorlesungen/stream/countdown.html b/vorlesungen/stream/countdown.html
new file mode 100644
index 0000000..12f99ac
--- /dev/null
+++ b/vorlesungen/stream/countdown.html
@@ -0,0 +1,40 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<style>
+p {
+text-align: center;
+font-size: 60px;
+}
+div {
+font-family: "Courier";
+text-align: center;
+font-size: 60px;
+color: #990000;
+}
+</style>
+</head>
+<body>
+<div id="demo"></div>
+<script>
+var deadline = new Date("May 17, 2021 17:00:00").getTime();
+var x = setInterval(function() {
+var now = new Date().getTime();
+var t = deadline - now;
+if (t > 0) {
+ var days = Math.floor(t / (1000 * 60 * 60 * 24));
+ var hours = Math.floor((t%(1000 * 60 * 60 * 24))/(1000 * 60 * 60));
+ var minutes = Math.floor((t % (1000 * 60 * 60)) / (1000 * 60));
+ var seconds = Math.floor((t % (1000 * 60)) / 1000);
+ document.getElementById("demo").innerHTML
+ = ("00" + minutes).slice(-2) + ":" + ("00" + seconds).slice(-2);
+} else {
+ document.getElementById("demo").innerHTML = "00:00";
+}
+}, 1000);
+
+</script>
+
+</body>
+</html>
+