-
Notifications
You must be signed in to change notification settings - Fork 1
/
population_simulation.html
38 lines (33 loc) · 1.04 KB
/
population_simulation.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
<html>
<head>
<title>population-growth</title>
<link rel="stylesheet" type="text/css" href="population_simulation.css">
</head>
<body>
<h1>
Population Growth
</h1>
<nav>
<ul>
<li><a href="./index.html">infection sim</a></li>
<li><a href="./population_simulation.html">population sim</a></li>
</ul>
</nav>
<h2 id="display_num">0</h2>
<button id="inc_num_btn">increment by 1</button>
<button id="lin_start_btn">start linear growth</button>
<button id="exp_start_btn">start exponential growth</button>
<button id="log_start_btn">start logistical growth</button>
<button id="stop_btn">stop growth</button>
<button id="reset_btn">reset</button>
<div
class="chart-container"
style="position: relative; height:60vh; width:80vw"
>
<canvas id="populationChart" width="200" height="200"></canvas>
</div>
<script src="Chart.js"></script>
<script src="p5/p5.js"></script>
<script src="population_simulation.js"></script>
</body>
</html>