From 9167b21a33dcdf42e7ef1aca9617518e57f1f64f Mon Sep 17 00:00:00 2001
From: Krrish Sehgal <133865424+krrish-sehgal@users.noreply.github.com>
Date: Wed, 6 Nov 2024 01:25:34 +0530
Subject: [PATCH] minor link updates
---
website/templates/malicious_ips_list.html | 2 +-
website/templates/report_ip.html | 31 -----------------------
2 files changed, 1 insertion(+), 32 deletions(-)
diff --git a/website/templates/malicious_ips_list.html b/website/templates/malicious_ips_list.html
index cc757bef0..a5dd2886a 100644
--- a/website/templates/malicious_ips_list.html
+++ b/website/templates/malicious_ips_list.html
@@ -122,7 +122,7 @@
Reported Malicious IPs
-
-
@@ -168,36 +162,11 @@
const validationResult = document.getElementById('ip_address');
if (validateIP(ipInput)) {
-
- // validationResult.style.borderColor = 'green';
return true;
} else {
alert("invalid ip")
- validationResult.style.borderColor = 'red';
return false;
}
}
-
- document.getElementById("check-duplicates").addEventListener("click", async function() {
- const uri = document.getElementById("ip_address").value;
-
- const response = await fetch("/api/v1/urlcheck/", {
- method: "POST",
- headers: {
- "Content-Type": "application/json"
- },
- body: JSON.stringify({ "domain_url": uri })
- });
-
- const data = await response.json();
- const duplicateList = document.getElementById("duplicate-list");
- duplicateList.innerHTML = ""; // Clear list
-
- data.forEach(issue => {
- duplicateList.innerHTML += `
${issue.description}`;
- });
-
- document.getElementById("duplicate-container").style.display = "block";
- });
{% endblock after_js %}