Codes cleaned and commented

This commit is contained in:
Miisa Ekholm
2022-10-30 21:56:31 +02:00
parent a4cd746fed
commit 34264a1913
6 changed files with 30791 additions and 704 deletions

View File

@@ -10,9 +10,12 @@
<script src="main.js" defer></script>
<script src="https://cdn.socket.io/socket.io-3.0.1.min.js"></script>
</head>
<body onload="checkUser(), checkMode(), getStartValues(), updateChart()">
<header>
<h1>ABB Ventilation Controller</h1>
<body onload="checkUser(), getStartValues(), updateChart()">
<header>
<form id="pre-reg" method="get" action="/register" style="margin-top: 10px; margin-right: 10px;">
<input id="reg" type="submit" value="Register new user">
</form>
<h1>ABB Ventilation Controller</h1>
</header>
<div class="logout">
<p id="user"></p>
@@ -132,17 +135,19 @@
</div>
<div id="user-table">
<h2>User Log History</h2>
<table>
<thead>
<tr>
<th>User</th>
<th>Login time</th>
<th>Logout time</th>
</tr>
</thead>
<tbody id="table-output">
</tbody>
</table>
<div id="log">
<table>
<thead>
<tr>
<th>User</th>
<th>Login time</th>
<th>Logout time</th>
</tr>
</thead>
<tbody id="table-output">
</tbody>
</table>
</div>
</div>
</div>
</body>