mirror of
https://codeberg.org/vlw/vlw.se.git
synced 2025-09-13 21:13:40 +02:00
fix: remove unused searchbox queryselect from index js (#23)
This commit is contained in:
parent
3154afab3c
commit
87cf63c884
1 changed files with 0 additions and 12 deletions
|
@ -106,15 +106,3 @@ if (window.matchMedia("(hover: hover)")) {
|
|||
// Reset color on navigation
|
||||
document.querySelector(vv._env.MAIN).addEventListener(vv.Navigation.events.LOADED, () => updateColor(), { once: true });
|
||||
}
|
||||
|
||||
// Open search box from mobile fullscreen menu
|
||||
{
|
||||
// Open search dialog when searchbox is clicked
|
||||
document.querySelector("menu searchbox").addEventListener("click", () => {
|
||||
// Search box dialog element
|
||||
document.querySelector("dialog.search").showModal();
|
||||
|
||||
// Close fullscreen menu
|
||||
document.querySelector("menu").classList.remove("active");
|
||||
});
|
||||
}
|
Loading…
Add table
Reference in a new issue