We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecb8766 commit ae9949bCopy full SHA for ae9949b
themes/mapmint/layouts/_partials/footer.html
@@ -83,3 +83,17 @@ <h1 class="title"><span class="logo"></span><a href="index.html">Map<span class=
83
<script src="../../js/{{ . }}"></script>
84
{{ end }}
85
86
+
87
+<script>
88
+document.addEventListener("DOMContentLoaded", function () {
89
+ const navSelect = document.querySelector("#main-nav select");
90
+ if (navSelect) {
91
+ navSelect.addEventListener("change", function () {
92
+ const url = this.value;
93
+ if (url && url !== "#") {
94
+ window.location.href = url;
95
+ }
96
+ });
97
98
99
+</script>
0 commit comments