-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
124 lines (112 loc) · 5.38 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!--***************************************************************************
* Copyright (C) 2023 by Niederberger Marco *
* *
* This file is part of config.CLOCKdesign. *
* *
* config.CLOCKdesign is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* config.CLOCKdesign is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with config.CLOCKdesign. If not, see <http://www.gnu.org/licenses/>. *
******************************************************************************/
/**
* @file index.html
* @authors Niederberger Marco
*
* @brief Entry point to the config site
*
* Contains the user interface and an optional debug interface.
* The debug interface is accessible with ?debug as url parameter
*
*/-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>CLOCKdesign Konfigurator</title>
<link href="styles/style.css" rel="stylesheet" type="text/css">
<link rel="icon" type="image/x-icon" href="images/favicon.ico">
</head>
<body>
<script type="module" src="scripts/display.js"></script>
<div class="body">
<img src="images/logoWide.png" width="60%" alt="The CLOCKdesign logo">
</div>
<br>
<hr>
<h1>In vier Schritten zur neuen Zeit:</h1>
<ol>
<li>Bluetooth aktivieren</li>
<li>Vorgang per Knopfdruck starten</li>
<li>CLOCKdesign auswählen und verbinden</li>
<li>Die Zeit ihrer Uhr ist aktualisiert<br>
Weiterhin viel Freude damit!</li>
</ol>
<div class="bleDisabled">
<p>Ihr Browser oder ihr Gerät unterstützt leider kein Bluetooth... <br>
Aktuell erlauben nur Chrome, Edge und Opera den Zugriff auf die Bluetooth Schnittstelle. <br><br>
Support: <a
href="mailto:info@clockdesign.ch?subject=Konfigurator: BLE nicht unterstützt">info@clockdesign.ch</a>
</p>
</div>
<button class="button bleEnabled" id="btnUpdateTime">Uhrzeit richten</button>
<hr>
<a href="mailto:info@clockdesign.ch?subject=Frage zum Konfigurator">
<button class="button" id="btnHelp">Support</button>
</a>
<a href="https://clockdesign.ch/impressum/" target="_blank">
<button class="button" id="btnAbout">Impressum</button>
</a>
<hr class="bleEnabled">
<p class="bleEnabled">Ändern Sie die Darstellung ihrer Uhr...</p>
<div class="buttons_horizontally bleEnabled">
<button class="button" id="stateStrandtest">Blinken</button>
<button class="button" id="stateMatrix">Matrix</button>
<button class="button" id="stateWordclock">WORDclock</button>
</div>
<hr>
<div class="debugOnly bleEnabled">
<button class="button" id="toggleConnection"></button>
<div class="buttons_horizontally">
<button class="button onConnOnly" id="deviceInfo">Info</button>
<button class="button onConnOnly" id="readGitHash">GitHash</button>
<button class="button onConnOnly" id="printTime">Time</button>
</div>
<div class="buttons_horizontally">
<button class="button onConnOnly" id="readLDR">Read LDR</button>
<button class="button onConnOnly" id="readBrightness">Read brightness</button>
<button class="button onConnOnly" id="checkTime">Check time</button>
</div>
<div class="buttons_horizontally">
<button class="button onConnOnly" id="setDark">Set dark</button>
<button class="button onConnOnly" id="setBright">Set bright</button>
<button class="button onConnOnly" id="resetCalibration">Reset</button>
</div>
</div>
<div class="debugOnly">
<div class="console">
<p>Firmware: <a id="gitHash">N/A</a><br>
Version: <a id="gitTag">N/A</a><br>
Verbindungsstatus: <a id="connectionStatus">Nicht verbunden</a></p>
<textarea id="receivedData">-</textarea>
Gesendete Daten: <a id="sentData">-</a></p>
</div>
</div>
<div class="footer">
Copyright © 2023 CLOCKdesign<br>
<a href="https://github.com/CLOCKdesign/clockdesign-config/commit/DEFAULT_GITHASH"
target="_blank">DEFAULT_GITHASH</a> on
<a href="https://github.com/CLOCKdesign/clockdesign-config" target="_blank">DEFAULT_BRANCH</a>
</div>
<script type="module" src="scripts/bluetooth.js"></script>
<script type="module" src="scripts/parser.js"></script>
</body>
</html>