blob: 1760afa13eb524dccd89449d10c5db5cbebd35fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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!");
}
|