0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-11-22 05:58:21 -05:00
websurfx/public/static/index.js

11 lines
224 B
JavaScript
Raw Normal View History

2023-04-22 07:35:07 -04:00
let search_box = document.querySelector('input')
function search_web() {
window.location = `search?q=${search_box.value}`
}
search_box.addEventListener('keyup', (e) => {
2023-05-26 03:38:17 -04:00
if (e.key === 'Enter') {
2023-04-22 07:35:07 -04:00
search_web()
}
})