This commit is contained in:
x
2025-11-04 21:10:41 +01:00
parent 0ce0abd0d3
commit 10a9c37d26
3 changed files with 63 additions and 9 deletions

View File

@@ -332,4 +332,12 @@ function init() {
window.addEventListener('wheel', onWheel, { passive: false });
}
window.addEventListener('load', init);
window.addEventListener('load', init);
document.getElementById('sbtForm').addEventListener('submit', (e) => {
e.preventDefault();
const input = document.getElementById('sbtInput').value.trim();
if (input) {
window.location.href = `/tag/${encodeURIComponent(input)}`;
}
});