fix indent
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Stefan Schwarz 2021-12-23 21:53:57 +01:00
parent eb30a69ab6
commit e35730d75c
1 changed files with 15 additions and 15 deletions

View File

@ -1,12 +1,12 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<title> <title>
Infobeamer Infobeamer
</title> </title>
<link rel="stylesheet" href="/../../style.css"> <link rel="stylesheet" href="/../../style.css">
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
main().then(() => console.log("loaded")); main().then(() => console.log("loaded"));
@ -19,7 +19,8 @@
} }
function render(talk) { function render(talk) {
const now = Date.parse("2021-12-27T11:35:00+01:00"); // const now = new Date();
const now = Date.parse("2021-12-27T11:35:00+01:00");
const max = talk.end - talk.start; const max = talk.end - talk.start;
var value = 0; var value = 0;
if (talk.start < now && talk.end > now) { if (talk.start < now && talk.end > now) {
@ -82,7 +83,7 @@
} }
upcoming.sort((a, b) => a.end - b.end); upcoming.sort((a, b) => a.end - b.end);
for (const talk of upcoming) { for (const talk of upcoming.splice(0, 6)) {
content += render(talk); content += render(talk);
} }
@ -96,20 +97,19 @@
</script> </script>
</head> </head>
<body> <body>
<header> <header>
<nav class="nav nav-main"> <nav class="nav nav-main">
<a class="nav-logo" href="/"> <a class="nav-logo" href="/">
<img src="/../../franconianNet.svg" <img src="/../../franconianNet.svg"
alt="Logo of franconian.net">franconian.net</a> alt="Logo of franconian.net">franconian.net</a>
<hr> <hr>
<a class="nav-link" href="#" id="time"></a> <a class="nav-link" href="#" id="time"></a>
</nav> </nav>
</header> </header>
<main> <main>
<h1>running / upcoming</h1> <h1>running / upcoming</h1>
<ul class="box-grid" id="list"> <ul class="box-grid" id="list">
/ul> </ul>
</main> </main>
</body> </body>
</html> </html>