-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathindex.html
31 lines (29 loc) · 1.31 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
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="/favicon.ico" />
<title>GoXLR Utility</title>
</head>
<body>
<noscript>
<strong>We're sorry but the GoXLR Utility UI doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<canvas id="wheelCanvas" style="position: absolute; top: -1000px; left: -1000px; width: 130px; height: 130px"></canvas>
<div id="colourHover" style="position: absolute; top: -1000px; left: -1000px; width: 20px; height: 20px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 5px 10px rgba(0,0,0,0.5); background-color: #fff; pointer-events: none;"></div>
<div id="app"></div>
<!-- For Vite, we have to manually include the module.. -->
<script type="module" src="/src/main.js"></script>
<script type="text/javascript">
window.onload = function(){
let canvas = document.getElementById('wheelCanvas');
let context = canvas.getContext('2d');
let img = new Image();
img.onload = () => context.drawImage(img, 0, 0);
img.src = 'wheel.png';
};
</script>
</body>
</html>