<script type="module">
    // Validates with [jshint]
    /* jshint esversion: 6 */
    const colorItems = document.querySelectorAll('.color-list li');

    function setup() {
        // Color List
        for (const colorItem of colorItems) {
            colorItem.onclick = selectColor;
        }

        // Request Buttons
        const btns = document.querySelectorAll('button.request');
        for (const btn of btns) {
            btn.onclick = submitRequest;
        }
    }

    function selectColor(e)