diff --git a/README.md b/README.md index f6eef50..0f2544f 100644 --- a/README.md +++ b/README.md @@ -1267,6 +1267,7 @@ Enter two images and the difference will show up below [⇧ Top](#index) ## GEO +- [GeoSpy](https://geospy.web.app/) - Photo location prediction using AI - [GEOINT](https://start.me/p/W1kDAj/geoint) - every tools you need for geographical data gathering - [GeoNames](https://www.geonames.org/) - The GeoNames geographical database covers all countries and contains over eleven million placenames that are available for download free of charge. - [Geoseer.net](https://www.geoseer.net/) - Search over 3.5 million distinct spatial GIS WMS, WCS, WMTS datasests hosted on over 40k live services from around the world. diff --git a/site/index.html b/site/index.html index 6c2d143..220a925 100644 --- a/site/index.html +++ b/site/index.html @@ -3,12 +3,11 @@
${errorMessage}
`; +// } +// } + + + async function searchTools() { try { - const keyword = document.getElementById("keyword").value; + const keyword = document.getElementById("keyword").value.trim(); - // Validate keyword (optional) - if (!keyword.trim()) { + if (!keyword) { throw new Error("Please enter a valid keyword to search."); } const response = await fetch("./README.md"); if (!response.ok) { - throw new Error(`HTTP error! status: ${response.status}`); + throw new Error(`HTTP error! Status: ${response.status}`); } const contents = await response.text(); @@ -40,7 +74,6 @@ async function searchTools() { document.getElementById("results").innerHTML = results.join("${errorMessage}
`; + document.getElementById("results").innerHTML = `${error.message || "An error occurred. Please try again."}
`; } -} +} \ No newline at end of file