-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathindex.html
More file actions
55 lines (46 loc) · 1.61 KB
/
index.html
File metadata and controls
55 lines (46 loc) · 1.61 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Security-Policy" content="default-src * 'unsafe-inline' 'unsafe-eval' data: blob:;">
<link rel="stylesheet" href="style.css">
<title>Home Connect Profile Downloader</title>
</head>
<body>
<main>
<h1>Home Connect Profile Downloader</h1>
<form id="form">
<div>
<label for="region">Region:</label>
<select id="region">
<option value="EU" selected>Europe</option>
<option value="NA">North America</option>
<option value="CN">Greater China</option>
</select>
</div>
<div>
<label for="target">Target:</label>
<select id="target">
<option value="homeconnectdirect" selected>openHAB - Home Connect Direct Binding</option>
<option value="homeconnect_local_hass">Home Assistant - Home Connect Local (https://github.com/chris-mc1/homeconnect_local_hass)</option>
<option value="hcpy">hcpy (https://github.com/hcpy2-0/hcpy)</option>
</select>
</div>
<div>
<button type="button" id="submit">Fetch appliance profile data</button>
</div>
</form>
<hr />
<br />
<a href="download.html">Previous downloads</a>
</main>
<script>
document.getElementById('submit').addEventListener('click', () => {
const region = document.getElementById('region').value;
const target = document.getElementById('target').value;
window.api.sendFormData({ region, target });
});
</script>
</body>
</html>