aboutsummaryrefslogtreecommitdiffstats
path: root/index.xhtml
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2016-05-03 10:28:50 +0200
committerpiernov <piernov@piernov.org>2016-05-03 10:28:50 +0200
commitb8112f72b322fe5bf7048ac76251c8c637b9fee2 (patch)
treedaf86f704f8e3246d54ae3eab2fa37aba9346dd5 /index.xhtml
parent6bff76321ab05d6193bc1d35327cb44128f9ed66 (diff)
parentadb3df3d85ee081fd961602397d11186de08fef0 (diff)
downloadcandybox-b8112f72b322fe5bf7048ac76251c8c637b9fee2.tar.gz
candybox-b8112f72b322fe5bf7048ac76251c8c637b9fee2.tar.bz2
candybox-b8112f72b322fe5bf7048ac76251c8c637b9fee2.tar.xz
candybox-b8112f72b322fe5bf7048ac76251c8c637b9fee2.zip
Merge branch 'feat/savegame' into piernov
Diffstat (limited to 'index.xhtml')
-rw-r--r--index.xhtml15
1 files changed, 12 insertions, 3 deletions
diff --git a/index.xhtml b/index.xhtml
index d12585f..6627ec5 100644
--- a/index.xhtml
+++ b/index.xhtml
@@ -15,6 +15,7 @@
<script type="text/javascript" charset="utf-8" src="js/guild.js"></script>
<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/savegame.js"></script>
</head>
<body onload="init()" onhashchange="changeTab()">
<div class="container-fluid">
@@ -64,6 +65,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">
@@ -82,11 +84,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>