-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (40 loc) · 1.35 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
<html>
<head>
<link rel="icon" href="/images/doodle_farting.png" type="image/x-icon">
<meta name="viewport" content="maximum-scale=1, user-scalable=no">
<title>Munch Jump</title>
<script src="https://cdn.jsdelivr.net/npm/p5@1.9.4/lib/p5.js"></script>
<script src="https://cdn.jsdelivr.net/npm/p5@1.9.4/lib/addons/p5.sound.js"></script>
<script type="module" src="src/Game.js"></script>
<script src="src/main.js"></script>
<style>
#main-canvas {
touch-action: none;
position: fixed;
-webkit-user-select: none;
}
.aspect-ratio-container {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.noselect {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
supported by Chrome and Opera */
}
</style>
</head>
<body style="margin:0">
<main class="aspect-ratio-container noselect">
<canvas id="main-canvas">
</canvas>
</main>
</body>
</html>