fix indent
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
eb30a69ab6
commit
e35730d75c
|
@ -1,12 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<title>
|
||||
Infobeamer
|
||||
</title>
|
||||
<link rel="stylesheet" href="/../../style.css">
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<title>
|
||||
Infobeamer
|
||||
</title>
|
||||
<link rel="stylesheet" href="/../../style.css">
|
||||
<script language="javascript" type="text/javascript">
|
||||
main().then(() => console.log("loaded"));
|
||||
|
||||
|
@ -19,7 +19,8 @@
|
|||
}
|
||||
|
||||
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;
|
||||
var value = 0;
|
||||
if (talk.start < now && talk.end > now) {
|
||||
|
@ -82,7 +83,7 @@
|
|||
}
|
||||
|
||||
upcoming.sort((a, b) => a.end - b.end);
|
||||
for (const talk of upcoming) {
|
||||
for (const talk of upcoming.splice(0, 6)) {
|
||||
content += render(talk);
|
||||
}
|
||||
|
||||
|
@ -96,20 +97,19 @@
|
|||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<nav class="nav nav-main">
|
||||
<a class="nav-logo" href="/">
|
||||
<header>
|
||||
<nav class="nav nav-main">
|
||||
<a class="nav-logo" href="/">
|
||||
<img src="/../../franconianNet.svg"
|
||||
alt="Logo of franconian.net">franconian.net</a>
|
||||
<hr>
|
||||
<a class="nav-link" href="#" id="time"></a>
|
||||
</nav>
|
||||
</header>
|
||||
</nav>
|
||||
</header>
|
||||
<main>
|
||||
<h1>running / upcoming</h1>
|
||||
|
||||
<ul class="box-grid" id="list">
|
||||
/ul>
|
||||
</ul>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue