themes + begin user pages

This commit is contained in:
sky
2025-07-08 00:25:44 -04:00
parent aa4bb69786
commit c8d3d0d50c
10 changed files with 233 additions and 831 deletions

View File

@ -32,15 +32,18 @@ function cursor() {
cursor.style.left = `${e.pageX - 15}px`;
})
}
function themes() {
document.body.setAttribute("theme", localStorage.getItem("selenite.theme") || "")
}
document.addEventListener("DOMContentLoaded", ()=>{
setBackground();
loadPJS();
cursor();
themes();
})
document.addEventListener("scroll", ()=>{
console.log("scroll");
document.getElementById("particles-js").style.top = window.scrollY + "px";
})