-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path20-objects-from-array.htm
More file actions
59 lines (41 loc) · 1.77 KB
/
Copy path20-objects-from-array.htm
File metadata and controls
59 lines (41 loc) · 1.77 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
56
57
58
59
<!DOCTYPE html>
<html lang="en">
<head>
<title>Counter</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"><!-- , user-scalable=no -->
<!-- LIBRARY FILES -->
<!-- <link rel="preload" href="image.png" as="image"> -->
<link rel="preload" href="../basic/font/open-sans/OpenSans-Regular.ttf" as="font" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="../basic/basic.min.css">
<script src="../basic/basic.min.js" type="text/javascript" charset="utf-8"></script>
<!--<script src="../basic/scroll-bar.min.js" type="text/javascript" charset="utf-8"></script>-->
<!-- <script src="../comp-m1/_component-template.min.js" type="text/javascript" charset="utf-8"></script> -->
<!-- ALL COMPONENTS IN ONE FILE -->
<!-- <script src="../comp-m1/components.js" type="text/javascript" charset="utf-8"></script> -->
<script>
const ITEM_TEXT_LIST = ["Label1", "Label2", "Label3"];
// First running function.
window.onload = function() {
// GROUP: Labels
HGroup({
align: "right center",
gap: 4,
padding: 20,
});
ITEM_TEXT_LIST.forEach(itemText => {
Label({
text: itemText,
color: "lightgray",
round: 6,
padding: [12, 6],
});
});
endGroup(); // END Labels
};
</script>
</head>
<body>
<!-- HTML content -->
</body>
</html>