-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
145 lines (139 loc) · 7.24 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<html>
<head>
<title>Population Simulation</title>
<meta name="description"
content="A website that runs population (genetics) simulations based on Hardy-Weinberg principles">
<!-- Facebook Meta Tags -->
<meta property="og:url" content="https://population-simulation.zohan.tech">
<meta property="og:type" content="website">
<meta property="og:title" content="Population Simulation">
<meta property="og:description"
content="A website that runs population (genetics) simulations based on Hardy-Weinberg principles">
<meta property="og:image" content="https://cdn-icons-png.flaticon.com/512/7212/7212405.png">
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta property="twitter:domain" content="population-simulation.zohan.tech">
<meta property="twitter:url" content="https://population-simulation.zohan.tech">
<meta name="twitter:title" content="Population Simulation">
<meta name="twitter:description"
content="A website that runs population (genetics) simulations based on Hardy-Weinberg principles">
<meta name="twitter:image" content="https://cdn-icons-png.flaticon.com/512/7212/7212405.png">
<!-- Meta Tags Generated via https://www.opengraph.xyz -->
</head>
<body>
<div class="w3-card-4">
<div class="w3-container w3-green">
<h2 style="text-align: center;">Population Simulation<br>
<a style="text-align: center;" href="https://github.com/Zo-Bro-23/view-count-badge">
<img alt="view-count-badge title=" Website Views"
src="https://view-count-badge.zohan.tech/Zo-Bro-23/population-simulation?color=6b105d&labelColor=913e96&style=for-the-badge&logo=eye&label=VISITORS&logoColor=white" /></a>
</h2>
</div>
<br>
<form class="w3-container" style="text-align: center; margin-left: 25%; margin-right: 25%;">
<label>Starting population size:</label>
<br>
</form>
<form class="w3-container" style="text-align: center; margin-left: 43%; margin-right: 43%;">
<input id="starting" class="w3-input" width="25%" placeholder="20000"></input>
<br>
</form>
<form class="w3-container" style="text-align: center; margin-left: 25%; margin-right: 25%;">
<label>Dominant allele frequency (p ~ 0 - 1):</label>
<br>
</form>
<form class="w3-container" style="text-align: center; margin-left: 43%; margin-right: 43%;">
<input id="p" class="w3-input" width="25%" placeholder="0.6"></input>
<br>
</form>
<form class="w3-container" style="text-align: center; margin-left: 25%; margin-right: 25%;">
<label>Offspring (per person):</label>
<br>
</form>
<form class="w3-container" style="text-align: center; margin-left: 43%; margin-right: 43%;">
<input id="offspring" class="w3-input" width="25%" placeholder="2"></input>
<br>
</form>
<form class="w3-container" style="text-align: center; margin-left: 25%; margin-right: 25%;">
<label>Number of generations (to run the simulation for):</label>
<br>
</form>
<form class="w3-container" style="text-align: center; margin-left: 43%; margin-right: 43%;">
<input id="generations" class="w3-input" width="25%" placeholder="3"></input>
<br>
</form>
<form class="w3-container" style="text-align: center; margin-left: 25%; margin-right: 25%;">
<label>How much variation should be allowed from the set offspring value (0 - 1):</label>
<br>
</form>
<form class="w3-container" style="text-align: center; margin-left: 43%; margin-right: 43%;">
<input id="variation-0" class="w3-input" width="25%" placeholder="0.01"></input>
<br>
</form>
<form class="w3-container" style="text-align: center; margin-left: 25%; margin-right: 25%;">
<label>To how many offspring should the variation be limited to (±offspring):</label>
<br>
</form>
<form class="w3-container" style="text-align: center; margin-left: 43%; margin-right: 43%;">
<input id="variation-1" class="w3-input" width="25%" placeholder="3"></input>
<br>
</form>
<form class="w3-container" style="text-align: center; margin-left: 25%; margin-right: 25%;">
<label>Survival rate (pp ~ 0 - 1):</label>
<br>
</form>
<form class="w3-container" style="text-align: center; margin-left: 43%; margin-right: 43%;">
<input id="survival-pp" class="w3-input" width="25%" placeholder="1.0"></input>
<br>
</form>
<form class="w3-container" style="text-align: center; margin-left: 25%; margin-right: 25%;">
<label>Survival rate (pq ~ 0 - 1):</label>
<br>
</form>
<form class="w3-container" style="text-align: center; margin-left: 43%; margin-right: 43%;">
<input id="survival-pq" class="w3-input" width="25%" placeholder="1.0"></input>
<br>
</form>
<form class="w3-container" style="text-align: center; margin-left: 25%; margin-right: 25%;">
<label>Survival rate (qq ~ 0 - 1):</label>
<br>
</form>
<form class="w3-container" style="text-align: center; margin-left: 43%; margin-right: 43%;">
<input id="survival-qq" class="w3-input" width="25%" placeholder="0.9"></input>
<br>
</form>
<form class="w3-container" style="text-align: center; margin-left: 25%; margin-right: 25%;">
<label>Limit population size (artificially limits the population to make the simulation run faster):</label>
<br>
</form>
<form class="w3-container" style="text-align: center; margin-left: 43%; margin-right: 43%;">
<input id="limit" class="w3-input" width="25%" placeholder="0.9" type="checkbox"></input>
<br>
</form>
<form class="w3-container" style="text-align: center; margin-left: 25%; margin-right: 25%;">
<label>Generation log type:</label>
<br>
</form>
<form class="w3-container" style="text-align: center; margin-left: 43%; margin-right: 43%;">
<select class="w3-select" name="option" id="log">
<option value="0">No log</option>
<option value="5">Short</option>
<option value="2">Detailed</option>
<option value="1">Verbose</option>
</select>
<br>
</form>
<form class="w3-container" style="text-align: center; margin-left: 25%; margin-right: 25%;">
<button id="button" type="button" class="w3-btn w3-padding w3-blue" style="width:120px">Run
></button>
<button id="cleartext" type="button" class="w3-btn w3-padding w3-teal" style="width: 120px">Clear
text</button>
</form>
</div>
<div class="w3-card-4" style="text-align: center;">
<h3 id="result"></h3>
</div>
</body>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<script src="bundle.js"></script>
</html>