forked from kirliavc/fgo_simulator
-
Notifications
You must be signed in to change notification settings - Fork 3
/
pool.html
319 lines (303 loc) · 14.4 KB
/
pool.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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
<title>Fate/Grand Order:卡池模拟器</title>
<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- script language='javascript'>document.location = 'https://kirliavc.github.io/test_simulator/'</script -->
<!-- Main jumbotron for a primary marketing message or call to action -->
<h3 id="titleText" align="center"><a href=".." target="_blank">[Fate/Grand Order]</a>:卡池模拟器</h3>
<hr>
<div class="container" align="center">
<div class="row">
<div id="bannerContainer" class="col-sm-12">
<!-- <img src="http://view.fate-go.jp/wp-content/uploads/2018/karanokyoukai_full_las1p/summon_banner.png" class="img-thumbnail" height="232" width="640" align="center"/> -->
</div>
</div>
<div class="row">
<div class="panel-group" id="accordion">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#upRateConfig">
卡池UP率设定
</a>
</h4>
</div>
<div id="upRateConfig" class="panel-collapse collapse">
<div class="panel-body">
<div class="col-sm-6 col-xs-12">
<form class="form-horizontal" role="form">
<div class="form-group">
<label class="col-sm-6 control-label">SSR从者UP几率</label>
<div class="col-sm-6">
<div class="input-group">
<input type="number" class="form-control" value="66" min="0" max="100" onchange="sanityCheck(this);" id="serv5UpRate">
<span class="input-group-addon">%</span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-6 control-label">SR从者UP几率</label>
<div class="col-sm-6">
<div class="input-group">
<input type="number" class="form-control" value="40" min="0" max="100" onchange="sanityCheck(this);" id="serv4UpRate">
<span class="input-group-addon">%</span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-6 control-label">R从者UP几率</label>
<div class="col-sm-6">
<div class="input-group">
<input type="number" class="form-control" value="20" min="0" max="100" onchange="sanityCheck(this);" id="serv3UpRate">
<span class="input-group-addon">%</span>
</div>
</div>
</div>
</form>
</div>
<div class="col-sm-6 col-xs-12">
<form class="form-horizontal" role="form">
<div class="form-group">
<label class="col-sm-6 control-label">SSR礼装UP几率</label>
<div class="col-sm-6">
<div class="input-group">
<input type="number" class="form-control" value="66" min="0" max="100" onchange="sanityCheck(this);" id="cft5UpRate">
<span class="input-group-addon">%</span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-6 control-label">SR礼装UP几率</label>
<div class="col-sm-6">
<div class="input-group">
<input type="number" class="form-control" value="40" min="0" max="100" onchange="sanityCheck(this);" id="cft4UpRate">
<span class="input-group-addon">%</span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-6 control-label">R礼装UP几率</label>
<div class="col-sm-6">
<div class="input-group">
<input type="number" class="form-control" value="20" min="0" max="100" onchange="sanityCheck(this);" id="cft3UpRate">
<span class="input-group-addon">%</span>
</div>
</div>
</div>
</form>
</div>
<div class="row">
<div class="col-sm-3 col-sm-offset-2 col-xs-12">
<a class="btn btn-success btn-block" href="javascript:void(0)" role="button" onclick="setUpRate();">确认</a>
</div>
<div class="col-sm-3 col-sm-offset-3 col-xs-12">
<a class="btn btn-default btn-block" href="javascript:void(0)" role="button" onclick="resetUpRate();">还原</a>
</div>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#dropRateConfig">
卡池出率设定
</a>
</h4>
</div>
<div id="dropRateConfig" class="panel-collapse collapse">
<div class="panel-body">
<div class="col-sm-6 col-xs-12">
<form class="form-horizontal" role="form">
<div class="form-group">
<label class="col-sm-6 control-label">SSR从者出率</label>
<div class="col-sm-6">
<div class="input-group">
<input type="number" class="form-control" value="1" min="0" max="100" onchange="sanityCheck(this);" id="serv5Rate">
<span class="input-group-addon">%</span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-6 control-label">SR从者出率</label>
<div class="col-sm-6">
<div class="input-group">
<input type="number" class="form-control" value="3" min="0" max="100" onchange="sanityCheck(this);" id="serv4Rate">
<span class="input-group-addon">%</span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-6 control-label">R从者出率</label>
<div class="col-sm-6">
<div class="input-group">
<input type="number" class="form-control" value="40" min="0" max="100" onchange="sanityCheck(this);" id="serv3Rate">
<span class="input-group-addon">%</span>
</div>
</div>
</div>
</form>
</div>
<div class="col-sm-6 col-xs-12">
<form class="form-horizontal" role="form">
<div class="form-group">
<label class="col-sm-6 control-label">SSR礼装出率</label>
<div class="col-sm-6">
<div class="input-group">
<input type="number" class="form-control" value="4" min="0" max="100" onchange="sanityCheck(this);" id="cft5Rate">
<span class="input-group-addon">%</span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-6 control-label">SR礼装出率</label>
<div class="col-sm-6">
<div class="input-group">
<input type="number" class="form-control" value="12" min="0" max="100" onchange="sanityCheck(this);" id="cft4Rate">
<span class="input-group-addon">%</span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-6 control-label">R礼装出率</label>
<div class="col-sm-6">
<div class="input-group">
<input type="number" class="form-control" value="40" min="0" max="100" onchange="sanityCheck(this);" id="cft3Rate">
<span class="input-group-addon">%</span>
</div>
</div>
</div>
</form>
</div>
<div class="row">
<div class="col-sm-3 col-sm-offset-2 col-xs-12">
<a class="btn btn-success btn-block" href="javascript:void(0)" role="button" onclick="setDropRate();">确认</a>
</div>
<div class="col-sm-3 col-sm-offset-3 col-xs-12">
<a class="btn btn-default btn-block" href="javascript:void(0)" role="button" onclick="resetDropRate();">还原</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-3 col-md-offset-2 col-sm-4 col-xs-6">
<a class="btn btn-primary btn-lg" href="javascript:void(0)" role="button" onclick="clearResult();getOne();">召唤1次</a>
</div>
<div class="col-md-3 col-sm-4 col-xs-6">
<a class="btn btn-primary btn-lg" href="javascript:void(0)" role="button" onclick="getTen();">召唤10次</a>
</div>
<div class="col-md-1 col-sm-2 col-xs-3">
<img src="https://img1.ali213.net/webgamepic/uploadfile/news/2015/06/29/ali20150629130520_49018_600.jpg" height="45" width="45"/>
</div>
<div class="col-md-1 col-sm-2 col-xs-3">
<span align="left"><font size="6"><p id="quartz">167</p></font>
</span>
</div>
<div class="col-md-2 col-sm-6 col-xs-3">
<font size="3"><label>
<input type="checkbox" value="" id="auto_buy">
自动购买圣晶石
</label></font>
</div>
<div class="col-md-2 col-sm-6 col-xs-3">
<font size="3"><label>
<input type="checkbox" value="" id="gaussian" onclick="updatePoolConfig();">
伪随机卡池
</label></font>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-2 col-md-offset-1 col-xs-4 col-xs-offset-0">
<img id="r_1" class="img-thumbnail">
</div>
<div class="col-md-2 col-xs-4 col-xs-offset-0">
<img id="r_2" class="img-thumbnail">
</div>
<div class="col-md-2 col-xs-4 col-xs-offset-0">
<img id="r_3" class="img-thumbnail">
</div>
<div class="col-md-2 col-xs-4 col-xs-offset-0">
<img id="r_4" class="img-thumbnail">
</div>
<div class="col-md-2 col-xs-4 col-xs-offset-0">
<img id="r_5" class="img-thumbnail">
</div>
</div>
<hr>
<div class="row">
<div class="col-md-2 col-md-offset-1 col-xs-4 col-xs-offset-0">
<img id="r_6" class="img-thumbnail">
</div>
<div class="col-md-2 col-xs-4 col-xs-offset-0">
<img id="r_7" class="img-thumbnail">
</div>
<div class="col-md-2 col-xs-4 col-xs-offset-0 ">
<img id="r_8" class="img-thumbnail">
</div>
<div class="col-md-2 col-xs-4 col-xs-offset-0 ">
<img id="r_9" class="img-thumbnail">
</div>
<div class="col-md-2 col-xs-4 col-xs-offset-0 ">
<img id="r_10" class="img-thumbnail">
</div>
</div>
</div>
<div class="alert alert-success" role="alert">
<h4>召唤结果<small><span> 总召唤次数:</span><span id="times">0</span><span> 消费金额:</span><span id="money">0</span><span>元</span></small></h4>
<br>
<div class="panel panel-default">
<div class="panel-heading">☆5(SSR)从者</div>
<div class="panel-body" id="serv5">
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">☆4(SR)从者</div>
<div class="panel-body" id="serv4">
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">☆5(SSR)概念礼装</div>
<div class="panel-body" id="craft5">
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">☆4(SR)概念礼装</div>
<div class="panel-body" id="craft4">
</div>
</div>
</div>
<hr>
<p>卡池列表:</p>
<p id="index"></p>
<hr>
<p align="center">作者:<a href="https://github.com/konatasick/test_simulator" target="_blank">konatasick@github</a>,修改自原作者:<a href="https://github.com/kirliavc/test_simulator" target="_blank">kirliavc@github</a>,<a href="https://github.com/ssz66666/test_simulator" target="_blank">ssz66666@github</a></p>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="js/drawpool.js"></script>
<script src="js/poolemu.js"></script>
<script src="js/index.js"></script>
<script src="js/pool.js"></script>
</body>
</html>