1
0
mirror of https://git.topisto.net/tibo/template.git synced 2026-03-31 17:19:10 +00:00

202511260955

This commit is contained in:
Thibaud
2025-11-26 09:55:05 +01:00
parent 3a562b6d26
commit 69b9d98a7e
2 changed files with 17 additions and 11 deletions

View File

@@ -115,16 +115,6 @@
}
}
after_section_header.addEventListener("click", function() {
logMsg('etatSection','toggle section_header ');
toggleElement(section_header);
});
after_section_synthese.addEventListener("click", function() {
logMsg('etatSection','toggle section_synthese ');
toggleElement(section_synthese);
});
function scrollToElement(elementSelector) {
const element = document.querySelector(elementSelector);
if (element) {
@@ -168,6 +158,18 @@
etatSections(currentEtat);
}
after_section_synthese.addEventListener("click", function() {
logMsg('etatSection','toggle section_synthese ');
if (currentEtat==3) changeEtatDown();
else changeEtatUp();
});
after_section_header.addEventListener("click", function() {
logMsg('etatSection','toggle section_header ');
if (currentEtat==2) changeEtatDown();
else changeEtatUp();
});
function beforeHeaderVisibility(_visible) {
intersectionObserverLog('TRIGGER '+arguments.callee.name);
if (!_visible) {