50 lines
1.7 KiB
HTML
50 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="de">
|
||
<head>
|
||
<title>Weiterleitung</title>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"/>
|
||
</head>
|
||
<style>
|
||
body {
|
||
height: 100vh;
|
||
width: 100vw;
|
||
overflow: hidden;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-family: "Myriad Pro", "Lucida Grande", "Trebuchet MS", sans-serif;
|
||
background: url(./images/square_bg.png) repeat top left;
|
||
}
|
||
|
||
p {
|
||
margin-top: 2rem;
|
||
}
|
||
</style>
|
||
<body>
|
||
<script>
|
||
function getNextDayOfWeek(dayOfWeek) {
|
||
// reference: https://codereview.stackexchange.com/questions/33527/find-next-occurring-friday-or-any-dayofweek
|
||
var date = new Date();
|
||
date.setDate(date.getDate() + (7 + dayOfWeek - date.getDay()) % 7);
|
||
return date;
|
||
}
|
||
|
||
// TODO: If the meeting does not happen on Tuesday, change 2 to whatever weekday we need.
|
||
let date = getNextDayOfWeek(2);
|
||
let year = date.getFullYear();
|
||
let month = date.getMonth() > 8 ? (date.getMonth()+1) : '0' + (date.getMonth()+1);
|
||
let day = date.getDate() > 9 ? date.getDate() : '0' + date.getDate();
|
||
let redirectLocation = `https://hackmd.stuve-bamberg.de/sitzung${year}${month}${day}?both`;
|
||
// window.location.href = redirectLocation;
|
||
window.location.href = 'https://hackmd.stuve-bamberg.de/sitzung20250107'
|
||
</script>
|
||
<img src="https://files.stuve-bamberg.de/logo_transparent.png" width="200px"/>
|
||
<noscript><p>Diese Seite funktioniert ggf. nur mit JavaScript.</p></noscript>
|
||
<!--p>Sie werden in Kürze weitergeleitet.</p-->
|
||
<p>There ain't no nothing here.</p>
|
||
</body>
|
||
</html>
|