-
Notifications
You must be signed in to change notification settings - Fork 1
/
putt.html
35 lines (34 loc) · 948 Bytes
/
putt.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
<html>
<head>
<title>PuttJS</title>
<meta charset="UTF-8" />
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png">
<link rel="manifest" href="/img/site.webmanifest">
<style>
#gameScreen {
position: absolute;
top: 50%;
left: 50%;
-moz-transform: translateX(-50%) translateY(-50%);
-webkit-transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
cursor: crosshair;
}
html, body {
background-color: #222222;
width: 100%;
height: 100%;
margin: 0px;
border: 0;
overflow: hidden;
display: block;
}
</style>
</head>
<body>
<canvas id="gameScreen" width="0" height="0"></canvas>
<script src="src/putt.js" type="module"></script>
</body>
</html>