update,
This commit is contained in:
48
chris20202020/_ref/game-of-life-js/index.html
Normal file
48
chris20202020/_ref/game-of-life-js/index.html
Normal file
@@ -0,0 +1,48 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<title>Document</title>
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
|
||||
<style>
|
||||
html, body {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
body {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
background-color: rgba(40, 169, 255, 0.25);
|
||||
}
|
||||
canvas {
|
||||
border: 1px solid rgba(0, 0, 0, 0.7);
|
||||
background-color: #fff;
|
||||
}
|
||||
button {
|
||||
width: 80px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<canvas id="life"
|
||||
width="420"
|
||||
height="420">
|
||||
Loading...
|
||||
</canvas>
|
||||
<div>
|
||||
<button data-play-pause>
|
||||
<i class="fa fa-play"></i>
|
||||
</button>
|
||||
<button data-reload>
|
||||
<i class="fa fa-refresh"></i>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
<script src="life.js"></script>
|
||||
<script src="canvas.js"></script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user