From 715d4f1658a2c06bddf505132b1093a5d1666af7 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Thu, 22 Aug 2024 06:16:42 -0500 Subject: [PATCH 1/4] Remove debug log spam --- pageUpdater.js | 1 - 1 file changed, 1 deletion(-) diff --git a/pageUpdater.js b/pageUpdater.js index b10a957..a4225b1 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -284,7 +284,6 @@ function converter(html, dynamic = true) { return "" }, "SELECTED_VIDEO": () => { - console.log(api.lanyard) if (api.lanyard.video) { return `


Random video!

I would call it random daily video but its not at all daily...


From 07d69cea8b29ea104bee4b84717fe460e79251c3 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Thu, 22 Aug 2024 08:34:14 -0500 Subject: [PATCH 2/4] only add URL if no parent is a --- pageUpdater.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pageUpdater.js b/pageUpdater.js index a4225b1..9bfbbc6 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -92,7 +92,7 @@ function pathReplacer(html) { return html } -function highlighter(json, full = true) { +function highlighter(json, full = true, linkParent = false) { for (var i = 0; i < json.length; i++) { var element = json[i] if (element.type == "element") { @@ -113,7 +113,7 @@ function highlighter(json, full = true) { } if (valid) { - element.children = highlighter(element.children, full) + element.children = highlighter(element.children, full, linkParent || element.tagName == "a") } } } else if (element.type == "text") { @@ -205,13 +205,15 @@ function highlighter(json, full = true) { var stuff = (startContent + dict.words[x] + endContent).trim() if (!stuff.includes("span")) { - var replacement = `${stuff}` + var replacement = `${stuff}` - if (link) { + if (link && !linkParent) { replacement = `${replacement}` + // console.log(replacement) } element.content = element.content.substring(0, spanStart) + replacement + element.content.substring(spanEnd) } else { + element.content = element.content.replace(termKey, dict.words[x]) } } From 5f904e7e1f86cfdee8db5f57066884be5c3fb9eb Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Thu, 22 Aug 2024 08:34:26 -0500 Subject: [PATCH 3/4] Add Univerter to services --- static/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/static/index.html b/static/index.html index 485bc91..05a68c4 100644 --- a/static/index.html +++ b/static/index.html @@ -80,6 +80,7 @@ Forgejo: git.viois.gay + Univerter: univerter.dev Thumbor: thumbor.violets-purgatory.dev

Socials

From 60e7d536a5ec4284d245444ed16cc457b12a1558 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Wed, 28 Aug 2024 08:39:36 -0500 Subject: [PATCH 4/4] No animation on videos, port video styling to blog --- static/blog/style.css | 7 +++++++ static/style.css | 6 ------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/static/blog/style.css b/static/blog/style.css index 47d0943..ededb52 100644 --- a/static/blog/style.css +++ b/static/blog/style.css @@ -150,4 +150,11 @@ main:nth-of-type(1), .mainDiv { .note { color: darkgray; font-size: 1rem; +} + +video { + width: 95%; + max-height: 90vh; + border: 2px limegreen solid; + z-index: 5; } \ No newline at end of file diff --git a/static/style.css b/static/style.css index b5b363d..7c2c6bf 100644 --- a/static/style.css +++ b/static/style.css @@ -308,15 +308,9 @@ video { max-height: 90vh; border: 2px rgb(125, 100, 155) solid; border-radius: 15px; - transition: all 5s cubic-bezier(0.39, 0.575, 0.565, 1); z-index: 5; } -video:active { - transition: all 1s cubic-bezier(0.075, 0.82, 0.165, 1); - border-color: rgb(225, 150, 255); -} - sup { color: gray; }