mirror of
https://github.com/falsycat/ar.falsy.cat.git
synced 2024-12-25 16:14:50 +00:00
fix: relink search button (move outside content load listener)
This commit is contained in:
parent
714b4fcfa3
commit
cdc4f1a840
@ -239,20 +239,18 @@ async function run() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
window.addEventListener('DOMContentLoaded', () => {
|
const searchButton = document.getElementById("search-icon")
|
||||||
const searchButton = document.getElementById("search-icon")
|
searchButton.addEventListener('click', (evt) => {
|
||||||
searchButton.addEventListener('click', (evt) => {
|
openSearch()
|
||||||
openSearch()
|
})
|
||||||
})
|
searchButton.addEventListener('keydown', (evt) => {
|
||||||
searchButton.addEventListener('keydown', (evt) => {
|
openSearch()
|
||||||
openSearch()
|
})
|
||||||
})
|
searchContainer.addEventListener('click', (evt) => {
|
||||||
searchContainer.addEventListener('click', (evt) => {
|
closeSearch()
|
||||||
closeSearch()
|
})
|
||||||
})
|
document.getElementById("search-space").addEventListener('click', (evt) => {
|
||||||
document.getElementById("search-space").addEventListener('click', (evt) => {
|
evt.stopPropagation()
|
||||||
evt.stopPropagation()
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user