forked from denodell/frogger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (49 loc) · 1.39 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
<!DOCTYPE html>
<html>
<head>
<title>Frogger In Canvas</title>
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
<style>
@font-face {
font-family: 'Arcade Classic';
src: url('fonts/arcadeclassic.eot');
src: url('fonts/arcadeclassic.eot?#iefix') format('embedded-opentype'),
url('fonts/arcadeclassic.woff') format('woff'),
url('fonts/arcadeclassic.ttf') format('truetype'),
url('fonts/arcadeclassic.svg#arcadeclassic') format('svg');
font-weight: normal;
font-style: normal;
}
html, body {
background-color: black;
}
.canvas {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
padding: 0;
margin: auto;
/* border: 2px solid #000; */
width: 480px;
}
@media (max-width: 480px) {
.canvas {
width: 100%;
}
}
</style>
</head>
<body>
<canvas id="background-canvas" class="canvas" width="960" height="1280"></canvas>
<canvas id="canvas" class="canvas" width="960" height="1280"></canvas>
<script>
document.ontouchmove = function(event){
event.preventDefault();
}
</script>
<script src="scripts/hammer.min.js"></script>
<script src="scripts/main.js?v=20171110"></script>
</body>
</html>