Skip to content

Commit 354cf0d

Browse files
authored
Add 2 input to User interface,update index
//Fix the issue 'y2 don't exist' if the number of rows and column different. //Add 2 input to User interface to change the number rows and column
1 parent 4ce79f3 commit 354cf0d

File tree

1 file changed

+24
-13
lines changed

1 file changed

+24
-13
lines changed

index.html

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,41 @@
1919

2020
</div>
2121
<div style="display: flex;">
22-
<div style="margin: 50px;display: flex;">
22+
<div style="display: flex;flex-direction: column;margin-left: 40px;margin-top: 20px;">
23+
<div>
24+
<div style="width: 100px;">NB rows:</div>
25+
<input onchange="setCell(this,'row')" type="number" value="50" />
26+
</div>
27+
<div>
28+
<div style="width: 100px;">NB column:</div>
29+
<input onchange="setCell(this,'column')" type="number" value="50" />
30+
</div>
31+
32+
</div>
33+
<div style="margin: 20px;display: flex;">
2334
<p style="margin: 10px;font-size: 20px;">سرعة العدوى</p>
2435
<input style="margin: 10px;font-size: 20px;" onchange="PROBA_DEATH_callBack(this)" type="range" min="0" max="100"
2536
value="50" class="slider" id="myRange">
26-
<p style="margin: 10px;font-size: 30px;" id='PROBA_DEATH_Value'>50</p>
37+
<p style="margin: 10px;font-size: 20px;" id='PROBA_DEATH_Value'>50</p>
2738
</div>
28-
<div style="margin: 50px;display: flex;">
39+
<div style="margin: 20px;display: flex;">
2940
<p style="margin: 10px;font-size: 20px;">عدد الملقحين</p>
30-
<input style="margin: 10px;font-size: 20px;" onchange="VACCINATION_RATE_callBack(this)" type="range" min="0" max="100"
31-
value="50" class="slider" id="myRange">
32-
<p style="margin: 10px;font-size: 30px;" id='VACCINATION_RATE_Value'>50</p>
41+
<input style="margin: 10px;font-size: 20px;" onchange="VACCINATION_RATE_callBack(this)" type="range" min="0"
42+
max="100" value="50" class="slider" id="myRange">
43+
<p style="margin: 10px;font-size: 20px;" id='VACCINATION_RATE_Value'>50</p>
3344
</div>
34-
<div style="margin: 50px;display: flex;">
35-
<p style="margin: 10px;font-size: 30px" id='CONTAGION_RATE_Value'>10</p>
45+
<div style="margin: 20px;display: flex;">
46+
<p style="margin: 10px;font-size: 20px" id='CONTAGION_RATE_Value'>10</p>
3647

3748
<input style="margin: 10px;font-size: 20px;" onchange="CONTAGION_RATE_callBack(this)" type="range" min="0"
3849
max="20" value="10" class="slider" id="myRange">
39-
<p style="margin: 10px;font-size: 20px;">نسبة الهلاك</p>
50+
<p style="margin: 10px;font-size: 20px;">نسبة الهلاك</p>
51+
4052

41-
42-
<button style="width: 150px;" onclick="run()">
53+
<button style="width: 80px;margin: 5px;" onclick="run()">
4354
start
4455
</button>
45-
<button style="width: 150px;" onclick="reload()">
56+
<button style="width: 80px;margin: 5px;" onclick="reload()">
4657
reload
4758
</button>
4859
</div>
@@ -51,4 +62,4 @@
5162
</body>
5263
<script src="sketch.js"></script>
5364

54-
</html>
65+
</html>

0 commit comments

Comments
 (0)