-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (36 loc) · 905 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Mastercard run game</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<style>
body{
background-color: black;
}
canvas{
position: fixed;
left: 50%;
max-width: 100%;
max-height: 95%;
top: 50%;
/*bottom:-50%;*/
transform: translate(-50%, -50%);
margin: 0 auto;
}
</style>
</head>
<body>
<script type="module" src="./game.js">
</script>
<script>
/*
if( /Android|webOS|iPhone|iPad|Window|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
$('body').css({
"-webkit-transform": "rotate(90deg)"
});
}*/
</script>
</body>
</html>