aboutsummaryrefslogtreecommitdiffstats
path: root/index.xhtml
diff options
context:
space:
mode:
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>