Files
TeraHz/frontend/frontend.js
T
2019-04-06 15:18:43 +02:00

8 lines
195 B
JavaScript

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