diff options
author | Andreas Müller <andreas.mueller@ost.ch> | 2022-02-20 22:16:51 +0100 |
---|---|---|
committer | Andreas Müller <andreas.mueller@ost.ch> | 2022-02-20 22:16:51 +0100 |
commit | dac4d84284195a9293b210331a696b1ff591819e (patch) | |
tree | dba350e1f387ad507910cb965fc4aff62bb0c968 /vorlesungen | |
parent | add slides (diff) | |
download | SeminarSpezielleFunktionen-dac4d84284195a9293b210331a696b1ff591819e.tar.gz SeminarSpezielleFunktionen-dac4d84284195a9293b210331a696b1ff591819e.zip |
add thumbnail
Diffstat (limited to 'vorlesungen')
-rw-r--r-- | vorlesungen/01_start/MathSem-01-start.tex | 9 | ||||
-rw-r--r-- | vorlesungen/stream/countdown.html | 46 | ||||
-rw-r--r-- | vorlesungen/stream/thumbnail.jpg | bin | 182814 -> 205666 bytes |
3 files changed, 46 insertions, 9 deletions
diff --git a/vorlesungen/01_start/MathSem-01-start.tex b/vorlesungen/01_start/MathSem-01-start.tex index f0be577..254bb60 100644 --- a/vorlesungen/01_start/MathSem-01-start.tex +++ b/vorlesungen/01_start/MathSem-01-start.tex @@ -8,11 +8,16 @@ \setboolean{presentation}{true} \begin{document} \begin{frame} -%\vspace{-2cm} +\begin{columns} +\begin{column}{0.48\textwidth} +\titlepage +\end{column} +\begin{column}{0.48\textwidth} \begin{center} \includegraphics[width=6cm]{../../cover/front.png} \end{center} -%\titlepage +\end{column} +\end{columns} \end{frame} \input{slides.tex} \end{document} diff --git a/vorlesungen/stream/countdown.html b/vorlesungen/stream/countdown.html index 12f99ac..99e1197 100644 --- a/vorlesungen/stream/countdown.html +++ b/vorlesungen/stream/countdown.html @@ -17,15 +17,47 @@ color: #990000; <body> <div id="demo"></div> <script> -var deadline = new Date("May 17, 2021 17:00:00").getTime(); +var deadline = 0; + +function checkfor(d) { + let now = new Date().getTime(); + let ds = new Date().toDateString().substr(0, 17) + " " + d + ":00"; + console.log("time string: " + ds); + let start = new Date(ds).getTime(); + console.log("now: " + now); + if ((start > now) && ((start-now) < 1800000)) { + deadline = start; + console.log("set deadline to: " + ds); + } else { + console.log("skipping: " + ds); + } +} + +checkfor("08:10"); +checkfor("09:05"); +checkfor("10:10"); +checkfor("11:05"); +checkfor("12:10"); +checkfor("13:10"); +checkfor("14:05"); +checkfor("15:10"); +checkfor("16:05"); +checkfor("17:00"); +checkfor("17:55"); +checkfor("19:00"); + +checkfor("21:41"); +checkfor("22:40"); +checkfor("23:10"); + var x = setInterval(function() { -var now = new Date().getTime(); -var t = deadline - now; +let now = new Date().getTime(); +let 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); + let days = Math.floor(t / (1000 * 60 * 60 * 24)); + let hours = Math.floor((t%(1000 * 60 * 60 * 24))/(1000 * 60 * 60)); + let minutes = Math.floor((t % (1000 * 60 * 60)) / (1000 * 60)); + let seconds = Math.floor((t % (1000 * 60)) / 1000); document.getElementById("demo").innerHTML = ("00" + minutes).slice(-2) + ":" + ("00" + seconds).slice(-2); } else { diff --git a/vorlesungen/stream/thumbnail.jpg b/vorlesungen/stream/thumbnail.jpg Binary files differindex 9eef656..f2335a8 100644 --- a/vorlesungen/stream/thumbnail.jpg +++ b/vorlesungen/stream/thumbnail.jpg |