JS Cleanup
This commit is contained in:
parent
9eb507117e
commit
16f3b301fd
@ -51,15 +51,16 @@ navContent = [
|
|||||||
funButtons = [
|
funButtons = [
|
||||||
["CC BY-SA 4.0", "https://creativecommons.org/licenses/by-sa/4.0/", "global/buttons/cc-by-sa.png"],
|
["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"],
|
["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"],
|
["Made on Gnu/Linux", "https://www.gnu.org/home.en.html", "global/buttons/gnu-linux.gif"],
|
||||||
["Windows 10, NO", "", "global/buttons/win10no.gif"],
|
["Windows 10, NO", "", "global/buttons/win10no.gif"],
|
||||||
// ["No NFT's", "", "global/buttons/nftbutton.gif"],
|
// ["No NFT's", "", "global/buttons/nftbutton.gif"],
|
||||||
["Anything but Chrome", "https://librewolf.net/", "global/buttons/nochrome.png"],
|
["Anything but Chrome", "https://librewolf.net/", "global/buttons/nochrome.png"],
|
||||||
["UBlock Origin Now!", "https://ublockorigin.com/", "global/buttons/ublock.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"],
|
["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"],
|
["No Web 3!", "", "global/buttons/noweb3.gif"],
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -139,7 +140,7 @@ function updateStyle(type){
|
|||||||
} catch { }
|
} catch { }
|
||||||
} else if (type == "Indepth"){
|
} else if (type == "Indepth"){
|
||||||
doc.style.setProperty("--main-bg-color", "#000000");
|
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-color", "#000000");
|
||||||
doc.style.setProperty("--main-fg-color", "#ffffff");
|
doc.style.setProperty("--main-fg-color", "#ffffff");
|
||||||
doc.style.setProperty("--main-title-fg-color", "#2c9080");
|
doc.style.setProperty("--main-title-fg-color", "#2c9080");
|
||||||
@ -340,9 +341,14 @@ function LoadWebsite(){
|
|||||||
|
|
||||||
tmpAdd = document.createElement("a");
|
tmpAdd = document.createElement("a");
|
||||||
tmpAdd.textContent = navContent[Number(i)][1];
|
tmpAdd.textContent = navContent[Number(i)][1];
|
||||||
tmpAdd.setAttribute("href", href);
|
|
||||||
tmpAdd.classList.add("nav");
|
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) {
|
if (sel) {
|
||||||
tmpAdd.classList.add("selected-nav");
|
tmpAdd.classList.add("selected-nav");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user