))
        console.log(json)
    }

    function delCommand(index) {
        var req = new XMLHttpRequest()
        req.open('POST', '/delcommand/')
        var json = {
            'IDX': index
        }
        req.send(JSON.stringify(json))
        console.log(json)
    }

    function toggleCalibration() {
        let obj = document.getElementById('calibration')
        if (obj.checked) obj.checked = false
    }
</script>
{% endblock %}