Initial commit

This commit is contained in:
2021-01-02 22:39:25 +01:00
commit 9850279e61
22 changed files with 9748 additions and 0 deletions

20
js/button.js Normal file
View File

@@ -0,0 +1,20 @@
addEventListener("load", () => {
const onAnimationFinished = (e) => {
e.target.remove();
};
const onClick = (e) => {
const clickElement = document.createElement("div");
clickElement.className = "click";
clickElement.addEventListener("animationend", onAnimationFinished);
e.target.appendChild(clickElement);
};
for (const btn of document.getElementsByClassName("btn")) {
btn.addEventListener("focusin", () => {
console.log("IN");
});
btn.addEventListener("focusout", () => {
console.log("OUT");
});
btn.addEventListener("click", onClick);
};
});