-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
82 lines (72 loc) · 2.46 KB
/
index.html
File metadata and controls
82 lines (72 loc) · 2.46 KB
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
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Squada+One&display=swap" rel="stylesheet">
<style>
#scoreboard {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#scoreboard td,
#scoreboard th {
border: 1px solid #ddd;
padding: 8px;
}
#scoreboard tr:nth-child(even) {
background-color: #f2f2f2;
}
#scoreboard tr:hover {
background-color: #ddd;
}
#scoreboard th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #04AA6D;
color: white;
}
.button-game {
background-color: #4CAF50;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
.input-playername {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
</style>
</head>
<body>
<section style="display: flex; justify-content: center">
<h1>Game On by CDON©</h1>
</section>
<div id="start-area">
<label for="username-game">Player name</label>
<input id="username-game" class="input-playername" type="text" name="firstname"
placeholder="Your player name.." />
<button id="game-start" class="button-game">Start game</button>
</div>
<div id="game-area" style="display: none">
<section style="display: flex; justify-content: center">
<canvas id="canvas-flappy" width="276" height="414"></canvas>
</section>
</div>
<script src="game.js"></script>
</body>
</html>