-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
40 lines (38 loc) · 889 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Chartjs2Music</title>
<style>
:root{
--tile-size: 400px;
}
#app {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(var(--tile-size), 1fr));
}
#app > div:has(canvas) {
max-width: var(--tile-size);
}
#cc {
position: fixed;
bottom: 10px;
right: 10px;
padding: 5px;
border-radius: 5px;
background-color: #ddd;
border: 1px solid black;
max-width: 350px;
}
#cc:not(:has(div)){
display: none;
}
</style>
</head>
<body>
<div id="app"></div>
<div id="cc"></div>
<script type="module" src="/samples/main.ts"></script>
</body>
</html>