-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (37 loc) · 1.53 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Ubuntu:wght@500&display=swap" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.min.css" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<title>Simulation</title>
</head>
<body>
<h1>Epidemic Simulator</h1>
<div class="container">
<div class="slidecontainer">
<label>Speed</label>
<input type="range" min="5" max="50" value="25" class="slider" id="speedRange">
</div>
<button id="restart">Restart</button>
<div class="slidecontainer" style="float: right; position: relative; top: -7px;">
<label>balls</label>
<input type="text" value="10" id="ballsRange">
</div>
<div class="slidecontainer" id="probs" style="float: right;">
<label>quarantined <br> probability</label>
<input type="text" value="0" id="probsRange">
</div>
<div id="plane">
</div>
<canvas id="myChart" width="400" height="400"></canvas>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.min.js"></script>
<script src="js/helper.js"></script>
<script src="js/point.js"></script>
<script src="js/script.js"></script>
</body>
</html>