initial commit
This commit is contained in:
commit
15fc415301
30 changed files with 4359 additions and 0 deletions
10
public/static/index.js
Normal file
10
public/static/index.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
let search_box = document.querySelector('input')
|
||||
function search_web() {
|
||||
window.location = `search?q=${search_box.value}`
|
||||
}
|
||||
|
||||
search_box.addEventListener('keyup', (e) => {
|
||||
if (e.keyCode === 13) {
|
||||
search_web()
|
||||
}
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue