2018-09-30 13:30:40 -05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>My Incremental Game</title>
|
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
|
|
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
|
|
|
|
<link rel="stylesheet" href="main.css">
|
|
|
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
|
|
|
|
<script src="main.js"></script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li class="nav-item">
|
2018-10-15 14:19:42 -05:00
|
|
|
<a class="nav-link active" id="linkMain" onclick="setTab('main')">Main</a>
|
2018-09-30 13:30:40 -05:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2018-10-15 14:19:42 -05:00
|
|
|
<a class="nav-link" id="linkBuildings" onclick="setTab('buildings')">Buildings</a>
|
2018-09-30 13:30:40 -05:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2018-10-15 14:19:42 -05:00
|
|
|
<a class="nav-link" id="linkPopulation" onclick="setTab('population')">Population</a>
|
2018-09-30 13:30:40 -05:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2018-10-15 14:19:42 -05:00
|
|
|
<a class="nav-link" id="linkResearch" onclick="setTab('research')">Research</a>
|
2018-09-30 13:30:40 -05:00
|
|
|
</li>
|
2018-10-06 11:34:12 -05:00
|
|
|
<li class="nav-item">
|
2018-10-15 14:19:42 -05:00
|
|
|
<a class="nav-link" id="linkTrading" onclick="setTab('trading')">Trading</a>
|
2018-10-06 11:34:12 -05:00
|
|
|
</li>
|
2018-09-30 13:30:40 -05:00
|
|
|
<li class="nav-item">
|
2018-10-15 14:19:42 -05:00
|
|
|
<a class="nav-link" id="linkOptions" onclick="setTab('options')">Options</a>
|
2018-09-30 13:30:40 -05:00
|
|
|
</li>
|
|
|
|
</ul>
|
2018-10-15 14:19:42 -05:00
|
|
|
<div id="tabMain">
|
2018-09-30 13:30:40 -05:00
|
|
|
<button onclick="incResource('wood')">Gather wood</button>
|
2018-10-16 09:18:10 -05:00
|
|
|
<br>
|
|
|
|
<button onclick="incResource('food')">Gather food</button>
|
2018-10-15 14:19:42 -05:00
|
|
|
<div class="resourcesRequired">
|
2018-09-30 13:30:40 -05:00
|
|
|
<br>
|
2018-10-15 14:19:42 -05:00
|
|
|
<p id="maxResources">Resources:</p>
|
2018-09-30 13:30:40 -05:00
|
|
|
<p id="resources"></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-10-15 14:19:42 -05:00
|
|
|
<div id="tabBuildings">
|
|
|
|
<div id="craftButtons"></div>
|
2018-09-30 13:30:40 -05:00
|
|
|
<p>Buildings:</p>
|
|
|
|
<p id="buildings"></p>
|
|
|
|
</div>
|
2018-10-15 14:19:42 -05:00
|
|
|
<div id="tabPopulation">
|
2018-09-30 13:30:40 -05:00
|
|
|
<p id="pop">Population uninitialized!</p>
|
2018-10-15 14:19:42 -05:00
|
|
|
<p id="workPop">Working population uninitialized!</p>
|
|
|
|
<p id="numLumberjacks">Number of lumberjacks uninitialized!</p>
|
2018-09-30 13:30:40 -05:00
|
|
|
<button class="hire" onclick="hire('lumberjack')">Hire</button>
|
2018-10-15 14:19:42 -05:00
|
|
|
<button id="fireLumberjack" onclick="fire('lumberjack')">Fire</button>
|
|
|
|
<p id="numMiners">Number of miners uninitialized!</p>
|
2018-09-30 13:30:40 -05:00
|
|
|
<button class="hire" onclick="hire('miner')">Hire</button>
|
2018-10-15 14:19:42 -05:00
|
|
|
<button id="fireMiner" onclick="fire('miner')">Fire</button>
|
|
|
|
<div class="researchRequired">
|
|
|
|
<p id="numScientists">Number of scientists uninitialized!</p>
|
2018-09-30 13:30:40 -05:00
|
|
|
<button class="hire" onclick="hire('scientist')">Hire</button>
|
2018-10-15 14:19:42 -05:00
|
|
|
<button id="fireScientist" onclick="fire('scientist')">Fire</button>
|
2018-09-30 13:30:40 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-10-15 14:19:42 -05:00
|
|
|
<div id="tabResearch">
|
|
|
|
<p id="researchPoints">Research points uninitialized!</p>
|
|
|
|
<div id="researchButtons"></div>
|
2018-09-30 13:30:40 -05:00
|
|
|
<p>Researches:</p>
|
|
|
|
<div id="researches"></div>
|
|
|
|
</div>
|
2018-10-15 14:19:42 -05:00
|
|
|
<div id="tabTrading">
|
2018-10-06 11:34:12 -05:00
|
|
|
</div>
|
2018-10-15 14:19:42 -05:00
|
|
|
<div id="tabOptions">
|
2018-09-30 13:30:40 -05:00
|
|
|
<button onclick="reset()">Reset</button>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|