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 @@ OSINT Tools -
diff --git a/site/script.js b/site/script.js index de53a7f..9c163cb 100644 --- a/site/script.js +++ b/site/script.js @@ -12,19 +12,53 @@ // document.getElementById("results").innerHTML = results.join("
"); // } +// async function searchTools() { +// try { +// const keyword = document.getElementById("keyword").value; + +// // Validate keyword (optional) +// if (!keyword.trim()) { +// 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}`); +// } + +// const contents = await response.text(); +// const lines = contents.split("\n"); +// const results = []; + +// for (const line of lines) { +// if (line.toLowerCase().includes(keyword.toLowerCase())) { +// results.push(line); +// } +// } + +// document.getElementById("results").innerHTML = results.join("
"); +// } catch (error) { +// console.error("Error:", error); +// const errorMessage = error.message || "An error occurred. Please try again later."; +// document.getElementById("results").innerHTML = `

${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("
"); } catch (error) { console.error("Error:", error); - const errorMessage = error.message || "An error occurred. Please try again later."; - document.getElementById("results").innerHTML = `

${errorMessage}

`; + document.getElementById("results").innerHTML = `

${error.message || "An error occurred. Please try again."}

`; } -} +} \ No newline at end of file