endif }}

        // Correct last answer
        let last_answer_correct = {{ player.last_answer_correct|json }};

        if (last_answer_correct !== null) {
            showFeedback(last_answer_correct, {{ player.number_of_attempts|json }});
        }

        // Event listener for sending via button
        sendbutton.addEventListener("click", () => {
            sendRequest();
        });

        // Event listener for sending via enter
        inputBox.addEventListener("keypress", (event) => {
        