aboutsummaryrefslogtreecommitdiffstats
path: root/index.xhtml
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2016-05-04 14:25:50 +0200
committerpiernov <piernov@piernov.org>2016-05-04 14:25:50 +0200
commit036d5a2e88232e966cfd0cc82277d5fba13e71ff (patch)
tree3ef383c145c43f459374b5ce5ae6beaaa3cbbd78 /index.xhtml
parentadb3df3d85ee081fd961602397d11186de08fef0 (diff)
downloadcandybox-036d5a2e88232e966cfd0cc82277d5fba13e71ff.tar.gz
candybox-036d5a2e88232e966cfd0cc82277d5fba13e71ff.tar.bz2
candybox-036d5a2e88232e966cfd0cc82277d5fba13e71ff.tar.xz
candybox-036d5a2e88232e966cfd0cc82277d5fba13e71ff.zip
Add upload button for save + move save/download button
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 6627ec5..5e0752a 100644
--- a/index.xhtml
+++ b/index.xhtml
@@ -33,8 +33,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>
@@ -90,7 +88,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>