-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (62 loc) · 1.76 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Piero demo</title>
<style>
html, body {
width: 100%;
height: 100%;
}
body {
background: #DDDDDD;
padding: 0;
margin: 0;
}
.full-frame {
width: 100%;
height: 100%;
padding: 30px;
box-sizing: border-box;
}
.canvas-board {
padding: 0;
position: relative;
overflow: hidden;
}
.canvas-board canvas {
position: absolute;
top: 0;
left: 0;
}
#my-board {
width: 100% !important;
height: 100% !important;
background: white;
}
.styled-text-edit {
position: absolute;
white-space: pre-wrap;
background: transparent;
resize: none;
border: none;
outline: none;
overflow: hidden;
padding: 0;
margin: 0;
}
</style>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Hanalei&display=swap" rel="stylesheet">
</head>
<body>
<div class="full-frame">
<div class="canvas-board" id="my-board"></div>
</div>
<script src="dev.js"></script>
<script>
const boardItemManager = Piero.create("my-board");
Piero.fillSamples(boardItemManager);
</script>
</body>
</html>