-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
37 lines (37 loc) · 1017 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Chamanti</title>
<style>
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f0f0f0;
}
canvas {
touch-action: none;
}
</style>
</head>
<body>
<canvas id="canvas" height="500" width="500"></canvas>
<script type="module" src="/src/main.ts"></script>
</body>
<script>
// // resize canvas to full window without paddings
// const canvas = document.getElementById('canvas');
// const resizeCanvas = () => {
// canvas.width = window.innerWidth;
// canvas.height = window.innerHeight;
// };
// resizeCanvas();
// window.addEventListener('resize', resizeCanvas);
</script>
</html>