From 13a5ee7a86dc167850f99b31481e08feb6ef8cae Mon Sep 17 00:00:00 2001
From: Brendan <94894839+abrendan@users.noreply.github.com>
Date: Wed, 2 Oct 2024 10:40:01 +0000
Subject: [PATCH] Changes to the layout
---
public/index.html | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/public/index.html b/public/index.html
index 302862c..7b0472f 100644
--- a/public/index.html
+++ b/public/index.html
@@ -1,28 +1,26 @@
-
- l00kup// - Domain Lookup Services
+ Domain Lookups
l00kup// - Domain Lookup Services
- Made by abrendan
@@ -33,6 +31,7 @@
document.getElementById('reverseLookupForm').addEventListener('submit', function(e) {
e.preventDefault();
const domain = document.getElementById('reverseDomainInput').value;
+ document.getElementById('output').innerHTML = ''; // Clear previous output
fetch('/reverseLookup', {
method: 'POST',
@@ -54,6 +53,7 @@
document.getElementById('whoisLookupForm').addEventListener('submit', function(e) {
e.preventDefault();
const domain = document.getElementById('whoisDomainInput').value;
+ document.getElementById('output').innerHTML = ''; // Clear previous output
fetch('/whoisLookup', {
method: 'POST',
@@ -64,7 +64,7 @@
})
.then(response => response.json())
.then(data => {
- document.getElementById('output').innerHTML += `WHOIS Information
${data.whois}`;
+ document.getElementById('output').innerHTML = `WHOIS Information
${data.whois}`;
})
.catch(error => {
console.error('Error:', error);
@@ -72,5 +72,4 @@
});
-
-
+