0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-11-21 21:48:21 -05:00
websurfx/public/static/index.js
2023-05-26 13:08:17 +05:30

11 lines
224 B
JavaScript

let search_box = document.querySelector('input')
function search_web() {
window.location = `search?q=${search_box.value}`
}
search_box.addEventListener('keyup', (e) => {
if (e.key === 'Enter') {
search_web()
}
})