Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Astrosp committed Jun 5, 2024
1 parent 90eaa30 commit 93e77c4
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 10 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 2 additions & 3 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
<title>OSINT Tools</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<script src="scripts.js"></script>
</head>
<body>
<form action="" class="search-bar">
<input type="text" id="keyword" placeholder="Search What you Want!">
<button type="submit" onclick="searchTools()"><img src="img/search.png"></button>
<input type="text" id="search_text" placeholder="Search What you Want!">
<button type="submit" onclick="matches()"><img src="img/search.png"></button>
</form>
<div id="results"></div>
</body>
Expand Down
47 changes: 40 additions & 7 deletions site/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,53 @@
// document.getElementById("results").innerHTML = results.join("<br>");
// }

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



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();
Expand All @@ -40,7 +74,6 @@ async function searchTools() {
document.getElementById("results").innerHTML = results.join("<br>");
} catch (error) {
console.error("Error:", error);
const errorMessage = error.message || "An error occurred. Please try again later.";
document.getElementById("results").innerHTML = `<p style="color: red;">${errorMessage}</p>`;
document.getElementById("results").innerHTML = `<p style="color: red;">${error.message || "An error occurred. Please try again."}</p>`;
}
}
}

0 comments on commit 93e77c4

Please sign in to comment.