Skip to content

Commit

Permalink
Initial JS file with API endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
nmebrown committed Jan 10, 2021
1 parent 05a4f39 commit 22a6c03
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/scripts/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$(document).ready(function(){

// Fetch data from the Represent Civic Information API
$.ajax({
url: "https://represent.opennorth.ca",
dataType: 'jsonp',
success: function(results){
console.log(results);
}
});

// Do functions with it

console.log('Compiled');
});

0 comments on commit 22a6c03

Please sign in to comment.