aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralexichi <alexbankai96@gmail.com>2016-04-23 20:35:05 +0200
committeralexichi <alexbankai96@gmail.com>2016-04-23 20:35:05 +0200
commit56145311017bb5ede4b65f531e50d92a1edc1544 (patch)
treea0bb51b8dcd1339f3f8f884b295bc44f41afabfb
parent10a159da62d269ad7bd03025f08eac620c69cf1a (diff)
downloadcandybox-56145311017bb5ede4b65f531e50d92a1edc1544.tar.gz
candybox-56145311017bb5ede4b65f531e50d92a1edc1544.tar.bz2
candybox-56145311017bb5ede4b65f531e50d92a1edc1544.tar.xz
candybox-56145311017bb5ede4b65f531e50d92a1edc1544.zip
add 2 buttons for createGuild and hireMiner
-rw-r--r--index.xhtml9
1 files changed, 7 insertions, 2 deletions
diff --git a/index.xhtml b/index.xhtml
index 5b38b69..30352bf 100644
--- a/index.xhtml
+++ b/index.xhtml
@@ -11,13 +11,18 @@
<meta name="author" content="Alexandre Renoux,Pierre-Emmanuel Novac"/>
<title>CraftMine</title>
<script type="text/javascript" charset="utf-8" src="js/craftmine.js"></script>
+ <script type="text/javascript" charset="utf-8" src="js/guild.js"></script>
</head>
<body onload="init()">
<h1>CraftMine</h1>
- <span id="gold">0</span>
- <span id="mine">0</span>
+ <p>Gold : <span id="gold">0</span></p>
+ <p>Mine : <span id="mine">0</span></p>
+ <p>Miners : <span id="miners">0</span></p>
+ <span id="guild"></span>
<form class="form-horizontal" method="post" action="craftmine.php">
<button type="button" name="withdraw" onclick="withdrawMine()">Withdraw</button>
+ <button type="button" name="createGuild" onclick="createGuild()">Create your guild</button>
+ <button type="button" name="hireMiner" onclick="hireMiner()">Hire one miner</button>
</form>
</body>
</html>