-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
98 lines (84 loc) · 1.64 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=1000">
<title>Original Dino</title>
<link rel="icon" href="img/cloud.png">
<script defer type="text/javascript" src="scriptm.js"></script>
<style type="text/css">
* {
margin: 0;
box-sizing: border-box;
overflow: hidden;
color: #444;
font-weight: bold;
}
html {
height: 100%;
touch-action: manipulation;
}
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
font-family: monospace;
}
#mainCanvas {
width: 1000px;
height: 250px;
background-color: #ddd;
}
.ui {
display: flex;
text-align: center;
width: 1000px;
margin-top: 1rem;
}
.flex-item {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
flex-basis: 33%;
}
#reset_btn {
border: 1px #333 solid;
border-radius: 3px;
user-select: none;
transition-duration: .25s;
cursor: pointer;
}
#reset_btn:hover {
filter: opacity(.5);
}
#reset_btn:active {
filter: opacity(1);
}
label {
display: block;
user-select: none;
}
input {
margin-top: 0rem;
width: 80%;
accent-color: grey;
}
</style>
</head>
<body>
<canvas id="mainCanvas" width="1000" height="250"></canvas>
<div class="ui">
<div class="flex-item" id="reset_btn">
<p>Clear HI SCORE</p>
</div>
<div class="flex-item">
<label for="fov">Field of view</label>
<input type="range" min="25" max="100" id="fov">
</div>
<div class="flex-item" id="fps">[fps]: 00.000</div>
</div>
</body>
</html>