-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
198 lines (196 loc) · 10.5 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
190
191
192
193
194
195
196
197
198
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Sailing Era Guild Investment Calculator</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<h1>Sailing Era Guild Investment Calculator</h1>
<h2>航海时代公会投资计算器</h2>
<form id="portForm">
<div id="language-selector">
<input type="radio" id="english" name="language" value="English" checked>
<label for="english">
🇺🇸 English
</label>
<input type="radio" id="chinese" name="language" value="Chinese">
<label for="chinese">
🇨🇳 中文
</label>
</div>
<div class="centered-container">
<div data-lang="processingMessage" id="processing-message" text-align: center;">Paste a screenshot of your trade screen here (any language).<br>
Pulling the values from it may take up to 10 seconds, after<br>
which the values of your permit level, current investments,<br>
and current port levels will populate in the fields below.</div>
</div>
<div class="centered-container">
<div id="screenshot-area" contenteditable="true"></div>
</div>
<table>
<tbody>
<tr>
<td colspan="6">
<label for="permits">Permits:</label>
<input data-lang="permitsLabel" type="radio" id="guildEstablished" name="permits" value="guildEstablished" checked>
<label data-lang="guildEstablishedLabel" for="guildEstablished">Guild Established</label><br>
<input type="radio" id="basicGuildInvestment" name="permits" value="basicGuildInvestment">
<label data-lang="basicGuildInvestmentLabel" for="basicGuildInvestment">Basic Guild Investment</label><br>
<input type="radio" id="advancedGuildInvestment" name="permits" value="advancedGuildInvestment">
<label data-lang="advancedGuildInvestmentLabel" for="advancedGuildInvestment">Advanced Guild Investment</label><br>
<input type="checkbox" id="fionaPerkCheckbox" name="fionaPerk" value="active">
<label class="inline-label" data-lang="fionaPerkLabel" for="fionaPerkCheckbox">Have Fiona's perk 'Smart Merchant'</label><br>
<input type="checkbox" id="businessScaleCheckbox" name="businessScale" value="active">
<label class="inline-label" data-lang="businessScaleLabel" for="businessScaleCheckbox">Have 'Business Scale' Special Item</label>
</td>
</tr>
<tr>
<td colspan="2"><label data-lang="tradeLabel" for="trade">Current Trade Level: </label>
<input type="number" id="tradeInput" name="trade" min="0" max="1000"value="0"></td>
<td colspan="2"><label data-lang="populationLabel" for="population">Current Population: </label>
<input type="number" id="populationInput" name="population" min="0" max="50000" value="0"></td>
<td colspan="2"><label data-lang="techLabel" for="tech">Current Technology Level: </label>
<input type="number" id="techInput" name="tech" min="0" max="1000" value="0"></td>
</tr>
<tr>
<td colspan="2"><label data-lang="currentInvestmentTradeLabel" for="currentInvestmentTrade">Current Investment in Trade: </label>
<input type="number" id="currentInvestmentTrade" min="0" max="500000"></td>
<td colspan="2"><label data-lang="currentInvestmentPopulationLabel" for="currentInvestmentPopulation">Current Investment in Population: </label>
<input type="number" id="currentInvestmentPopulation" min="0" max="500000"></td>
<td colspan="2"><label data-lang="currentInvestmentTechLabel" for="currentInvestmentTech">Current Investment in Technology: </label>
<input type="number" id="currentInvestmentTech" min="0" max="500000"></td>
</tr>
<tr>
<td colspan="2">
<label data-lang="investmentRequiredTradeLabel" for="investmentRequiredTrade">Investment Required for Trade: </label>
<output class="bold-output" id="investmentRequiredTrade" name="investmentRequiredTrade">0</output>
</td>
<td colspan="2">
<label data-lang="investmentRequiredPopulationLabel" for="investmentRequiredPopulation">Investment Required for Population: </label>
<output class="bold-output" id="investmentRequiredPopulation" name="investmentRequiredPopulation">0</output>
</td>
<td colspan="2">
<label data-lang="investmentRequiredTechLabel" for="investmentRequiredTech">Investment Required for Technology: </label>
<output class="bold-output" id="investmentRequiredTech" name="investmentRequiredTech">0</output>
</td>
</tr>
<tr>
<td colspan="2"><input type="checkbox" id="hobbyGoods" name="hobbyGoods">
<label for="hobbyGoods">Hobby Goods Output +50%</label><br>
<span id="hobbyGoods-results"></span>
</td>
<td colspan="2">
<input type="checkbox" id="foodOutput" name="foodOutput">
<label for="foodOutput">Food Output +50%</label><br>
<span id="foodOutput-results"></span>
</td>
<td colspan="2">
<input type="checkbox" id="industrialGoods" name="industrialGoods">
<label for="industrialGoods">Industrial Goods Output +50%</label><br>
<span id="industrialGoods-results"></span>
</td>
</tr>
<tr>
<td></td>
<td colspan="2">
<input type="checkbox" id="goodsStorage" name="goodsStorage">
<label for="goodsStorage">Goods Storage Limit +10%</label>
<span id="goodsStorage-results"></span>
</td>
<td colspan="2">
<input type="checkbox" id="tradeFleet1" name="tradeFleet1">
<label for="tradeFleet1">+1 Trade Fleet</label><br>
<span id="tradeFleet1-results"></span>
</td>
<td></td>
</tr>
<tr>
<td colspan="2">
<input type="checkbox" id="spiceOutput" name="spiceOutput">
<label for="spiceOutput">Spice Output +50%</label><br>
<span id="spiceOutput-results"></span>
</td>
<td colspan="2">
<input type="checkbox" id="beverageOutput" name="beverageOutput">
<label for="beverageOutput">Beverage Output +50%</label><br>
<span id="beverageOutput-results"></span>
</td>
<td colspan="2">
<input type="checkbox" id="textileOutput" name="textileOutput">
<label for="textileOutput">Textile Output +50%</label><br>
<span id="textileOutput-results"></span>
</td>
</tr>
<tr>
<td></td>
<td colspan="2">
<input type="checkbox" id="prosperityChance" name="prosperityChance">
<label for="prosperityChance">Increased Prosperity Chance</label><br>
<span id="prosperityChance-results"></span>
</td>
<td colspan="2">
<input type="checkbox" id="tradeFleet2" name="tradeFleet2">
<label for="tradeFleet2">+2 Trade Fleet</label><br>
<span id="tradeFleet2-results"></span>
</td>
<td></td>
</tr>
<tr>
<td colspan="2">
<input type="checkbox" id="gemstoneOutput" name="gemstoneOutput">
<label for="gemstoneOutput">Gemstone Output +50%</label><br>
<span id="gemstoneOutput-results"></span>
</td>
<td colspan="2">
<input type="checkbox" id="medicineOutput" name="medicineOutput">
<label for="medicineOutput">Medicine Output +50%</label><br>
<span id="medicineOutput-results"></span>
</td>
<td colspan="2">
<input type="checkbox" id="artwareOutput" name="artwareOutput">
<label for="artwareOutput">Artware Output +50%</label><br>
<span id="artwareOutput-results"></span>
</td>
</tr>
<tr>
<td colspan="2">
<input type="checkbox" id="premiumGoods" name="premiumGoods">
<label for="premiumGoods">Sells Premium Goods</label><br>
<span id="premiumGoods-results"></span>
</td>
<td colspan="2">
<input type="checkbox" id="moreItemTypes" name="moreItemTypes">
<label for="moreItemTypes">Unlocks More Item Types</label><br>
<span id="moreItemTypes-results"></span>
</td>
<td colspan="2">
<input type="checkbox" id="tradeFleetRange" name="tradeFleetRange">
<label for="tradeFleetRange">Increased Range of Trade Fleets</label><br>
<span id="tradeFleetRange-results"></span>
</td>
</tr>
<tr>
<td colspan="2">
<input type="checkbox" id="maxTrade" name="maxTrade">
<label for="maxTrade">Max Trade</label><br>
<span id="maxTrade-results"></span>
</td>
<td colspan="2">
<input type="checkbox" id="maxPopulation" name="maxPopulation">
<label for="maxPopulation">Max Population</label><br>
<span id="maxPopulation-results"></span>
</td>
<td colspan="2">
<input type="checkbox" id="maxTech" name="maxTech">
<label for="maxTech">Max Technology</label><br>
<span id="maxTech-results"></span>
</td>
</tr>
</tbody>
</table>
</form>
<script src="calculator.js"></script>
<script src='https://cdn.jsdelivr.net/npm/tesseract.js@4/dist/tesseract.min.js'></script>
</body>
</html>