themes + begin user pages
This commit is contained in:
@ -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";
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user