Newer
Older
minecraft-ui / etc / static / ui.html
Simon Lindgren on 10 Mar 2018 354 bytes first commit
<!DOCTYPE html>
<html>
<body>

<textarea id="minecraft_log" style="width:100%;" rows="40">
</textarea>

</body>
</html>

<script>
    fetch("http://localhost:8080/minecraft-log")
            .then(res => res.json())
    .then((out) => {
        document.getElementById('minecraft_log').value = out.log;
    })
    .catch(err => { throw err });

</script>