Skip to content

Commit ae9949b

Browse files
committed
fixed responsive navbar issue
1 parent ecb8766 commit ae9949b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

themes/mapmint/layouts/_partials/footer.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,17 @@ <h1 class="title"><span class="logo"></span><a href="index.html">Map<span class=
8383
<script src="../../js/{{ . }}"></script>
8484
{{ end }}
8585
{{ end }}
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

Comments
 (0)