From 123f2658f9cae389f29951400d5b524efa5f470e Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Fri, 22 Oct 2021 19:04:51 +0200 Subject: [PATCH 01/55] Create writedoc.js --- writedoc.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 writedoc.js diff --git a/writedoc.js b/writedoc.js new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/writedoc.js @@ -0,0 +1 @@ + From fe1011b54de783c6cc63468e4f67b7fc6a532292 Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Fri, 22 Oct 2021 19:41:36 +0200 Subject: [PATCH 02/55] Update index.html --- index.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index f843fa5..430aeeb 100644 --- a/index.html +++ b/index.html @@ -43,6 +43,7 @@ + @@ -145,10 +110,11 @@ async function getStats(username, key, uuid, uuidjson, profilenum, profilejson) { let skyblockskill = await fetch("https://api.hypixel.net/resources/skyblock/skills"); let skillsjson = await skyblockskill.json(); - - console.log(profilejson); var levels = {"skills":{}, "dungeons":{}}; var skills = ['farming', 'mining', 'combat', 'foraging', 'fishing', 'enchanting', 'alchemy', 'taming']; + + console.log(profilejson); + for (let i = 0; i < skills.length; i++) { levels["skills"][skills[i]] = {}; let level = getLevel(skills[i], profilejson, skillsjson, profilenum, uuid); From b3a74344d288fd67a93c7eb4a9421518c3ea422a Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 05:27:08 +0200 Subject: [PATCH 23/55] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index f86ef29..dbabbf7 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ Bad Skyblock API - + From b302a22c34613916c3b20eb7c83fc64c8288a5fe Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 05:28:28 +0200 Subject: [PATCH 24/55] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index dbabbf7..3a84c82 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ Bad Skyblock API - + From 2613b31629a3183d0a1513140fb84d46aa306af8 Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 05:29:17 +0200 Subject: [PATCH 25/55] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 3a84c82..b205499 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ Bad Skyblock API - + From c4125cf964829c4f4e2c39381a49d0460b431d32 Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 05:30:00 +0200 Subject: [PATCH 26/55] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index b205499..86016c3 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ Bad Skyblock API - + From 2f7de76cb6e18975c4d14c6d3c6222cadb0b9ad5 Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 05:31:30 +0200 Subject: [PATCH 27/55] Update index.html --- index.html | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 86016c3..2834f88 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,42 @@ Bad Skyblock API - + From 7aee224b3df40ba43ac633b32105337c3009d4b1 Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 05:32:12 +0200 Subject: [PATCH 28/55] Delete styles.css --- styles.css | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 styles.css diff --git a/styles.css b/styles.css deleted file mode 100644 index 6f203ae..0000000 --- a/styles.css +++ /dev/null @@ -1,34 +0,0 @@ - body { - font-family: Arial; - background: #8fafaf; - margin: 0; - } - - .mainpage { - margin: 20px; - } - - .statspage { - margin: 20px; - } - - .header { - padding: 20px; - text-align: center; - background: #3a3d3d; - color: white; - font-size: 20px; - margin: 0; - } - - input:invalid { - border: 2px dashed black; - } - - input:invalid:required { - border: 2px dashed red; - } - - input:valid { - border: 2px solid black; - } From 11dd1062329cbe93c1d0b99510c05d70319be4ed Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 05:56:17 +0200 Subject: [PATCH 29/55] Update index.html --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index 2834f88..0be1930 100644 --- a/index.html +++ b/index.html @@ -53,6 +53,7 @@ getUser(searches.slice(5,poskey), searches.slice(poskey+5,)); } else { document.getElementById("statspage").style.display = "none"; + writeform(); } } From c274151cdadfe70d5e9dc71304aee237c76c3dea Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 05:58:21 +0200 Subject: [PATCH 30/55] Update index.html --- index.html | 1 - 1 file changed, 1 deletion(-) diff --git a/index.html b/index.html index 0be1930..2834f88 100644 --- a/index.html +++ b/index.html @@ -53,7 +53,6 @@ getUser(searches.slice(5,poskey), searches.slice(poskey+5,)); } else { document.getElementById("statspage").style.display = "none"; - writeform(); } } From cea36107817bf9c5319b3edbe6f1fa003296befa Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 05:58:31 +0200 Subject: [PATCH 31/55] Delete writedoc.js --- writedoc.js | 1 - 1 file changed, 1 deletion(-) delete mode 100644 writedoc.js diff --git a/writedoc.js b/writedoc.js deleted file mode 100644 index 8b13789..0000000 --- a/writedoc.js +++ /dev/null @@ -1 +0,0 @@ - From eb8008d09a6f76f4cae823aaef839fd49cbc9661 Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 05:58:46 +0200 Subject: [PATCH 32/55] Update index.html --- index.html | 1 - 1 file changed, 1 deletion(-) diff --git a/index.html b/index.html index 2834f88..c754abc 100644 --- a/index.html +++ b/index.html @@ -43,7 +43,6 @@ -
@@ -178,6 +195,7 @@

Bad Skyblock API

+
From 5c84d3cda3aa7cc4ac08ec4620811c840fdaf93d Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 19:52:34 +0200 Subject: [PATCH 34/55] Update index.html --- index.html | 41 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index e04fc90..47dda6d 100644 --- a/index.html +++ b/index.html @@ -169,12 +169,49 @@ function write_slot(slot) { let display = ""; let line = ""; + let colorcodes = { + "§0": "#000000", + "§1": "#0000aa", + "§2": "#00aa00", + "§3": "#00aaaa", + "§4": "#aa0000", + "§5": "#aa00aa", + "§6": "#ffaa00", + "§7": "#aaaaaa", + "§8": "#555555", + "§9": "#5555ff", + "§a": "#55ff55", + "§b": "#55ffff", + "§c": "#ff5555", + "§d": "#ff55ff", + "§e": "#ffff55", + "§f": "#ffffff" + } for (let i = 0; i < slot.tag.display.Lore.length; i++) { line = slot.tag.display.Lore[i]; - line.search("§"); + let display_line = ""; + let where = line.search("§"); + let color; + if (where != -1) { + color = colorcodes[line.slice(where, where+1)]; + console.log(color); + if (where != 0) { + display_line = line.slice(0, where) + "" + } else { + display_line = "" + } + line = line.slice(where + 1); + while (where != -1) { + color = line.slice(where, where+1); + line = line.slice(where + 1); + where = line.search("§"); + } + } + display_line = display_line + "" display = display + ""; } - document.getElementById("statspage").innerHTML = "" + console.log("display:" + display); + document.getElementById("statspage").innerHTML = display; } From 86f5247d13b0cfab4aa16e2c0ceba1d93876c744 Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 19:54:21 +0200 Subject: [PATCH 35/55] Update index.html --- index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.html b/index.html index 47dda6d..db26124 100644 --- a/index.html +++ b/index.html @@ -187,6 +187,7 @@ "§e": "#ffff55", "§f": "#ffffff" } + console.log(colorcodes); for (let i = 0; i < slot.tag.display.Lore.length; i++) { line = slot.tag.display.Lore[i]; let display_line = ""; @@ -194,6 +195,7 @@ let color; if (where != -1) { color = colorcodes[line.slice(where, where+1)]; + console.log(line.slice(where, where+1)); console.log(color); if (where != 0) { display_line = line.slice(0, where) + "" From 5c77263d2cb88e133633db76bf2f8e4968e5de69 Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 19:57:49 +0200 Subject: [PATCH 36/55] Update index.html --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index db26124..abe8a09 100644 --- a/index.html +++ b/index.html @@ -194,13 +194,13 @@ let where = line.search("§"); let color; if (where != -1) { - color = colorcodes[line.slice(where, where+1)]; - console.log(line.slice(where, where+1)); + color = colorcodes[line.slice(where, where+2)]; + console.log(line.slice(where, where+2)); console.log(color); if (where != 0) { - display_line = line.slice(0, where) + "" + display_line = display_line + line.slice(0, where) + "" } else { - display_line = "" + display_line = display_line + "" } line = line.slice(where + 1); while (where != -1) { From 8459d90355f6470c31b6926d74b88e9c1429e33e Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 19:58:12 +0200 Subject: [PATCH 37/55] Update index.html --- index.html | 1 - 1 file changed, 1 deletion(-) diff --git a/index.html b/index.html index abe8a09..c89324c 100644 --- a/index.html +++ b/index.html @@ -187,7 +187,6 @@ "§e": "#ffff55", "§f": "#ffffff" } - console.log(colorcodes); for (let i = 0; i < slot.tag.display.Lore.length; i++) { line = slot.tag.display.Lore[i]; let display_line = ""; From 38b11051490ee7c0ee1f5192a46c1acae41aa6f0 Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 20:00:14 +0200 Subject: [PATCH 38/55] Update index.html --- index.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.html b/index.html index c89324c..04381fc 100644 --- a/index.html +++ b/index.html @@ -194,8 +194,6 @@ let color; if (where != -1) { color = colorcodes[line.slice(where, where+2)]; - console.log(line.slice(where, where+2)); - console.log(color); if (where != 0) { display_line = display_line + line.slice(0, where) + "" } else { @@ -209,7 +207,7 @@ } } display_line = display_line + "" - display = display + ""; + display = display + display_line; } console.log("display:" + display); document.getElementById("statspage").innerHTML = display; From f13dc37c58d78648c521f2c8d4d9c680f6f37e67 Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 20:02:34 +0200 Subject: [PATCH 39/55] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 04381fc..814494d 100644 --- a/index.html +++ b/index.html @@ -206,7 +206,7 @@ where = line.search("§"); } } - display_line = display_line + "" + display_line = display_line + "\n" display = display + display_line; } console.log("display:" + display); From 3163cf919b79095c033fc001a8a722107caf1a9c Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 20:04:17 +0200 Subject: [PATCH 40/55] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 814494d..3f51dd9 100644 --- a/index.html +++ b/index.html @@ -206,7 +206,7 @@ where = line.search("§"); } } - display_line = display_line + "\n" + display_line = display_line + "\n" display = display + display_line; } console.log("display:" + display); From 5ca0d1d441a036bfe71ef5f957a606d82b7d4610 Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 20:08:14 +0200 Subject: [PATCH 41/55] Update index.html --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 3f51dd9..c04cf68 100644 --- a/index.html +++ b/index.html @@ -195,13 +195,14 @@ if (where != -1) { color = colorcodes[line.slice(where, where+2)]; if (where != 0) { - display_line = display_line + line.slice(0, where) + "" + display_line = display_line + line.slice(0, where) + ""; } else { display_line = display_line + "" } line = line.slice(where + 1); while (where != -1) { color = line.slice(where, where+1); + display_line = display_line + line.slice(0, where) + ""; line = line.slice(where + 1); where = line.search("§"); } From 96931aa112d427407fcb0cc8fed456b4c38e8a82 Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 20:10:52 +0200 Subject: [PATCH 42/55] Update index.html --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index c04cf68..1130577 100644 --- a/index.html +++ b/index.html @@ -199,11 +199,11 @@ } else { display_line = display_line + "" } - line = line.slice(where + 1); + line = line.slice(where + 2); while (where != -1) { - color = line.slice(where, where+1); + color = colorcodes[line.slice(where, where+2)]; display_line = display_line + line.slice(0, where) + ""; - line = line.slice(where + 1); + line = line.slice(where + 2); where = line.search("§"); } } From 0c6e14b20b7cac691a997e472b31e003baf8c7d5 Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 20:11:11 +0200 Subject: [PATCH 43/55] Update index.html --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index 1130577..b843acb 100644 --- a/index.html +++ b/index.html @@ -187,6 +187,7 @@ "§e": "#ffff55", "§f": "#ffffff" } + console.log("hello"); for (let i = 0; i < slot.tag.display.Lore.length; i++) { line = slot.tag.display.Lore[i]; let display_line = ""; From fe09fadb7c9ccc40c446103f5360683b6fc126fa Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 20:17:28 +0200 Subject: [PATCH 44/55] Update index.html --- index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.html b/index.html index b843acb..31e9534 100644 --- a/index.html +++ b/index.html @@ -200,11 +200,15 @@ } else { display_line = display_line + "" } + console.log(line); line = line.slice(where + 2); + console.log(line); while (where != -1) { color = colorcodes[line.slice(where, where+2)]; display_line = display_line + line.slice(0, where) + ""; + console.log(line); line = line.slice(where + 2); + console.log(line); where = line.search("§"); } } From c5f26d229ae5b46c326ebc68eec30317321f94a3 Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 20:20:08 +0200 Subject: [PATCH 45/55] Update index.html --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index 31e9534..2b700e0 100644 --- a/index.html +++ b/index.html @@ -205,6 +205,7 @@ console.log(line); while (where != -1) { color = colorcodes[line.slice(where, where+2)]; + console.log(line.slice(0, where)); display_line = display_line + line.slice(0, where) + ""; console.log(line); line = line.slice(where + 2); From d49e4e833a59835edcf32d9fcc37e0b86985178f Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 20:21:41 +0200 Subject: [PATCH 46/55] Update index.html --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index 2b700e0..39bb139 100644 --- a/index.html +++ b/index.html @@ -212,6 +212,7 @@ console.log(line); where = line.search("§"); } + display_line = display_line + line; } display_line = display_line + "\n" display = display + display_line; From 65417558be335544ba4b5f407dc1556bd4ad80a7 Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 20:31:54 +0200 Subject: [PATCH 47/55] Update index.html --- index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.html b/index.html index 39bb139..f04df07 100644 --- a/index.html +++ b/index.html @@ -200,9 +200,8 @@ } else { display_line = display_line + "" } - console.log(line); line = line.slice(where + 2); - console.log(line); + where = line.search("§"); while (where != -1) { color = colorcodes[line.slice(where, where+2)]; console.log(line.slice(0, where)); From 661da42b0ee355fcd4bffa13f957c5d69a7f1f3c Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 20:33:44 +0200 Subject: [PATCH 48/55] Update index.html --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index f04df07..2580b8f 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - Bad Skyblock API + Bad Skyblock Data Viewer @@ -204,16 +206,15 @@ where = line.search("§"); while (where != -1) { color = colorcodes[line.slice(where, where+2)]; - console.log(line.slice(0, where)); + console.log(line.slice(where, where+2)); + console.log(color); display_line = display_line + line.slice(0, where) + ""; - console.log(line); line = line.slice(where + 2); - console.log(line); where = line.search("§"); } - display_line = display_line + line; + display_line = display_line + line + ""; } - display_line = display_line + "\n" + display_line = display_line + "\n" display = display + display_line; } console.log("display:" + display); From 77c304b6804218f2ea689aed09edb3df1df2744c Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 20:52:02 +0200 Subject: [PATCH 50/55] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index cc4c7c2..746cec3 100644 --- a/index.html +++ b/index.html @@ -17,7 +17,7 @@ .statspage { margin: 20px; - background: + background: #000000; } .header { From e77495a597883045f41fc6daf303f97ff593a9a7 Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 21:00:22 +0200 Subject: [PATCH 51/55] Update index.html --- index.html | 51 ++++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/index.html b/index.html index 746cec3..9ddb764 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ - +color: Bad Skyblock Data Viewer @@ -171,44 +171,45 @@ function write_slot(slot) { let display = ""; let line = ""; - let colorcodes = { - "§0": "#000000", - "§1": "#0000aa", - "§2": "#00aa00", - "§3": "#00aaaa", - "§4": "#aa0000", - "§5": "#aa00aa", - "§6": "#ffaa00", - "§7": "#aaaaaa", - "§8": "#555555", - "§9": "#5555ff", - "§a": "#55ff55", - "§b": "#55ffff", - "§c": "#ff5555", - "§d": "#ff55ff", - "§e": "#ffff55", - "§f": "#ffffff" + let stylecodes = { + "§0": "color: #000000", + "§1": "color: #0000aa", + "§2": "color: #00aa00", + "§3": "color: #00aaaa", + "§4": "color: #aa0000", + "§5": "color: #aa00aa", + "§6": "color: #ffaa00", + "§7": "color: #aaaaaa", + "§8": "color: #555555", + "§9": "color: #5555ff", + "§a": "color: #55ff55", + "§b": "color: #55ffff", + "§c": "color: #ff5555", + "§d": "color: #ff55ff", + "§e": "color: #ffff55", + "§f": "color: #ffffff", + "§l": "font-weight:bold" } console.log("hello"); for (let i = 0; i < slot.tag.display.Lore.length; i++) { line = slot.tag.display.Lore[i]; let display_line = ""; let where = line.search("§"); - let color; + let style; if (where != -1) { - color = colorcodes[line.slice(where, where+2)]; + style = stylecodes[line.slice(where, where+2)]; if (where != 0) { - display_line = display_line + line.slice(0, where) + ""; + display_line = display_line + line.slice(0, where) + ""; } else { - display_line = display_line + "" + display_line = display_line + "" } line = line.slice(where + 2); where = line.search("§"); while (where != -1) { - color = colorcodes[line.slice(where, where+2)]; + style = stylecodes[line.slice(where, where+2)]; console.log(line.slice(where, where+2)); - console.log(color); - display_line = display_line + line.slice(0, where) + ""; + console.log(style); + display_line = display_line + line.slice(0, where) + ""; line = line.slice(where + 2); where = line.search("§"); } From 06c047aa9a4a1ca631f2e288d74a0cc8f9ee0cf5 Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 21:17:01 +0200 Subject: [PATCH 52/55] Update index.html --- index.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 9ddb764..92019e8 100644 --- a/index.html +++ b/index.html @@ -190,7 +190,7 @@ "§f": "color: #ffffff", "§l": "font-weight:bold" } - console.log("hello"); + console.log("If you see this message, the thing was updated."); for (let i = 0; i < slot.tag.display.Lore.length; i++) { line = slot.tag.display.Lore[i]; let display_line = ""; @@ -207,11 +207,14 @@ where = line.search("§"); while (where != -1) { style = stylecodes[line.slice(where, where+2)]; - console.log(line.slice(where, where+2)); - console.log(style); + if (stylecodes[line.slice(where+2, where+4)] != undefined) { + let style2 = stylecodes[line.slice(where+2, where+4)]; + display_line = display_line + line.slice(0, where) + ""; + } else { display_line = display_line + line.slice(0, where) + ""; line = line.slice(where + 2); where = line.search("§"); + } } display_line = display_line + line + ""; } From 6ad5b7e8f512b99a877533148d50f8d539a34901 Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 21:44:09 +0200 Subject: [PATCH 53/55] Update index.html --- index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 92019e8..8561abd 100644 --- a/index.html +++ b/index.html @@ -210,11 +210,12 @@ if (stylecodes[line.slice(where+2, where+4)] != undefined) { let style2 = stylecodes[line.slice(where+2, where+4)]; display_line = display_line + line.slice(0, where) + ""; + line = line.slice(where + 4); } else { - display_line = display_line + line.slice(0, where) + ""; - line = line.slice(where + 2); - where = line.search("§"); + display_line = display_line + line.slice(0, where) + ""; + line = line.slice(where + 2); } + where = line.search("§"); } display_line = display_line + line + ""; } From 2c433a46b499b2e857957b41168b4657fb6a4467 Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 21:48:16 +0200 Subject: [PATCH 54/55] Update index.html --- index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 8561abd..b028a85 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ -color: + Bad Skyblock Data Viewer @@ -190,7 +190,7 @@ "§f": "color: #ffffff", "§l": "font-weight:bold" } - console.log("If you see this message, the thing was updated."); + console.log("If you see this message, and update happened..."); for (let i = 0; i < slot.tag.display.Lore.length; i++) { line = slot.tag.display.Lore[i]; let display_line = ""; @@ -211,6 +211,7 @@ let style2 = stylecodes[line.slice(where+2, where+4)]; display_line = display_line + line.slice(0, where) + ""; line = line.slice(where + 4); + console.log("This happened"); } else { display_line = display_line + line.slice(0, where) + ""; line = line.slice(where + 2); From 470fbedce55a68045bf86e45872bad642c4af6a7 Mon Sep 17 00:00:00 2001 From: TheTrueShaman <68354378+The-Shaman@users.noreply.github.com> Date: Sat, 23 Oct 2021 21:50:47 +0200 Subject: [PATCH 55/55] Update index.html --- index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.html b/index.html index b028a85..5f8464f 100644 --- a/index.html +++ b/index.html @@ -212,6 +212,8 @@ display_line = display_line + line.slice(0, where) + ""; line = line.slice(where + 4); console.log("This happened"); + console.log(style, style2); + console.log(line); } else { display_line = display_line + line.slice(0, where) + ""; line = line.slice(where + 2);