-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspawn.html
82 lines (66 loc) · 2.34 KB
/
spawn.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
<!DOCTYPE html>
<head>
<!--
src里面是静态资源 th:href里面是启动springboot后引用的资源
-->
<meta charset="UTF-8">
<title>生物生成模拟器</title>
<link rel="stylesheet" href="./Semantic/semantic.min.css" />
<link rel="stylesheet" href="./css/main.css" />
<script src="js/jquery-3.3.1.js"></script>
<script src="Semantic/semantic.min.js"></script>
<script src="js/echarts.js"></script>
<script src="js/spawn.js"></script>
</head>
<body>
<div class="mc-title">
<h1 class="ui center aligned header">
生物生成模拟器
</h1>
</div>
<div class="mc-content">
<div class="ui basic segment">
<p>
关于生物生成的介绍(1.16+)
</p>
<br>
<br>
</div>
<div class="ui form">
<div class="fields">
<div class="field">
<label>密度上限</label>
<input id="density" type="number" placeholder="1" value="1">
</div>
<div class="field">
<label>生成率修正</label>
<input id="corr" type="number" placeholder="1.0" value="1.0">
</div>
<div class="field">
<label>存活时间(gt)</label>
<input id="life" type="number" placeholder="1.0" value="10">
</div>
<div class="field">
<label>模拟时间(gt)</label>
<input id="time" type="number" placeholder="1" value="1200">
</div>
</div>
<div class="sixteen wide centered column">
<button id="spawn-sim" class="ui primary basic fluid button">开始一次随机模拟</button>
</div>
<br>
<div class="sixteen wide centered column">
<button id="spawn-his" class="ui primary basic fluid button">模拟200次并显示效率概率累计图(可惜需要几秒)</button>
</div>
<br>
<br>
<div class="ui horizontal divider">
结果显示
</div>
<!--echart-->
<div class="mc-chart" id="spawn-chart">
</div>
</div>
</div>
</body>
</html>