-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
34 lines (34 loc) · 865 Bytes
/
test.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
<!doctype html>
<head>
<script src="jquery-3.6.0.min.js"></script>
<script src="webgazer.js" type="text/javascript"></script>
<script src="main.js" type="text/javascript"></script>
<script src="keyboard.js" type="text/javascript"></script>
<style>
body,html {
width:100%;
height:100%;
margin: 0;
}
/*#keyboard {
width:100%;
height:100%;
z-index: 999999;
}*/
#gamepos {
width: 50px;
height: 50px;
background-color: pink;
display: block;
position: fixed;
opacity: 1.0;
}
</style>
</head>
<body>
<!-- this canvas is styled to fill the whole page-->
<canvas id="keyboard"></canvas>
<!-- this is our cursor, feel free to style as you like above -->
<div id="gamepos"></div>
</body>
</html>