|
|
@ -1,4 +1,12 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// variables and constants
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//apiURL="http://localhost:8888"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
apiURL="https://sonar.jacquesingram.online" |
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function () { |
|
|
|
$(document).ready(function () { |
|
|
|
|
|
|
|
|
|
|
|
fetch(); |
|
|
|
fetch(); |
|
|
@ -14,7 +22,7 @@ $.ajax({ |
|
|
|
|
|
|
|
|
|
|
|
type: "GET", |
|
|
|
type: "GET", |
|
|
|
|
|
|
|
|
|
|
|
url: "http://localhost:8888"+ "/jobs/", |
|
|
|
url: apiURL + "/jobs/", |
|
|
|
|
|
|
|
|
|
|
|
dataType: 'json', // <-- Set dataType to 'json'
|
|
|
|
dataType: 'json', // <-- Set dataType to 'json'
|
|
|
|
|
|
|
|
|
|
|
@ -47,7 +55,7 @@ $.ajax({ |
|
|
|
|
|
|
|
|
|
|
|
type: "GET", |
|
|
|
type: "GET", |
|
|
|
|
|
|
|
|
|
|
|
url: "http://localhost:8888"+ "/jobs/load", |
|
|
|
url: apiURL + "/jobs/load", |
|
|
|
|
|
|
|
|
|
|
|
dataType: 'json', // <-- Set dataType to 'json'
|
|
|
|
dataType: 'json', // <-- Set dataType to 'json'
|
|
|
|
|
|
|
|
|
|
|
|