
            const anchors = document.getElementsByName(window.location.hash.substring(1));
            if (anchors.length == 1 && anchors[0].children.length > 0) {
                anchors[0].children[0].click();
            }
        }

        showPreview();

        const languageInput = document.getElementById("language-input");
        languageInput.value = language;
        languageInput.addEventListener('change', function () {
            window.location.href = '/' + (languageInput.value == 'en' ? ''