-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
56 lines (45 loc) · 2.06 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
<html>
<head>
<title>Pandemic Playground</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<div class="container">
<h1>Pandemic Playground</h1>
<canvas id="canvas" width="700" height="700"></canvas>
<div class="stats">
<div>
<span>Infected: </span>
<span id="infectedCount"></span>
</div>
<div>
<span>Healthy: </span>
<span id="healthyCount"></span>
</div>
<div>
<span>Turns: </span>
<span id="turnCount"></span>
</div>
</div>
<div class="slidecontainer">
<span>Healthy: </span>
<input type="number" max="1000" size="4" value="500" id="healthyText">
<input type="range" min="0" max="1000" value="500" class="slider" id="healthySlider">
</div>
<div class="slidecontainer">
<span>Infected: </span>
<input type="number" max="1000" size="4" value="100" id="infectedText">
<input type="range" min="0" max="1000" value="100" class="slider" id="infectedSlider">
</div>
<div class="slidecontainer">
<span>Medics: </span>
<input type="number" max="500" size="4" value="10" id="medicText">
<input type="range" min="0" max="500" value="10" class="slider" id="medicSlider">
</div>
<div class="instructions">
<p>Adjust the sliders to vary the pandemic starting conditions. Green represents a healthy organism, red represents an infected organism, and white represents a medic. Medics can heal infected organisms, and infected organisms will spread the infection to others.</p>
</div>
</div>
<script src="bundle.js"></script>
</body>
</html>