This commit is contained in:
Joey Kimsey
2025-01-20 22:42:30 -05:00
parent 1d8d48e7c1
commit ca50450682
55 changed files with 1385 additions and 337 deletions

View File

@ -162,3 +162,21 @@ document.addEventListener('DOMContentLoaded', function () {
});
}
});
document.addEventListener('DOMContentLoaded', function () {
const postSelector = document.getElementById('postSelector');
const goToPostButton = document.getElementById('goToPost');
if ( postSelector && goToPostButton ) {
goToPostButton.addEventListener('click', function () {
const selectedValue = postSelector.value;
if (selectedValue) {
const url = `/blog/post/${selectedValue}`;
window.location.href = url;
} else {
alert('Please select an option before proceeding.');
}
});
}
});