diff options
author | alexichi <alexbankai96@gmail.com> | 2016-04-23 20:40:52 +0200 |
---|---|---|
committer | alexichi <alexbankai96@gmail.com> | 2016-04-23 20:40:52 +0200 |
commit | 725c3529c3c2f63998578cfbcb070bdfa3a9ce19 (patch) | |
tree | 724e899c4a083b6249347273792b46189acb0b25 /js | |
parent | d46a4d75594cebef5fc0c25104bde6242be0571e (diff) | |
download | candybox-725c3529c3c2f63998578cfbcb070bdfa3a9ce19.tar.gz candybox-725c3529c3c2f63998578cfbcb070bdfa3a9ce19.tar.bz2 candybox-725c3529c3c2f63998578cfbcb070bdfa3a9ce19.tar.xz candybox-725c3529c3c2f63998578cfbcb070bdfa3a9ce19.zip |
add file for the guild ,client side (not finish)
Diffstat (limited to 'js')
-rw-r--r-- | js/guild.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/js/guild.js b/js/guild.js new file mode 100644 index 0000000..28f58b8 --- /dev/null +++ b/js/guild.js @@ -0,0 +1,18 @@ +function hireMiner(){ + sendRequest("craftmine.php", "op=hireMiner", function() { + //datas.gold -= parseInt(datas.mine); + var ret = xhr.responseText; + console.log(ret); + //datas.gold = ret; + //updateDatas("gold"); + //updateDatas("miners"); + }) +} + +function createGuild(){ + sendRequest("craftmine.php", "op=createGuild", function() { + var ret = xhr.responseText; + console.log(ret); + }) +} + |