chorus-client/Legacy/index.html

24 lines
585 B
HTML
Raw Permalink Normal View History

2020-01-01 20:36:10 +00:00
<!DOCTYPE html>
<html>
<body onload="init()">
<p><span id="res"></span></p>
<script>
function init() {
setInterval(() => {
loadDoc("racestate.txt");
}, 250);
}
function loadDoc(url) {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("res").innerHTML = this.responseText;
}
};
xhttp.open("GET", url, true);
xhttp.send();
}
</script>
</body>
</html>