time to push to . git apparently =w=
This commit is contained in:
8
main.js
8
main.js
@@ -10,8 +10,11 @@ function animateHeader(inout = false) {
|
||||
if (inout) {
|
||||
header.classList.add("header-animation-reverse");
|
||||
header.classList.remove("header-animation");
|
||||
main.classList.add("main-animation-reverse");
|
||||
setTimeout(() => {
|
||||
header.classList.add("fullscreen");
|
||||
main.style.opacity = "0";
|
||||
main.classList.remove("main-animation-reverse");
|
||||
},500);
|
||||
setTimeout(() => {
|
||||
header.classList.remove("header-animation-reverse");
|
||||
@@ -21,9 +24,12 @@ function animateHeader(inout = false) {
|
||||
header.classList.remove("header-animation-reverse");
|
||||
setTimeout(() => {
|
||||
header.classList.remove("fullscreen");
|
||||
main.classList.add("main-animation");
|
||||
},500);
|
||||
setTimeout(() => {
|
||||
header.classList.remove("header-animation");
|
||||
main.style.opacity = "1";
|
||||
main.classList.remove("main-animation");
|
||||
},1000);
|
||||
}
|
||||
//somewhere here we animate in the actual page too, but it.. doesnt exist yet
|
||||
@@ -58,7 +64,7 @@ function stripWord(word) {
|
||||
}
|
||||
|
||||
function loadDictionary() {
|
||||
fetch("/wordlist.json").then((e) => {
|
||||
fetch("./wordlist.json").then((e) => {
|
||||
if (e.status === 200) {
|
||||
//convert to json lmao
|
||||
e.json().then((e) => {
|
||||
|
||||
Reference in New Issue
Block a user