From ff25f5ce46e3d3466d6d65b84aca5f2d78bf48a2 Mon Sep 17 00:00:00 2001 From: Blob2763 <88489444+Blob2763@users.noreply.github.com> Date: Mon, 7 Aug 2023 12:54:54 +0100 Subject: [PATCH] Add files via upload --- 404.html | 4 ++-- index.html | 10 ++++++---- tools/conversions/distance.html | 6 +++--- tools/save.js | 10 ++++++---- 4 files changed, 17 insertions(+), 13 deletions(-) diff --git a/404.html b/404.html index 4624578..30a09fb 100644 --- a/404.html +++ b/404.html @@ -10,7 +10,7 @@ - + @@ -77,4 +77,4 @@

404 page not found :/

- + \ No newline at end of file diff --git a/index.html b/index.html index 8ee08c7..a19c484 100644 --- a/index.html +++ b/index.html @@ -20,17 +20,19 @@

UTILS. Your online toolbox

-
v0.13.2
+
v0.13.3

SAVED

-

WHAT'S NEW - v0.13.2

+

WHAT'S NEW - v0.13.3

diff --git a/tools/conversions/distance.html b/tools/conversions/distance.html index 53ebab1..6a88e26 100644 --- a/tools/conversions/distance.html +++ b/tools/conversions/distance.html @@ -4,7 +4,7 @@ - UTILS - DISTANCE CONVERSIONS + UTILS - LENGTH CONVERSIONS @@ -14,14 +14,14 @@ - +

- +
diff --git a/tools/save.js b/tools/save.js index ce94f74..c37226c 100644 --- a/tools/save.js +++ b/tools/save.js @@ -76,12 +76,14 @@ async function category(tool) { try { const toolsJSON = await getJSON(); - console.log("TOOLSJSON", toolsJSON[[["PromiseResult"]]]); + console.log("TOOLSJSON", toolsJSON); + const firstToolJSON = toolsJSON[0]; + console.log("FIRST TOOLSJSON", firstToolJSON); for (const cat in firstToolJSON) { if (tool in firstToolJSON[cat]) { - console.log("CATEGORY FOUND:", cat); + console.warn("CATEGORY FOUND:", cat); content = cat; } } @@ -113,8 +115,8 @@ async function displayAllSaved(home) { console.log("NAME", name) console.log("CATEGORY", cat) - if (tool === "distance") { - content = content.concat(`
  • LENGTH
  • `) + if (tool === "DISTANCE") { + content = content.concat(`
  • LENGTH
  • `) } else { content = content.concat(`
  • ${name}
  • `) }