From b84729661905ea6da452a35a050e606a7693686f Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Sat, 10 Jun 2017 09:24:40 -0700 Subject: [PATCH] added hello-data, renamed helloajax.js to sandbox.js --- resources/sandbox/{helloajax.js => sandbox.js} | 9 ++++++--- sandbox.html | 8 ++++++-- 2 files changed, 12 insertions(+), 5 deletions(-) rename resources/sandbox/{helloajax.js => sandbox.js} (75%) diff --git a/resources/sandbox/helloajax.js b/resources/sandbox/sandbox.js similarity index 75% rename from resources/sandbox/helloajax.js rename to resources/sandbox/sandbox.js index 8412f4a..ba9c24c 100644 --- a/resources/sandbox/helloajax.js +++ b/resources/sandbox/sandbox.js @@ -8,9 +8,12 @@ window.onload = function(){ document.getElementById('atom-players').innerHTML = JSON.stringify(data); }); - $.get("https://server.figytuna.com:8080/ali", function(data){ - console.log(data); - document.getElementById('button-hello').innerHTML = data; + $.get("https://server.figytuna.com:8080/ali/hello/world", function(data){ + document.getElementById('hello-world').innerHTML = data; + }); + + $.get("https://server.figytuna.com:8080/ali/hello/data", function(data){ + document.getElementById('hello-data').innerHTML = data; }); /* let http = new XMLHttpRequest(); diff --git a/sandbox.html b/sandbox.html index 0670b54..09b358b 100644 --- a/sandbox.html +++ b/sandbox.html @@ -4,7 +4,7 @@ Developer's Sandbox - +