forked from dpfeif/ti-draft-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
189 lines (186 loc) · 10.3 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
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
<!DOCTYPE html>
<html>
<head>
<title>Milty Draft Tool</title>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
<meta content="utf-8" http-equiv="encoding" />
<meta name="author" content="Bradley Stone" />
<meta name="version" content="v0.1" />
<meta name="viewport" content="width=960px, initial-scale=1, maximum-scale=1" />
<link rel="icon" href="favicon.png" />
<link rel="stylesheet" href="style.css">
<script src="script.js" async></script>
</head>
<body>
<form onsubmit="start();return false;">
<table align="center">
<col style="width:4vw; min-width:2em;" />
<col style="width:15vw; min-width:7.5em;" />
<col style="width:3vw; min-width:1.5em;" />
<col style="width:4vw; min-width:2em;" />
<col style="width:15vw; min-width:7.5em;" />
<col style="width:3vw; min-width:1.5em;" />
<col style="width:4vw; min-width:2em;" />
<tr>
<td colspan=7 align="center"><i>Players</i></td>
</tr>
<tr class="name">
<td colspan=7 align="center"><input type="text" id="p1name" placeholder="Player One" value="Damien" />
</td>
</tr>
<tr class="name">
<td colspan=7 align="center"><input type="text" id="p2name" placeholder="Player Two" value="Yves" /></td>
</tr>
<tr class="name">
<td colspan=7 align="center"><input type="text" id="p3name" placeholder="Player Three" value="Virginie" />
</td>
</tr>
<tr class="name">
<td colspan=7 align="center"><input type="text" id="p4name" placeholder="Player Four" value="Tanguy" />
</td>
</tr>
<tr class="name">
<td colspan=7 align="center"><input type="text" id="p5name" placeholder="Player Five" value="Guillaume" />
</td>
</tr>
<tr class="name">
<td colspan=7 align="center"><input type="text" id="p6name" placeholder="Player Six" value="Alexandre" /></td>
</tr>
<tr class="name">
<td colspan=7 align="center"><input type="text" id="p7name" placeholder="Florian" /></td>
</tr>
<tr class="name">
<td colspan=7 align="center"><input type="text" id="p8name" placeholder="Dimitri" /></td>
</tr>
<tr class="start">
<td colspan=7 align="center"><input type="submit" value="Start" style="font-weight:bold;" /></td>
</tr>
<tr class="mainopt">
<td colspan=7 align="center"><i>Main Options</i></td>
</tr>
<tr class="majopt">
<td> </td>
<td>Factions: </td>
<td><input type="number" id="factions" value="15" min="3" max="24" step="1" /></td>
<td> </td>
<td>Slices: </td>
<td><input type="number" id="slices" value="9" min="3" max="9" step="1" /></td>
<td> </td>
</tr>
<tr class="addopt">
<td colspan=7 align="center"><input type="button" value="More Options" id="addopt" onclick="moreopt();"
style="font-style:italic;" /></td>
</tr>
<tr class="minopt">
<td> </td>
<td>Include Wormholes & Legendaries: </td>
<td><input type="checkbox" id="leg" checked /></td>
<td> </td>
<td>Real Tile Images: </td>
<td><input type="checkbox" id="real" checked /></td>
<td> </td>
</tr>
<tr class="minopt">
<td> </td>
<td>Minimum Optimal Influence: </td>
<td><input type="number" id="mininf" value="4.0" step="0.5" min="0" /></td>
<td> </td>
<td>Minimum Optimal Resources: </td>
<td><input type="number" id="minres" value="2.5" step="0.5" min="0" /></td>
<td> </td>
</tr>
<tr class="minopt">
<td> </td>
<td>Minimum Optimal Total: </td>
<td><input type="number" id="mintot" value="9" step="1" min="0" /></td>
<td> </td>
<td>Maximum Optimal Total: </td>
<td><input type="number" id="maxtot" value="13" step="1" min="0" /></td>
<td> </td>
</tr>
<tr class="minopt">
<td> </td>
<td colspan=5 style="padding-left:2em; text-indent:-2em;">
<p><i>The “Optimal Value” of a planet is calculated by using the higher of its resource
value and influence value as that value, and the other value as zero.</i></p>
<p><i>If both of the planet’s resource value and influence value are equal, half that value is
used for both of its optimal values.</i></p>
<p><i>For example, Starpoint, a 3/1, is treated as 3/0, Corneeq, a 1/2, is treated as 0/2, and Rigel
III, a 1/1, is treated as ½/½.</i></p>
</td>
<td> </td>
</tr>
<tr class="minopt">
<td> </td>
<td>Slice Gneration: </td>
<td colspan=4><select onChange="slicegen()" id="slicesource">
<option value="rand" selected>Random</option>
<option value="scpt2021">SCPT 2021 Invitational</option>
<option value="scpt2022">SCPT 2022 Qualifiers</option>
<option value="scpt2022+">SCPT 2022 Preliminaries</option>
</select></td>
<td> </td>
</tr>
<tr class="minopt">
<td> </td>
<td>Faction Gneration: </td>
<td colspan=4><select onChange="factgen()" id="factsource">
<option value="rand" selected>Random</option>
<option value="simp">Random – Skew Low Complexity</option>
<option value="scpt2021a">SCPT 2021 Invitational Pool A</option>
<option value="scpt2021b">SCPT 2021 Invitational Pool B</option>
<option value="scpt2021c">SCPT 2021 Invitational Pool C</option>
<option value="scpt2021d">SCPT 2021 Invitational Pool D</option>
<option value="scpt2021e">SCPT 2021 Invitational Pool E</option>
<option value="scpt2021f">SCPT 2021 Invitational Pool F</option>
<option value="scpt2021*">SCPT 2021 Random Invitational Pool</option>
<option value="scpt2021z">SCPT 2021 Invitational Final Pool</option>
<option value="scpt2022a">SCPT 2022 Qualifiers Pool A</option>
<option value="scpt2022b">SCPT 2022 Qualifiers Pool B</option>
<option value="scpt2022c">SCPT 2022 Qualifiers Pool C</option>
<option value="scpt2022d">SCPT 2022 Qualifiers Pool D</option>
<option value="scpt2022e">SCPT 2022 Qualifiers Pool E</option>
<option value="scpt2022f">SCPT 2022 Qualifiers Pool F</option>
<option value="scpt2022g">SCPT 2022 Qualifiers Pool G</option>
<option value="scpt2022h">SCPT 2022 Qualifiers Pool H</option>
<option value="scpt2022i">SCPT 2022 Qualifiers Pool I</option>
<option value="scpt2022j">SCPT 2022 Qualifiers Pool J</option>
<option value="scpt2022k">SCPT 2022 Qualifiers Pool K</option>
<option value="scpt2022l">SCPT 2022 Qualifiers Pool L</option>
<option value="scpt2022m">SCPT 2022 Qualifiers Pool M</option>
<option value="scpt2022n">SCPT 2022 Qualifiers Pool N</option>
<option value="scpt2022o">SCPT 2022 Qualifiers Pool O</option>
<option value="scpt2022p">SCPT 2022 Qualifiers Pool P</option>
<option value="scpt2022q">SCPT 2022 Qualifiers Pool Q</option>
<option value="scpt2022r">SCPT 2022 Qualifiers Pool R</option>
<option value="scpt2022_">SCPT 2022 Qualifiers Random Pool</option>
<option value="scpt2022aa">SCPT 2022 Preliminaries Pool A</option>
<option value="scpt2022bb">SCPT 2022 Preliminaries Pool B</option>
<option value="scpt2022cc">SCPT 2022 Preliminaries Pool C</option>
<option value="scpt2022dd">SCPT 2022 Preliminaries Pool D</option>
<option value="scpt2022ee">SCPT 2022 Preliminaries Pool E</option>
<option value="scpt2022ff">SCPT 2022 Preliminaries Pool F</option>
<option value="scpt2022gg">SCPT 2022 Preliminaries Pool G</option>
<option value="scpt2022hh">SCPT 2022 Preliminaries Pool H</option>
<option value="scpt2022ii">SCPT 2022 Preliminaries Pool I</option>
<option value="scpt2022jj">SCPT 2022 Preliminaries Pool J</option>
<option value="scpt2022kk">SCPT 2022 Preliminaries Pool K</option>
<option value="scpt2022ll">SCPT 2022 Preliminaries Pool L</option>
<option value="scpt2022__">SCPT 2022 Preliminaries Random Pool</option>
</select></td>
<td> </td>
</tr>
<tr class="help">
<td colspan=7 id="helpwhat">
<p><a onClick="helpwhat(1)"><u>What is a Milty Draft?</u></a></p>
</td>
</tr>
<tr class="help">
<td colspan=7 id="helphow">
<p><a onClick="helphow(1)"><u>How does this tool work?</u></a></p>
</td>
</tr>
</table>
</form>
</body>
</html>