Skip to content

Commit

Permalink
Create client.js
Browse files Browse the repository at this point in the history
  • Loading branch information
walkerkq authored Sep 25, 2018
1 parent e4147a8 commit 63a71c6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions javascript/client.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

$.ajax({
url: "https://data.nasa.gov/resource/gymh-eyc2.json",
data: {},
success: function(data) {
$("pre").text(JSON.stringify(data, null, "\t"));
},
error: function(msg) {
//todo: handle error gracefully
}
});

0 comments on commit 63a71c6

Please sign in to comment.