Skip to content

Commit

Permalink
add back redirectToPage func (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwarz2030 authored Mar 14, 2024
1 parent 27ea712 commit 4218de8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/layouts/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@
},
debug: false, // Set debug to true if you want to inspect the dropdown
});
function redirectToPage() {
var selectBox = document.getElementById("languages");
var redirect = selectBox.options[selectBox.selectedIndex].value;
window.location.href = redirect;
}
</script>
{% block footer %}{% endblock %}
<!-- LAST BUILD: {{ build.env}} {{ build.timestamp | dateToISO }} -->
Expand Down

0 comments on commit 4218de8

Please sign in to comment.