th7/templates/index.tmpl

93 lines
2.0 KiB
Cheetah
Raw Normal View History

2022-12-08 10:53:25 +00:00
{{ define "page_index" }}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2023-11-22 11:35:15 +00:00
<title>{{.title}}</title>
<style>
body {
font-family: 'Arial', sans-serif;
margin: 20px;
background-color: #f2f2f2;
}
h1 {
text-align: center;
color: #333;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
th, td {
padding: 12px;
2023-11-22 15:47:28 +00:00
text-align: center;
2023-11-22 11:35:15 +00:00
border-bottom: 1px solid #ddd;
}
th {
background-color: #4CAF50;
color: #fff;
}
#vdd, #vref, #vadj, #timestamp {
margin-top: 20px;
color: #333;
}
#thermocouple {
margin-top: 20px;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
#thermocouple td {
min-width: 6rem;
text-align: center;
}
</style>
2022-12-08 10:53:25 +00:00
</head>
<body>
<h1>TH7</h1>
2023-11-22 11:35:15 +00:00
2022-12-08 10:53:25 +00:00
<table id="data">
2023-11-22 11:35:15 +00:00
<thead>
<tr>
<th>Channel</th>
<th>Value</th>
</tr>
</thead>
2022-12-08 10:53:25 +00:00
</table>
2023-11-22 11:35:15 +00:00
2022-12-08 10:53:25 +00:00
<p id="vdd">V<sub>DD</sub>:</p>
<p id="vref">V<sub>REF</sub>:</p>
<p id="vadj">V<sub>ADJ</sub>:</p>
<p id="timestamp">Last updated:</p>
2023-11-22 11:35:15 +00:00
<h2>Thermocouple config</h2>
<table id="thermocouple">
<thead>
<tr>
<th>Channel</th>
<th>Type</th>
<th>Gain</th>
<th>Offset</th>
<th>Filter size</th>
<th>Filter type</th>
</tr>
</thead>
</table>
2022-12-08 10:53:25 +00:00
<script src="/assets/data-updater.js"></script>
</body>
</html>
2023-11-22 11:35:15 +00:00
{{ end }}