forked from BDMayhem/DeepTownCalc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
60 lines (54 loc) · 2.95 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
<!DOCTYPE html>
<html>
<head>
<title>Deep Town Calc</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css.css">
<script type="text/javascript" src="materials.js" defer></script>
<script type="text/javascript" src="mines.js" defer></script>
<script type="text/javascript" src="dtc.js" defer></script>
</head>
<body>
<div class="grid">
<h1>Deep Town Calc</h1>
<div id="info">
<p>DTC will help you make stuff faster! You enter what you want to make, how much you want, and how many mines you have. It will tell you where to place your mines, as well as how many of each material (and, if applicable, how long) it will require.</p>
<p>In the "Everything You Need" list, the number in [brackets] represents the number of assigned stations of that type. You can add smelting, crafting, etc. stations by clicking the plus sign (+). To help indicate bottlenecks, the longest time in the list will appear in <span class="bottleneck">red</span>.</p>
<p>In the last column, enter your current inventory of the materials you need.</p>
<p>To keep things clear, coal smelted from trees is called "charcoal."</p>
<p>If you're morbidly curious about how this site works, <a href="https://www.github.com/bdmayhem/DeepTownCalc">check out the repo</a>.</p>
</div>
<form id="form">
<div class="item-needs">
<li class="item"><label>Item </label><select class="what" placeholder="What do you want to build?" name="stuff" oninput="submitButton()"></select></li>
<li class="quantity"><label>Quantity </label><input type="number" min="0" class="how-many" value="100" oninput="submitButton()"></li>
</div>
<li><button class="more" type="button">Make More Stuff</button></li>
<li><label>Mines </label><input type="number" min="0" id="mines" value="20" oninput="submitButton()"></li>
<li><label>Max area </label><input type="number" min="0" id="area" value="120" oninput="submitButton()"></li>
<li id="coal-source"><div id="mining">Mining</div><div id="source">Coal Source</div><div id="trees">Trees</div></li>
<li id="coal-slider">
<span id="coal">100</span>
<input id="slider" type="range" min="0" max="100" value="0" oninput="showValue(this.value)" />
<span id="charcoal">0</span>
</li>
</form>
<div id="mine-results">
<div id="result"><h3 class="center">Mine Areas</h3></div>
<div id="sorted-by-area" class="hidden"></div>
</div>
<div id="needs"><h3 class="center">Everything You Need</h3></div>
<div id="inventory">
<div id="inv-head">
<h3 class="center">Current Inventory</h3>
<button id="show-all" type="button">Show All</button>
<button id="hide" class="hidden" type="button">Hide Unneeded Inventory</button>
</div>
</div>
</div>
<footer class="center">
<a href="https://bdmayhem.github.io/" class="footer">Made by BD</a>
</footer>
</body>
</html>