-
Notifications
You must be signed in to change notification settings - Fork 1
/
resource-calculator.html
352 lines (324 loc) · 29.7 KB
/
resource-calculator.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
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RailRoad Online - Resources</title>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-KTSNZ8H');</script>
<!-- End Google Tag Manager -->
<link rel="icon" href="./images/railroad.png">
<link rel="stylesheet" href="./css/resource-styles.css">
<link rel="stylesheet" href="./css/buttons.css">
<link rel="stylesheet" href="./css/modal.css">
<link href="https://fonts.googleapis.com/css2?family=Lato&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p"
crossorigin="anonymous" />
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js'></script>
<!-- <script src="./script.js"></script> -->
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KTSNZ8H"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div class="mobile-msg">
<div class="mobile-view-msg">
<h2 style="margin: auto;">Welcome to RailRoads Online! Manager.</h2><br><br>
<h4 style="margin: auto;">Sorry to say but this website works only on desktop.</h4>
</div>
</div>
<div class="viewport-container">
<div class="controls">
<div>
<h2><a href="index.html">RailRoads Online!</a></h2>
</div>
<div class="page-heading">
<h2>Resource Calculator</h2>
</div>
<div class="right__side__controls">
<!-- Lock Button -->
<div style="display: flex;align-items: center;justify-content: center; margin-top: 5px;">
<span id="lock" class="lock unlocked" ></span>
</div>
<div class="info_icon" style="margin-right: -1vw">
<i class="fa fa-repeat" aria-hidden="true" onclick="reset_board()" data-title="Reset Board"></i>
</div>
<!-- Info Button -->
<div class="info_icon">
<i class="fa fa-info-circle" aria-hidden="true" onclick="info_modal_open()" data-title="Info"></i>
<div class="i-modal i-open">
<div class="i-modal-overlay" onclick="info_modal_close()"></div>
<div class="i-modal-card">
<div class="i-modal-body">
<div class="i-modal-header">How to use this Resource Calculator</div>
<div class="i-modal-content">
<strong>Instructions:</strong><br>
<span style="color:brown;">1.  </span> To calculate your deliveries, change ONLY the value in Second input which will turn white when you hover, Since they are the lowest value per ratio, they are our limiting factor.
of any car<br><br>
<span style="color: brown;">2.  </span> All of the tables will update automatically to the Correct Numbers. No of cars will tell you the proper number of cars needed to make a delivery to any industry.<br>
<br><br>
<strong>Lock Button:</strong><br>
Click the lock button to lock the input fields. This will set incriment limits to input such that it will partially help the user in getting full cars.<br>
<span style="color: brown; font-style: italic;">Note: This is a beta feature and will be optimised in the future.</span><br>
<br><br>
<strong>Special Thanks:</strong><br>
@Kist_This created the original version of this calculator in excel. Download it here- <a href="https://docs.google.com/spreadsheets/d/1DRu3sGIxoGMIrAU81wgz_aIGqUpLdbbyrZ4w1p1ILwU/edit?usp=sharing" target="_blank"><span style="color: brown; font-style: italic;">Resource Calculator by Kist This</span></a>
<br><br>
<strong>Logs:</strong><br>
<span style="color: brown; font-style: italic;">18 March 2022 - </span> Updated the Ironworks Output.
</div>
<div class="i-modal-footer">
Enjoy!
<button class="custom-button" onclick="info_modal_close()">Okay</button>
</div>
</div>
</div>
</div>
</div>
<!-- Hamburger Menu -->
<div class="menu-overlay" onclick="menu_overlay_close()">
</div>
<div id="menuToggle">
<input type="checkbox" onclick="menu_overlay_open()" id="menu-checkbox">
<span></span>
<span></span>
<span></span>
<ul id="menu">
<a href="index.html">
<li>Home</li>
</a>
<a href="railroads_manager.html">
<li>Railroads-Online Manager</li>
</a>
<a href="resource-calculator.html">
<li>Resource Calculator</li>
</a>
<a href="https://github.com/parampatil/Railroads-Online"
target="_blank">
<li>Github Repository</li>
</a>
</ul>
</div>
</div>
</div>
<div class="views-container_rc">
<div class="views_rc">
<div class="column__one_rc">
<div class="ipop__view">
<div class="ipop__view-body">
<div class="ipop_grid-container" id="ipop_grid">
<!-- Grid columns = 9 -->
<!-- Headings -->
<div class="item1-heading_locations">Locations</div>
<div class="item2-heading_inputs">Input</div>
<div class="item5-heading_outputs">Output</div>
<div class="item7-heading_noofcars">No of Cars</div>
<!-- Logging Camp -->
<div class="item1-heading logging-camp">Logging Camp
</div>
<div class="item2-input logging-camp">None</div>
<div class="item3-input logging-camp">None</div>
<div class="item4-input logging-camp">None</div>
<div class="item5-output logging-camp">Log<br><input
type="number" disabled="true"
id="loggingcamp-op1"></input></div>
<div class="item6-output logging-camp">Cord
Wood<br><input type="number" disabled="true"
id="loggingcamp-op2"></input></div>
<div class="item7-noofcars logging-camp"
style="visibility:hidden"></div>
<div class="item8-noofcars logging-camp"
style="visibility:hidden"></div>
<div class="item9-noofcars logging-camp"
style="visibility:hidden"></div>
<!-- Sawmill -->
<div class="item1-heading sawmill">Sawmill</div>
<div class="item2-input sawmill"
style="visibility:hidden"></div>
<div class="item3-input sawmill">
Logs<br><input type="number" step="1" id="sawmill-ip2"></input>
</div>
<div class="item4-input sawmill"
style="visibility:hidden"></div>
<div class="item5-output sawmill">
Lumber<br><input type="number" disabled="true"
id="sawmill-op1"></input></div>
<div class="item6-output sawmill">Wood
Beams<br><input type="number" disabled="true"
id="sawmill-op2"></input></div>
<div class="item7-noofcars sawmill">
Logs - Log
Car<br><input type="number" disabled="true"
id="sawmill-cars1"></input></div>
<div class="item8-noofcars sawmill"
style="visibility:hidden"></div>
<div class="item9-noofcars sawmill"
style="visibility:hidden"></div>
<!-- Iron Mine -->
<div class="item1-heading iron-mine">Iron Mine</div>
<div class="item2-input iron-mine">Lumber<br><input
type="number" disabled="true"
id="ironmine-ip1"></input></div>
<div class="item3-input iron-mine">Beams<br><input
type="number" step="1" id="ironmine-ip2"></input>
</div>
<div class="item4-input iron-mine"
style="visibility:hidden"></div>
<div class="item5-output iron-mine">Iron<br><input
type="number" disabled="true"
id="ironmine-op1"></input></div>
<div class="item6-output iron-mine"
style="visibility:hidden"></div>
<div class="item7-noofcars iron-mine">Lumber -
Stakes<br><input type="number" disabled="true"
id="ironmine-cars1"></input></div>
<div class="item8-noofcars iron-mine">Wood Beam -
Stakes<br><input type="number" disabled="true"
id="ironmine-cars2"></div>
<div class="item9-noofcars iron-mine"
style="visibility:hidden"></div>
<!-- Smelter -->
<div class="item1-heading smelter">Smelter</div>
<div class="item2-input smelter">Cord Wood<br><input
type="number" disabled="true"
id="smelter-ip1"></input></div>
<div class="item3-input smelter">Iron<br><input
type="number"
step="1" id="smelter-ip2"></input></div>
<div class="item4-input smelter"
style="visibility:hidden"></div>
<div class="item5-output smelter">Rails<br><input
type="number" disabled="true"
id="smelter-op1"></input></div>
<div class="item6-output smelter">Iron Slab<br><input
type="number" disabled="true"
id="smelter-op2"></input></div>
<div class="item7-noofcars smelter">CordWood -
Bulkhead<br><input type="number" disabled="true"
id="smelter-cars1"></input></div>
<div class="item8-noofcars smelter">Iron Ore -
Hopper<br><input type="number" disabled="true"
id="smelter-cars2"></div>
<div class="item9-noofcars smelter"
style="visibility:hidden"></div>
<!-- Coal Mine -->
<div class="item1-heading coal-mine">Coal Mine</div>
<div class="item2-input coal-mine">Wood Beam<br><input
type="number" disabled="true"
id="coalmine-ip1"></input></div>
<div class="item3-input coal-mine">Rails<br><input
type="number" step="1" id="coalmine-ip2"></input>
</div>
<div class="item4-input coal-mine"
style="visibility:hidden"></div>
<div class="item5-output coal-mine">Coal<br><input
type="number" disabled="true"
id="coalmine-op1"></input></div>
<div class="item6-output coal-mine"
style="visibility:hidden"></div>
<div class="item7-noofcars coal-mine">Wood Beam -
Stakes<br><input type="number" disabled="true"
id="coalmine-cars1"></input></div>
<div class="item8-noofcars coal-mine">Rails -
Stakes<br><input type="number" disabled="true"
id="coalmine-cars2"></div>
<div class="item9-noofcars coal-mine"
style="visibility:hidden" ></div>
<!-- Iron Works -->
<div class="item1-heading iron-works">Iron Works</div>
<div class="item2-input iron-works">Lumber<br><input
type="number" disabled="true"
id="ironworks-ip1"></input></div>
<div class="item3-input iron-works">Coal<br><input
type="number" step="1" id="ironworks-ip2"></input>
</div>
<div class="item4-input iron-works">Iron Slab<br><input
type="number" disabled="true"
id="ironworks-ip3"></input></div>
<div class="item5-output iron-works">Steel
Pipes<br><input type="number" disabled="true"
id="ironworks-op1"></input></div>
<div class="item6-output iron-works">Tool
Crates<br><input type="number" disabled="true"
id="ironworks-op2"></input></div>
<div class="item7-noofcars iron-works">Lumber -
Stakes<br><input type="number" disabled="true"
id="ironworks-cars1"></input></div>
<div class="item8-noofcars iron-works">Coal Ore -
Hopper<br><input type="number" disabled="true"
id="ironworks-cars2"></div>
<div class="item9-noofcars iron-works">Iron Slab -
Stakes<br><input type="number" disabled="true"
id="ironworks-cars3"></div>
<!-- Oil Field -->
<div class="item1-heading oil-field">Oil Field</div>
<div class="item2-input oil-field">Steel Pipes<br><input
type="number" disabled="true"
id="oilfield-ip1"></input></div>
<div class="item3-input oil-field">Tool Crates<br><input
type="number" step="1" id="oilfield-ip2"></input></div>
<div class="item4-input oil-field">Wood Beams<br><input
type="number" disabled="true"
id="oilfield-ip3"></input></div>
<div class="item5-output oil-field">Crude Oil<br><input
type="number" disabled="true"
id="oilfield-op1"></input></div>
<div class="item6-output oil-field"
style="visibility:hidden"></div>
<div class="item7-noofcars oil-field">Steel Pipes - Log
Car<br><input type="number" disabled="true"
id="oilfield-cars1"></input></div>
<div class="item8-noofcars oil-field">Tool Crates -
Boxcar<br><input type="number" disabled="true"
id="oilfield-cars2"></div>
<div class="item9-noofcars oil-field">Wood Beams -
Stakes<br><input type="number" disabled="true"
id="oilfield-cars3"></div>
<!-- Refinery -->
<div class="item1-heading refinery">Refinery</div>
<div class="item2-input refinery">Lumber<br><input
type="number" disabled="true"
id="refinery-ip1"></input></div>
<div class="item3-input refinery">Steel Pipes<br><input
type="number" value="" step="1" id="refinery-ip2"></input>
</div>
<div class="item4-input refinery">Crude Oil<br><input
type="number" disabled="true"
id="refinery-ip3"></input></div>
<div class="item5-outpu refinery">Oil Barrels<br><input
type="number" disabled="true"
id="refinery-op1"></input></div>
<div class="item6-output refinery" style="visibility:hidden"></div>
<div class="item7-noofcars refinery">Lumber -
Stakes<br><input type="number" disabled="true"
id="refinery-cars1"></input></div>
<div class="item8-noofcars refinery">Steel Pipes - Log
Car<br><input type="number" disabled="true"
id="refinery-cars2"></div>
<div class="item9-noofcars refinery">Crude Oil -
Tanker<br><input type="number" disabled="true"
id="refinery-cars3"></div>
</div>
<div id="engine__list">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer>
Special thanks to <a href="https://docs.google.com/spreadsheets/d/1DRu3sGIxoGMIrAU81wgz_aIGqUpLdbbyrZ4w1p1ILwU/edit?usp=sharing" target="_blank">Kist_This</a> for providing his excel sheet as reference for this project.
</footer>
<!-- Javascript -->
<script src="./utils/menu.js"></script>
<script src="./utils/resource_calculator.js"></script>
</body>
</html>