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

8 lines
199 B
JavaScript

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