Thibaud 1 месяц назад
Родитель
Сommit
69b9d98a7e
2 измененных файлов: 17 добавлений и 11 удалений
  1. +12
    -10
      frontend/protos/index.html
  2. +5
    -1
      frontend/protos/styles.css

+ 12
- 10
frontend/protos/index.html Просмотреть файл

@ -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) { function scrollToElement(elementSelector) {
const element = document.querySelector(elementSelector); const element = document.querySelector(elementSelector);
if (element) { if (element) {
@ -168,6 +158,18 @@
etatSections(currentEtat); 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) { function beforeHeaderVisibility(_visible) {
intersectionObserverLog('TRIGGER '+arguments.callee.name); intersectionObserverLog('TRIGGER '+arguments.callee.name);
if (!_visible) { if (!_visible) {

+ 5
- 1
frontend/protos/styles.css Просмотреть файл

@ -26,7 +26,8 @@
--section-header-height: 120px; --section-header-height: 120px;
--section-navbar-height: var(--section-min-height); --section-navbar-height: var(--section-min-height);
--section-synthese-height: 120px; --section-synthese-height: 120px;
--section-principale-height: 800px;
--section-principale-height: 400px;
--section-footer-height: 100vh;
} }
@font-face { @font-face {
@ -105,10 +106,13 @@ body {
background-color: pink; background-color: pink;
height: var(--section-synthese-height); height: var(--section-synthese-height);
} }
.principale { .principale {
height: var(--section-principale-height); height: var(--section-principale-height);
} }
.footer { .footer {
background-color: greenyellow; background-color: greenyellow;
height: var(--section-footer-height);
} }

Загрузка…
Отмена
Сохранить