From 725c3529c3c2f63998578cfbcb070bdfa3a9ce19 Mon Sep 17 00:00:00 2001 From: alexichi Date: Sat, 23 Apr 2016 20:40:52 +0200 Subject: add file for the guild ,client side (not finish) --- js/guild.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 js/guild.js 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); + }) +} + -- cgit v1.2.3-70-g09d2