-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
91 lines (88 loc) · 3.67 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<html lang="en-GB">
<head>
<title>ThermoFlow</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="dripper.png">
<link rel="stylesheet" type="text/css" href="style.css">
<meta charset="UTF-8">
</head>
<body>
<div class="topnav">
<a href="competition.html" class="topnav-button">
<img src="competition_icon.png" alt="Button">
</a>
<h1>ThermoFlow</h1>
</div>
<div class="content">
<template id="connectedDeviceTemplate">
<div class="connected-device">
<div class="device-card device-info">
<p>
<h3>Device</h3>
<hr>
<div>Name: <span id="deviceNameField">...</span></div>
<div class="device-id">Id: <span id="deviceIdField">...</span></div>
</p>
<p>
<div>Status: <span id="connectionStatusField">...</span></div>
<button id="deviceRemoveButton" class="negative-button">Disconnect</button>
</p>
</div>
<div class="device-card device-temperature">
<p>
<h3>Temperature</h3>
<hr>
<div>Current: <span id="currentTemperatureField">...</span></div>
<div>Last update: <span id="lastTemperatureUpdateTimeField">...</span></div>
</p>
</div>
<div class="device-card device-power">
<p>
<h3>Power</h3>
<hr>
<div>Current output: <span id="currentPowerOutputField">...</span></div>
</p>
<p>
<div>Heating is: <span id="currentHeatingStateField">...</span></div>
<button id="heatingSwitchButtonOn" class="positive-button">Turn on</button>
<button id="heatingSwitchButtonOff" class="negative-button-button">Turn off</button>
</p>
</div>
<div class="device-card device-power-drop">
<p>
<h3>Power drop</h3>
<hr>
<h4>Current settings:</h4>
<div> 100% at <span id="currentPowerDropStartTemperatureField">...</span></div>
<div> 0% at <span id="currentPowerDropEndTemperatureField">...</span></div>
</p>
<p>
<h4>Configure output</h4>
<div>
100% at:
<input id="setPowerDropStartTemperatureInputField" class="set-power-drop-temp-input" type="number" step="0.1" value="60">
°C
</div>
<div>
0% at:
<input id="setPowerDropEndTemperatureInputField" class="set-power-drop-temp-input" type="number" step="0.1" value="61">
°C
</div>
<button id="setPowerDropTemperatureButton" class="neutral-button">Apply</button>
</p>
</div>
</div>
</template>
<div class="manage-connections">
<p>
<h3>Manage connections</h3>
<button id="addNewDeviceButton" class="positive-button">Add new</button>
</p>
</div>
<div class="connected-devices-container" id="connectedDevicesContainer">
</div>
</div>
</body>
<script src="main.js"></script>
</html>