forked from gongfudev/happui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_rf.html
67 lines (60 loc) · 1.79 KB
/
index_rf.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
<!doctype html>
<html lang="en-GB">
<head>
<title>index_rf.html</title>
<meta charset="utf-8">
<style>
body { background: #fafafa; }
#happ-ui-variants { background: #46738d;}
#happ-ui-variants, #happuiexp { background: #000;}
.hint {
color: white;
padding: 0.5em 1em;
font-size: 12px;
font-family: "Lucida Console", Monaco, monospace;
}
happ-ui-exp { width: 45%; height: 45%;
margin: 5%; }
happ-ui { width: 45%; height: 45%; }
happ-ui-dragme { width: 45%; height: 45%; }
happ-contactsheet { width: 100%; height: 100%; }
</style>
</head>
<body>
<!-- experimental -->
<div id="happuiexp">
<p class="hint">select
<select name="select-variant" id="select-variant">
<option value="wheel4">wheel4</option>
<option value="wheel3b">wheel3b</option>
<option value="wheel3a">wheel3a</option>
<option value="wheel2">wheel2</option>
<option value="wheel1">wheel1</option>
</select>
</p>
<happ-ui-exp id="happuiwheel" variant="wheel4"></happ-ui-exp>
<script>
const happuiwheel = document.getElementById('happuiwheel');
document.getElementById('select-variant').addEventListener('change', (e) => {
happuiwheel.setAttribute('variant', e.target.value);
});
</script>
</div>
<!-- variants <happ-ui-dragme> <happ-ui> -->
<div id="happ-ui-variants">
<p class="hint">drag my circle</p>
<happ-ui-dragme></happ-ui-dragme>
<happ-ui></happ-ui>
</div>
<!-- contactsheet -->
<div id="happ-contactsheet">
<happ-contactsheet></happ-contactsheet>
</div>
<script type="module">
import './happ-ui-exp.js';
import './happ-ui-dragme.js';
import './happ-ui.js';
import './happ-contactsheet.js';
</script>
</body>
</html>