From 1c7093307a27f8edcf937286993d10d2bf4d899c Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Tue, 25 Feb 2025 23:04:47 +1100 Subject: [PATCH] feat: Add new UI --- templates/assets/js/index.js | 13 +-- templates/index.html | 57 ++++++++++--- tools.py | 154 ++++++++++++++++++----------------- 3 files changed, 133 insertions(+), 91 deletions(-) diff --git a/templates/assets/js/index.js b/templates/assets/js/index.js index 8bb76ad..a52c1a7 100644 --- a/templates/assets/js/index.js +++ b/templates/assets/js/index.js @@ -22,9 +22,10 @@ function getSSL() { history.pushState(null, null, url); // Add a loading spinner - document.getElementById("results").innerHTML = `
+ document.getElementById("ssl-results").innerHTML = `
+
Loading... -
`; +
`; // Send a GET request to the API @@ -34,7 +35,7 @@ function getSSL() { // Check if the request was successful if (data.success) { // Display the results - document.getElementById("results").innerHTML = ` + document.getElementById("ssl-results").innerHTML = `

SSL Certificate Details