-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (47 loc) · 1.07 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Game of Life</title>
<style>
body {
background-color: #333;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
color: #fff;
}
.row {
display: flex;
}
.row:last-child .cell {
border-bottom-style: solid;
}
.cell {
height: 1rem;
width: 1rem;
flex-shrink: 0;
cursor: default;
border-color: #0D43D3;
border-width: 1px;
border-style: solid solid none none;
}
.cell:first-child {
border-left-style: solid;
}
.cell.alive {
background-color: #1AEA42;
}
.cell.dead {
background-color: #000;
}
</style>
<script type="text/javascript" src="main.js"></script>
</head>
<body>
<div id="elm"></div>
<script>
var app = Elm.Main.init({
node: document.getElementById("elm")
});
</script>
</body>
</html>