/
index.html
81 lines (65 loc) · 1.62 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
<!DOCTYPE html><html dir="ltr" lang="en"><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0">
<title>Stencil Component Starter</title>
<script src="/build/mibank.js"></script>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<style>
html {
font-size: 1em;
}
body {
background-color: white;
font-family: Roboto;
font-weight: 400;
line-height: 1.45;
color: #333;
}
p {
margin-bottom: 1.3em;
}
h1,
h2,
h3,
h4 {
margin: 1.414em 0 0.5em;
font-weight: inherit;
line-height: 1.2;
}
h1 {
margin-top: 0;
font-size: 3.998em;
}
h2 {
font-size: 2.827em;
}
h3 {
font-size: 1.999em;
}
h4 {
font-size: 1.414em;
}
small,
.font_small {
font-size: 0.707em;
}
</style></head>
<body>
<mi-heading type="h1">Heading Test</mi-heading>
<mi-navigation></mi-navigation>
<mi-section></mi-section>
<mi-table></mi-table>
<script>
window.onload = function () {
var nav = document.querySelector('mi-navigation');
nav.navItems = [{ label: "About" }, { label: "Services" }, { label: "Clients" }, { label: "Contact Us" }];
var table = document.querySelector('mi-table');
table.headings = ["Column 1", "Column 2"];
table.data = [["ROW 1", "ROW 2"], ["ROW11", "ROW22"]];
var data = { tim: "test" };
var chart = document.createElement('mi-pie-graph');
chart.data = [{ "data": [20, 20, 30], "backgroundColor": ["red", "yellow", "blue"] }];
document.body.appendChild(chart);
}
</script>
</body></html>