diff --git a/pageUpdater.js b/pageUpdater.js index 9bfbbc6..b10a957 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -92,7 +92,7 @@ function pathReplacer(html) { return html } -function highlighter(json, full = true, linkParent = false) { +function highlighter(json, full = true) { 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, linkParent = false) { } if (valid) { - element.children = highlighter(element.children, full, linkParent || element.tagName == "a") + element.children = highlighter(element.children, full) } } } else if (element.type == "text") { @@ -205,15 +205,13 @@ function highlighter(json, full = true, linkParent = false) { var stuff = (startContent + dict.words[x] + endContent).trim() if (!stuff.includes("span")) { - var replacement = `${stuff}` + var replacement = `${stuff}` - if (link && !linkParent) { + if (link) { 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]) } } @@ -286,6 +284,7 @@ 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...


diff --git a/static/blog/style.css b/static/blog/style.css index ededb52..47d0943 100644 --- a/static/blog/style.css +++ b/static/blog/style.css @@ -150,11 +150,4 @@ 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/index.html b/static/index.html index 05a68c4..485bc91 100644 --- a/static/index.html +++ b/static/index.html @@ -80,7 +80,6 @@ Forgejo: git.viois.gay - Univerter: univerter.dev Thumbor: thumbor.violets-purgatory.dev

Socials

diff --git a/static/style.css b/static/style.css index 7c2c6bf..b5b363d 100644 --- a/static/style.css +++ b/static/style.css @@ -308,9 +308,15 @@ 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; }