-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
79 lines (68 loc) · 1.3 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
<!doctype html>
<html>
<head>
<title>Pong</title>
<style>
* {
box-sizing: border-box;
}
html{
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
body{
background: #222;
position: relative;
overflow: hidden;
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
.ball{
height: 5px;
width: 5px;
border-radius: 5px;
background: red;
position: absolute;
}
.bar{
position: absolute;
transition: 0.05s;
}
.bar__part{
background: #fff;
width: 20px;
height: 20px;
transition: 0.1s;
display: inline-block;
}
.row{
overflow: hidden;
min-height: 15px;
margin-bottom: 5px;
}
.brick-container{
margin-left: auto;
margin-right: auto;
position: relative;
overflow: hidden;
}
.brick{
height: 15px;
display: inline-block;
background: white;
padding: .5%;
position: absolute;
}
.brick.damaged{
background: red;
}
</style>
</head>
<body>
<script src="game.js"></script>
</body>
</html>