hitman/user/index.html

23 lines
513 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<p>oy, guv, there've been <span id="allhits">no</span> hits, mate.</p>
<script defer>
const hits = document.getElementById('allhits');
fetch('http://localhost:5000/hit/user').then((resp) => {
return resp.text();
}).then((data) => {
hits.innerHTML = data;
});
</script>
</body>
</html>