aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/dungeon.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/js/dungeon.js b/js/dungeon.js
new file mode 100644
index 0000000..1760afa
--- /dev/null
+++ b/js/dungeon.js
@@ -0,0 +1,18 @@
+function buildDungeon(){
+ sendRequest("craftmine.php", "op=buildDungeon", function(ret) {
+ displayDungeon();
+ debitAccount(ret.cost);
+ showInfo("You can acces the dungeon now. Good Luck.");
+ });
+}
+
+function displayDungeon(){
+ var tmphtml = "<br/>";
+ tmphtml += "<button type=\"button\" class=\"btn btn-primary\" onclick=\"launchDungeon()\">Launch</button>";
+ //tmphtml += "</li>";
+ document.getElementById("tab4").innerHTML = tmphtml;
+}
+
+function launchDungeon(){
+ console.log("Battle!");
+}