-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
76 lines (75 loc) · 1.27 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
<!DOCTYPE html>
<html>
<head>
<meta charset=UTF-8>
<title>N.50.TENNIS_CANVAS</title>
</head>
<style>
body{
background: #fef2e4;
margin: 0px;
height: max-content;
}
input {
margin-left: 350px;
float: left;
margin-top: 8px;
}
.startButton {
padding: 10px 30px;
border: 2px solid #f98866;
border-radius: 8px;
background: #f98866;
color: #fff;
}
.startButton:hover {
border: 2px solid #89da59;
background: #89da59;
color: #fff;
}
.score{
vertical-align: middle;
margin-left: 550px;
width: 120px;
height: 50px;
border: 3px solid;
border-color: #80bd9e;
font-size: 40px;
text-align: center;
color: #80bd9e;
position: relative;
}
#oneScore {
width: 40px;
height: 50px;
float: left;
margin-left: 10px;
}
#twoScore {
width: 40px;
height: 50px;
float: right;
margin-right: 10px;
}
.dvoetochie {
width: 20px;
height: 50px;
float: left;
}
canvas {
display: block;
margin: 10px 100px;
}
</style>
<body>
<input type='button' class='startButton' value='START!' onclick='startGame()' />
<div class='score'>
<div id='oneScore'></div><div class='dvoetochie'>:</div>
<div id='twoScore'></div>
</div>
<canvas id='canvas'>
Your browser is not supported.
</canvas>
<script src="index.js"></script>
</body>
</html>