fix
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
var globalObject;
|
var globalObject;
|
||||||
$('#update').click(function () {
|
$('#update').click(function () {
|
||||||
globalObject = updateData();
|
updateData();
|
||||||
fillTable(globalObject, $('table'));
|
fillTable(globalObject, $('table'));
|
||||||
graphSpectralData(globalObject, $('#spectrogram'));
|
graphSpectralData(globalObject, $('#spectrogram'));
|
||||||
});
|
});
|
||||||
@@ -11,7 +11,8 @@ function updateData () {
|
|||||||
const url = 'http://' + window.location.hostname + ':5000/data';
|
const url = 'http://' + window.location.hostname + ':5000/data';
|
||||||
// I understand how bad this line looks. Please don't judge me...
|
// I understand how bad this line looks. Please don't judge me...
|
||||||
$.get(url, function (data, status) { // standard jQuery AJAX
|
$.get(url, function (data, status) { // standard jQuery AJAX
|
||||||
return data;
|
globalObject = data;
|
||||||
|
console.log(data);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user