Improve search functionality by encapsulating event listeners in an IIFE and enhancing visibility toggle for the search close icon

This commit is contained in:
vista-man
2025-03-27 09:08:41 +01:00
parent 7d9ce536fc
commit d5a242e7ea
3 changed files with 273 additions and 267 deletions

View File

@@ -5,6 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Pokedex</title>
<link rel="stylesheet" href="./style.css" />
<link rel="preload" href="./style.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="./style.css"></noscript>
<script src="./pokemon.js" defer></script>
<script src="./search.js" defer></script>
<link rel="icon" href="./assets/pokeball.png" type="image/x-icon">