-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
92 lines (76 loc) · 1.9 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
<!DOCTYPE html5>
<head>
<meta charset="UTF-8">
<style type="text/css">
body {
height: 100%;
margin: 0px;
background-color: black;
color: whitesmoke;
font-family: 'Courier New', Courier, monospace;
}
button {
background-color: black;
border-color: whitesmoke;
color: whitesmoke;
}
#life-interface {
height: 100%;
}
#life-header {
height: 5%;
position: relative;
}
#life-statistics {
display: none;
}
#life-controls {
margin: 0;
position: absolute;
left: 50%;
-ms-transform: translateX(-50%);
transform: translateX(-50%);
display: inline-block;
}
#life-grid {
height: 95%;
display: block;
border-collapse: collapse;
}
#life-grid > tbody {
display: table;
}
#life-grid > tbody > tr {
padding: 0px;
}
#life-grid > tbody > tr > td {
padding: 0px;
display: inline-block;
border-right: 1px solid whitesmoke;
border-bottom: 1px solid whitesmoke;
}
#life-grid > tbody > tr:nth-child(1) > td {
border-top: 1px solid whitesmoke;
}
#life-grid > tbody > tr > td:nth-child(1) {
border-left: 1px solid whitesmoke;
}
#phone-message {
display: block;
margin: 1em;
}
.alive {
background-color: whitesmoke;
}
.dead {
background-color: black;
}
.empty {
background-color: black;
}
</style>
</head>
<body>
<script src="life.js"></script>
<script>main();</script>
</body>