Use sockets to broadcast morse progress.

This commit is contained in:
Pim Kunis 2019-07-31 00:20:09 +02:00
parent 78af9da586
commit 5bb6584286
7 changed files with 54 additions and 62 deletions

View file

@ -4,8 +4,12 @@
<div id="buttonwrap">
<input onclick="start()" value="Start" type="button" class="button">
<p>Response status:</p>
<p id="response"></p>
<div id="response-block" style="visibility:hidden">
<h2>Response status:</h2>
<p id="response"></p>
<h2>Progress:</h2>
<progress id="morse-progress" max="100" value="0">0%</progress>
</div>
</div>
<a href="http://www.geochecker.com/index.php?code=d9dbdc4542a4911a5f81a51bc9312a35&amp;action=check&amp;wp=47433743363432&amp;name=4573726f6d">en: check your coordinate on GeoChecker.com nl: controleer je co&ouml;rdinaat op GeoChecker.</a>
@ -31,6 +35,7 @@
function start() {
responseP.innerHTML = "Starting...";
document.getElementById("response-block").style.visibility = "visible";
xhttp.open("GET", "/start", true);
xhttp.send();
}