Added cypress tests

This commit is contained in:
2025-07-08 17:16:57 +02:00
parent 6ed3e60dd0
commit 7bc0f32145
15 changed files with 879 additions and 306 deletions

View File

@@ -44,8 +44,8 @@ function enterFullscreen() {
// fade in logo… (unchanged)
const logo = document.getElementById('navbar_logo');
if (logo) {
logo.classList.remove('d-none');
requestAnimationFrame(() => logo.style.opacity = '1');
// hide the navbarlogo restore link in fullscreen
logo.classList.add('d-none');
}
// now recalc in lock-step with the CSS collapse animation
@@ -57,16 +57,10 @@ function exitFullscreen() {
setFullWidth(false);
updateUrlFullscreen(false);
// fade out logo… (unchanged)
const logo = document.getElementById('navbar_logo');
if (logo) {
logo.style.opacity = '0';
logo.addEventListener('transitionend', function handler(e) {
if (e.propertyName === 'opacity') {
logo.classList.add('d-none');
logo.removeEventListener('transitionend', handler);
}
});
// show the navbarlogo restore link again
logo.classList.remove('d-none');
}
// recalc while header/footer expand back