From 16f3b301fd99d0ef47951622b5957f1ad0a5848e Mon Sep 17 00:00:00 2001 From: 0xmac Date: Tue, 5 Nov 2024 19:21:54 +0100 Subject: [PATCH] JS Cleanup --- global/global.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/global/global.js b/global/global.js index e37478e..5434887 100644 --- a/global/global.js +++ b/global/global.js @@ -51,15 +51,16 @@ navContent = [ funButtons = [ ["CC BY-SA 4.0", "https://creativecommons.org/licenses/by-sa/4.0/", "global/buttons/cc-by-sa.png"], ["Right to repair", "", "global/buttons/right2repair.gif"], - ["Made with VSCodium", "https://vscodium.com/", "global/buttons/vscodium.png"], +// ["Made with VSCodium", "https://vscodium.com/", "global/buttons/vscodium.png"], ["Made on Gnu/Linux", "https://www.gnu.org/home.en.html", "global/buttons/gnu-linux.gif"], ["Windows 10, NO", "", "global/buttons/win10no.gif"], // ["No NFT's", "", "global/buttons/nftbutton.gif"], ["Anything but Chrome", "https://librewolf.net/", "global/buttons/nochrome.png"], ["UBlock Origin Now!", "https://ublockorigin.com/", "global/buttons/ublock.png"], - ["Get a Website - Landchad", "https://landchad.net/", "global/buttons/landchad.gif"], -// ["Internet Privacy Now!", "https://anonymousplanet.org/", "global/buttons/internetprivacy.gif"], ["Encrypt Your Shit", "https://gitlab.com/cryptsetup/cryptsetup", "global/buttons/encryptyourshit.gif"], + ["Get a Website - Landchad", "https://landchad.net/", "global/buttons/landchad.gif"], + ["Discord? No Way!", "https://spyware.neocities.org/articles/discord", "global/buttons/discord-no-way.gif"], +// ["Internet Privacy Now!", "https://anonymousplanet.org/", "global/buttons/internetprivacy.gif"], ["No Web 3!", "", "global/buttons/noweb3.gif"], ]; @@ -139,7 +140,7 @@ function updateStyle(type){ } catch { } } else if (type == "Indepth"){ doc.style.setProperty("--main-bg-color", "#000000"); - doc.style.setProperty("--main-bg-end-color", "#080808"); + doc.style.setProperty("--main-bg-end-color", "#1a0f00"); doc.style.setProperty("--main-color", "#000000"); doc.style.setProperty("--main-fg-color", "#ffffff"); doc.style.setProperty("--main-title-fg-color", "#2c9080"); @@ -340,9 +341,14 @@ function LoadWebsite(){ tmpAdd = document.createElement("a"); tmpAdd.textContent = navContent[Number(i)][1]; - tmpAdd.setAttribute("href", href); + tmpAdd.classList.add("nav"); - + + // temp disable + if (navContent[Number(i)][1] == "Tutorials" || navContent[Number(i)][1] == "Projects") { + tmpAdd.style.color = "#555555"; + + } else tmpAdd.setAttribute("href", href); if (sel) { tmpAdd.classList.add("selected-nav"); }