just go for it
This commit is contained in:
@@ -25,7 +25,7 @@ function add_achievement(text) {
|
||||
button.addEventListener("click", event => {
|
||||
button.disabled = true;
|
||||
button.classList.add("is-loading");
|
||||
fetch('/button/', {
|
||||
fetch(button.dataset.action, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
html, body, .section, .container {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.container {
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
.element::-webkit-scrollbar { width: 0 !important }
|
||||
.element { overflow: -moz-scrollbars-none; }
|
||||
.element { -ms-overflow-style: none; }
|
||||
|
||||
.hide-overflow {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.h-100 {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.w-100 {
|
||||
width: 100%;
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
// temp0.scrollIntoView({behavior: "smooth"});
|
||||
const scroll0 = document.getElementById("scroll-0");
|
||||
const scroll1 = document.getElementById("scroll-1");
|
||||
const scroll2 = document.getElementById("scroll-2");
|
||||
const scroll3 = document.getElementById("scroll-3");
|
||||
|
||||
window.addEventListener("scroll", function(event) {
|
||||
window.addEventListener("mouseup", event => {
|
||||
console.log("hello");
|
||||
});
|
||||
event.preventDefault();
|
||||
document.querySelector("html").classList.add("hide-overflow");
|
||||
if (scroll0.dataset.isScrolling != "true") {
|
||||
scroll0.dataset.isScrolling = 'true';
|
||||
|
||||
if (scroll1.dataset.seen != "true") {
|
||||
scroll1.dataset.seen = "true";
|
||||
scroll1.scrollIntoView({behavior: "smooth"});
|
||||
}
|
||||
else if (scroll2.dataset.seen != "true") {
|
||||
scroll2.dataset.seen = "true";
|
||||
scroll2.scrollIntoView({behavior: "smooth"});
|
||||
}
|
||||
else if (scroll3.dataset.seen != "true") {
|
||||
scroll3.dataset.seen = "true";
|
||||
scroll3.scrollIntoView({behavior: "smooth"});
|
||||
}
|
||||
else {
|
||||
scroll1.dataset.seen = "false";
|
||||
scroll2.dataset.seen = "false";
|
||||
scroll3.dataset.seen = "false";
|
||||
scroll0.scrollIntoView({behavior: "smooth"});
|
||||
}
|
||||
setTimeout(() => {
|
||||
scroll0.dataset.isScrolling = false;
|
||||
document.querySelector("html").classList.remove("hide-overflow");
|
||||
}, 1000)
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user