interest drop down button

This commit is contained in:
zipfriis
2026-05-30 16:19:21 +02:00
parent 46c8f691ef
commit e2fa5a291d
5 changed files with 34 additions and 22 deletions
+16 -1
View File
@@ -50,4 +50,19 @@ function closeOverlay() {
// or toggle it from anywhere:
function openOverlay() {
document.getElementById('overlay').style.display = 'flex';
}
}
function InterestShow() {
const body = document.getElementById('interests-body');
const chevron = document.getElementById('interests-chevron');
chevron.classList.add("hidden")
body.classList.remove("hidden")
chevron.textContent = hidden ? '▶' : '▼';
}
function toggleInterests() {
const body = document.getElementById('interests-body');
const chevron = document.getElementById('interests-chevron');
const hidden = body.classList.toggle('hidden');
chevron.textContent = hidden ? '▶' : '▼';
}