From ccc389d265af146a5cf38f16bd473443a453239f Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 13 Jan 2021 16:22:12 +0100 Subject: FRONTEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEND --- profile/public/user.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'profile/public/user.js') diff --git a/profile/public/user.js b/profile/public/user.js index 1f93891..76aedc8 100644 --- a/profile/public/user.js +++ b/profile/public/user.js @@ -22,6 +22,8 @@ function addUser(userData) { qDivs.forEach( (div) => (div.style.display = !div.style.display || div.style.display === "block" ? "none" : "block"), ); + if (h1.classList.contains("bananenkuchen")) h1.classList.remove("bananenkuchen"); + else h1.classList.add("bananenkuchen"); }); userDiv.append(h1, ...divs); } @@ -34,6 +36,8 @@ async function addComments(comments) { qDivs.forEach( (div) => (div.style.display = !div.style.display || div.style.display === "flex" ? "none" : "flex"), ); + if (h2.classList.contains("bananenkuchen")) h2.classList.remove("bananenkuchen"); + else h2.classList.add("bananenkuchen"); }); const divs = []; for (const comment of comments) { -- cgit v1.2.3