-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
134 lines (113 loc) · 4.07 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
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Z-Wave JS: SmartStart QR Code Generation Utility</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>Z-Wave JS: SmartStart QR Code Generation Utility</h1>
<div class="input">
<span>Version:</span>
<span>SmartStart (1)</span>
<span>Security classes:</span>
<div class="checkbox-list">
<input type="checkbox" id="security-class_s2-access" checked />
<label for="security-class_s2-access">S2 Access Control</label>
<input type="checkbox" id="security-class_s2-authenticated" checked />
<label for="security-class_s2-authenticated">S2 Authenticated</label>
<input type="checkbox" id="security-class_s2-unauthenticated" checked />
<label for="security-class_s2-unauthenticated"
>S2 Unauthenticated</label
>
<input type="checkbox" id="security-class_s0" checked />
<label for="security-class_s0">S0</label>
</div>
<label
><input type="checkbox" id="protocol" checked /> Supported
protocols:</label
>
<div class="checkbox-list">
<input type="checkbox" id="protocol_zwave" checked />
<label for="protocol_zwave">Z-Wave</label>
<input type="checkbox" id="protocol_zwlr" />
<label for="protocol_zwlr">Z-Wave Long Range</label>
</div>
<span>Device-specific key (DSK):</span>
<input
type="text"
id="dsk"
value="00000-00000-00000-00000-00000-00000-00000-00000"
/>
<span>Device class:</span>
<div class="textbox-list-3">
<label for="device-class_generic">Generic</label>
<input
type="number"
id="device-class_generic"
min="0"
max="65535"
value="0"
/>
<span id="device-class_generic_hex">0x0000</span>
<label for="device-class_specific">Specific</label>
<input
type="number"
id="device-class_specific"
min="0"
max="65535"
value="0"
/>
<span id="device-class_specific_hex">0x0000</span>
<label for="device-class_icon">Installer Icon Type</label>
<input
type="number"
id="device-class_icon"
min="0"
max="65535"
value="0"
/>
<span id="device-class_icon_hex">0x0000</span>
</div>
<span>Device fingerprint:</span>
<div class="textbox-list-3">
<label for="manufacturer-id">Manufacturer ID</label>
<input
type="number"
id="manufacturer-id"
min="0"
max="65535"
value="0"
/>
<span id="manufacturer-id_hex">0x0000</span>
<label for="product-type">Product Type</label>
<input type="number" id="product-type" min="0" max="65535" value="0" />
<span id="product-type_hex">0x0000</span>
<label for="product-id">Product ID</label>
<input type="number" id="product-id" min="0" max="65535" value="0" />
<span id="product-id_hex">0x0000</span>
<label for="version-major">App. Version (major)</label>
<input type="number" id="version-major" min="0" max="255" value="0" />
<label for="version-minor">App. Version (minor)</label>
<input type="number" id="version-minor" min="0" max="255" value="0" />
</div>
<button id="generate" class="button-9">
Generate QR Code
</button>
<div id="error-message"></div>
</div>
<div class="output">
<span>QR Code text:</span>
<textarea
readonly
id="qr-code-text"
rows="3"
value="9001346230075152535455414243444531323334352122232425001016387007680220655210100000017002880642002122232425414243444511121314153132333435"
></textarea>
<span>QR Code:</span>
<svg id="qr-code" width="384" height="384"></svg>
</div>
<script type="module" src="build/script.js"></script>
</body>
</html>