Skip to content

Commit b6041d2

Browse files
committed
Fixing JS inclusion
1 parent 4ee5b30 commit b6041d2

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

_includes/tag-dropdown.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
<!-- JavaScript to handle navigation -->
2-
<script>
3-
function navigateToTag() {
1+
function navigateToTag() {
42
const select = document.getElementById("tag-select");
53
const selectedUrl = select.value;
64

75
if (selectedUrl) {
8-
window.location.href = selectedUrl;
6+
window.location.href = selectedUrl;
97
} else {
10-
alert("Please select a keyword from the list.");
8+
alert("Please select a keyword from the list.");
119
}
12-
}
13-
</script>
10+
}

0 commit comments

Comments
 (0)