-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
43 lines (34 loc) · 2.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
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="jquery.flot.min.js"></script>
<script type="text/javascript" src="d3.min.js"></script>
<script type="text/javascript" src="d3.geom.min.js"></script>
<script type="text/javascript" src="d3.layout.min.js"></script>
<link type="text/css" rel="stylesheet" href="sirtoy.css"/>
<title>SIR toy</title>
</head>
<body>
<div id="container">
<div id="epicurves"></div>
<div id="counters">
<span id="susceptible"><span id="count_S">0</span> susceptible</span><br />
<span id="infectious"><span id="count_I">0</span> infectious</span><br />
<span id="recovered"><span id="count_R">0</span> recovered</span>
</div>
<div id="controls">
<span>p(<span style="color: #0ff">S</span> + <span style="color: #ff0">I</span> → <span style="color: #ff0">I</span> + <span style="color: #ff0">I</span>) = <input id="p_SI" type="text" name="p_SI" value="0.00" /></span><br />
<span>p(<span style="color: #ff0">I</span> → <span style="color: #f0f">R</span>) = <input id="p_IR" type="text" name="p_IR" value="0.00" /></span>
</div>
<div id="graph-layout">
<div id="graph-control">
<span id="start-text">click a susceptible node to infect it</span>
<button id="reset-button">reset</button>
</div>
</div>
<div id="credits"><a href="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/ccattuto/SIRtoy">code</a> by <a href="https://www.cirocattuto.info/">Ciro Cattuto</a>, using <a href="https://mbostock.github.com/d3/">d3.js</a>, <a href="https://jquery.com/">jQuery</a>, <a href="https://code.google.com/p/flot/">flot</a>, inspired by <a href="https://blockses.appspot.com/929623">this</a> and with help from <a href="https://knowledgecartography.org/">Marco Quaggiotto</a></div>
</div>
<script type="text/javascript" src="sirtoy.js"></script>
</body>
</html>