  });
</script>


<button id="onvif">ONVIF</button>
<div class="module">
    <form id="onvif-form" style="padding: 10px">
        <input type="text" name="src" placeholder="onvif://user:pass@192.168.1.123:80" size="50">
        <input type="submit" value="test">
    </form>
    <table id="onvif-table"></table>
</div>
<script>
    document.getElementById('onvif').addEventListener('click', async ev => {
        ev.target.nextElementSibling.style.display = 'block';
        await getSources('onvif-table', 'api/