Files
TeraHz/frontend/frontend.js
2019-04-06 15:56:07 +02:00

11 lines
269 B
JavaScript

$('#update').click(updateData);
function updateData () {
const url = 'http://' + window.location.hostname + ':5000/data';
$.get(url, function (data, status) {
$('#debug').text(data);
for (const i in data[0]) {
$('#'+i).text(data[0][i]);
}
});
}