aboutsummaryrefslogtreecommitdiffstats
path: root/index.xhtml
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2016-05-03 10:37:18 +0200
committerpiernov <piernov@piernov.org>2016-05-03 10:37:18 +0200
commit64e184b901fd4e7c9a829d14c5c34416923171c3 (patch)
tree70b5281ca85a38ef2a077e226dcce56a40ed563a /index.xhtml
parentadd9d3248a5adc02b071a301005c6f11195f7f7b (diff)
parentb8112f72b322fe5bf7048ac76251c8c637b9fee2 (diff)
downloadcandybox-64e184b901fd4e7c9a829d14c5c34416923171c3.tar.gz
candybox-64e184b901fd4e7c9a829d14c5c34416923171c3.tar.bz2
candybox-64e184b901fd4e7c9a829d14c5c34416923171c3.tar.xz
candybox-64e184b901fd4e7c9a829d14c5c34416923171c3.zip
Merge branch 'master' into alexichi
Diffstat (limited to 'index.xhtml')
-rw-r--r--index.xhtml18
1 files changed, 14 insertions, 4 deletions
diff --git a/index.xhtml b/index.xhtml
index 2745c8a..ed3e7a6 100644
--- a/index.xhtml
+++ b/index.xhtml
@@ -16,7 +16,7 @@
<script type="text/javascript" charset="utf-8" src="js/shop.js"></script>
<script type="text/javascript" charset="utf-8" src="js/gui.js"></script>
<script type="text/javascript" charset="utf-8" src="js/dungeon.js"></script>
-
+ <script type="text/javascript" charset="utf-8" src="js/savegame.js"></script>
</head>
<body onload="init()" onhashchange="changeTab()">
<div class="container-fluid">
@@ -34,6 +34,8 @@
<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>
@@ -64,6 +66,7 @@
<li role="presentation"><a href="#tab2" data-toggle="tab">Shop</a></li>
<li role="presentation"><a href="#tab3" data-toggle="tab">Inventory</a></li>
<li role="presentation"><a href="#tab4" data-toggle="tab">Dungeon</a></li>
+ <li role="presentation" class="pull-right"><a href="#tab5" data-toggle="tab" onclick="listSaves()">Save</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane" id="tab1">
@@ -83,11 +86,18 @@
<div class="tab-pane" id="tab4">
<h4>Look at how poor you are! You can't access the dungeon, it is only for the elite.</h4>
</div>
+ <div class="tab-pane" id="tab5">
+ <h4>Saved games:</h4>
+ <div class="form" id="listsaves">
+ </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="downloadSave()">Download</button></li>
+ <li><button class="btn btn-default" type="button" onclick="deleteSave()">Delete</button></li>
+ </ul>
+ </div>
</div>
</div>
-
-
-
</div>
</div>
</div>