-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
78 lines (63 loc) · 2.65 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Interactive Icons</title>
<meta name="description" content="Interactive Icons">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="module">
import './index.js';
registerInteractiveIcons();
</script>
</head>
<body>
<h1>Live Icons - Demo Page</h1>
<div>
<div style="width: 300px; height: 300px;">
<live-icon-light />
</div>
<input type="range" min="0" max="1" value="0" step="0.001"
oninput="document.querySelector('live-icon-light').power = this.value">
<button onclick="document.querySelector('live-icon-light').setAttribute('power', 1)">On</button>
<button onclick="document.querySelector('live-icon-light').power = 0">Off</button>
<input type="color" name="favcolor" value="#ff0000"
onchange="document.querySelector('live-icon-light').color = this.value; console.log(this.value);">
</div>
<br /><br /><br />
<div>
<div style="width: 300px; height: 300px;">
<live-icon-blind />
</div>
<input type="range" min="0" max="1" value="0" step="0.001"
oninput="document.querySelector('live-icon-blind').open = this.value">
<input type="range" min="0" max="1" value="0" step="0.001"
oninput="document.querySelector('live-icon-blind').angle = this.value">
</div>
<br /><br /><br />
<div>
<div style="width: 300px; height: 300px;">
<live-icon-meter max="9999" />
</div>
<input type="range" min="0" max="9999" value="0" step="0.001"
oninput="document.querySelector('live-icon-meter').value = this.value">
</div>
<br /><br /><br />
<div>
<div style="width: 300px; height: 300px;">
<live-icon-socket />
</div>
<button onclick="document.querySelector('live-icon-socket').setAttribute('power', 1)">On</button>
<button onclick="document.querySelector('live-icon-socket').power = 0">Off</button>
</div>
<br /><br /><br />
<div>
<div style="width: 300px; height: 300px;">
<live-icon-weather />
</div>
<button onclick="document.querySelector('live-icon-weather').status = 'sun'">Sun</button>
<button onclick="document.querySelector('live-icon-weather').status = 'cloud'">Cloud</button>
<button onclick="document.querySelector('live-icon-weather').status = 'cloud_sun'">Cloud & Sun</button>
<button onclick="document.querySelector('live-icon-weather').status = 'thunder'">Thunder</button>
</div>
</body>
</html>