Updated Yotsuba Image rendering; Added futute theme
This commit is contained in:
parent
c02f4db028
commit
303966441d
@ -64,7 +64,7 @@ funButtons = [
|
||||
/* Available Themes located in the footer */
|
||||
var styles = ["Tomorrow", "Forgotten", "Yotsuba"];
|
||||
|
||||
|
||||
dirDepth = ""
|
||||
|
||||
/* Update CSS Colorscheme function for themes */
|
||||
function updateStyle(type){
|
||||
@ -102,15 +102,26 @@ function updateStyle(type){
|
||||
doc.style.setProperty("--main-title-fg-color", "#7c7c7c");
|
||||
|
||||
doc.style.setProperty("--font-family", "FreePixel");
|
||||
doc.style.setProperty("--font-size", "15px");
|
||||
doc.style.setProperty("--font-size", "13px");
|
||||
|
||||
document.querySelector("body").style.backgroundImage = "none";
|
||||
} else if (type == "Neocities"){
|
||||
doc.style.setProperty("--main-bg-color", "#282828");
|
||||
doc.style.setProperty("--main-bg-end-color", "#458588");
|
||||
doc.style.setProperty("--main-color", "#a89984");
|
||||
doc.style.setProperty("--main-fg-color", "#282828");
|
||||
doc.style.setProperty("--main-title-fg-color", "#7c7c7c");
|
||||
|
||||
doc.style.setProperty("--font-family", "FreePixel");
|
||||
doc.style.setProperty("--font-size", "15px");
|
||||
|
||||
document.querySelector("body").style.backgroundImage = "none";
|
||||
}
|
||||
}
|
||||
|
||||
function LoadWebsite(){
|
||||
|
||||
let dirDepth = document.getElementById("toplevel").getAttribute("data-");
|
||||
dirDepth = document.getElementById("toplevel").getAttribute("data-");
|
||||
document.getElementById("toplevel").textContent = "";
|
||||
|
||||
const WEBSIDENAME = document.URL;
|
||||
@ -263,6 +274,10 @@ function LoadWebsite(){
|
||||
localStorage.setItem("style", event.target.value);
|
||||
updateStyle(event.target.value);
|
||||
});
|
||||
|
||||
if (localStorage.getItem("style") == "Yotsuba"){
|
||||
updateStyle(localStorage.getItem("style"));
|
||||
}
|
||||
}
|
||||
|
||||
document.addEventListener("DOMContentLoaded", LoadWebsite);
|
||||
|
Loading…
Reference in New Issue
Block a user