diff options
author | Andreas Müller <andreas.mueller@ost.ch> | 2021-02-21 21:43:55 +0100 |
---|---|---|
committer | Andreas Müller <andreas.mueller@ost.ch> | 2021-02-21 21:43:55 +0100 |
commit | 4a7dd262ec4b3eb0e856e18af4f7db2360e3df70 (patch) | |
tree | 2a05ae9a752f4bafee5ab90f65b54a7fe190430a /vorlesungen/stream | |
parent | add missing files (diff) | |
download | SeminarMatrizen-4a7dd262ec4b3eb0e856e18af4f7db2360e3df70.tar.gz SeminarMatrizen-4a7dd262ec4b3eb0e856e18af4f7db2360e3df70.zip |
stream stuff
Diffstat (limited to '')
-rw-r--r-- | vorlesungen/stream/countdown.html | 40 | ||||
-rw-r--r-- | vorlesungen/stream/thumbnail.jpg | bin | 0 -> 309067 bytes |
2 files changed, 40 insertions, 0 deletions
diff --git a/vorlesungen/stream/countdown.html b/vorlesungen/stream/countdown.html new file mode 100644 index 0000000..77f9ca9 --- /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("Feb 22, 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> + diff --git a/vorlesungen/stream/thumbnail.jpg b/vorlesungen/stream/thumbnail.jpg Binary files differnew file mode 100644 index 0000000..e9a5064 --- /dev/null +++ b/vorlesungen/stream/thumbnail.jpg |