   if (!r.ok) {
            table.innerText = await r.text();
            return;
        }

        drawTable(table, await r.json());
    }
</script>


<button id="stream">Temporary stream</button>
<div class="module">
    <form id="stream-form" style="padding: 10px">
        <input type="text" name="name" placeholder="name">
        <input type="text" name="src" placeholder="url">
        <input type="submit" value="add">
    </form>
</div>
<script>
    document.getElementById('stream').addEventListener('