The real test of strength

This commit is contained in:
alisolarflare 2017-06-01 05:21:45 -04:00
parent 8f8bf381ab
commit 8037c123b9
3 changed files with 25 additions and 0 deletions

4
jquery-3.2.1.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -3,6 +3,11 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Developer's Sandbox</title> <title>Developer's Sandbox</title>
<script
src="http://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous">
</script>
<script src="./sandbox/helloajax.js" type="text/javascript"> <script src="./sandbox/helloajax.js" type="text/javascript">
</script> </script>
@ -13,5 +18,11 @@
<a href="./sandbox.html">Sandbox</a> <a href="./sandbox.html">Sandbox</a>
</nav> </nav>
<h1>Developer's Sandbox</h1> <h1>Developer's Sandbox</h1>
<h2>ATOM Live Server Stuff</h2>
<p id="atom-players"></p>
<h2>ButtonPresents Stuff</h2>
<p id="button-hello"></p>
</body> </body>
</html> </html>

View file

@ -3,7 +3,16 @@ https://www.youtube.com/watch?v=h0ZUpPiV1ac
*/ */
window.onload = function(){ window.onload = function(){
$.get("./data/players.json", function(data){
console.log(data);
document.getElementById('atom-players').innerHTML = JSON.stringify(data);
});
$.get("http://server.figytuna.com:8080/ali", function(data){
console.log(data);
document.getElementById('button-hello').innerHTML = data;
});
/*
let http = new XMLHttpRequest(); let http = new XMLHttpRequest();
http.onreadystatechange = function(){ http.onreadystatechange = function(){
@ -21,6 +30,7 @@ window.onload = function(){
const isASYNC = true; const isASYNC = true;
http.open(method, filepath, isASYNC); http.open(method, filepath, isASYNC);
http.send(); http.send();
*/
} }