static.wiai.de/hello/index.html

50 lines
1.7 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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(4);
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/sitzung20240604?both#'
</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>