aboutsummaryrefslogtreecommitdiffstats
path: root/index.xhtml
diff options
context:
space:
mode:
Diffstat (limited to 'index.xhtml')
-rw-r--r--index.xhtml6
1 files changed, 4 insertions, 2 deletions
diff --git a/index.xhtml b/index.xhtml
index ed3e7a6..9260134 100644
--- a/index.xhtml
+++ b/index.xhtml
@@ -34,8 +34,6 @@
<form class="form-horizontal" method="post" action="craftmine.php">
<button class="btn btn-default" type="button" name="withdraw" onclick="withdrawMine()">Withdraw</button>
<button class="btn btn-default" type="button" name="HireMiner" onclick="hireMiner()">Hire one miner</button>
- <button class="btn btn-default" type="button" onclick="saveGame()">Save game</button>
- <button class="btn btn-default" type="button" onclick="downGame()">Download game</button>
</form>
</div>
</div>
@@ -92,7 +90,11 @@
</div>
<ul class="list-inline">
<li><button class="btn btn-default" type="button" onclick="loadSave()">Load</button></li>
+ <li><button class="btn btn-default" type="button" onclick="saveGame()">Save game</button></li>
+ <li><button class="btn btn-default" type="button" onclick="downGame()">Download current game</button></li>
<li><button class="btn btn-default" type="button" onclick="downloadSave()">Download</button></li>
+ <li><input type="file" id="selectedFile" style="display: none;" accept=".save.xml" onchange="uploadSave()" />
+ <button class="btn btn-default" type="button" onclick="document.getElementById('selectedFile').click()">Upload</button></li>
<li><button class="btn btn-default" type="button" onclick="deleteSave()">Delete</button></li>
</ul>
</div>