Refine public documentation and code comments

This commit is contained in:
Alexandre NOEL 2026-09-04 13:37:22 +02:00
commit 0a482afe9d
16 changed files with 195 additions and 628 deletions

View file

@ -769,7 +769,7 @@ $today = date('Y-m-d');
return true;
}
// 2) Fallback “manuel” (au cas où)
// 2) Activation manuelle si l'API Bootstrap n'est pas disponible.
tabLinks.forEach(a => a.classList.remove('active'));
document.querySelectorAll('.tab-pane').forEach(p => p.classList.remove('active', 'show'));
@ -794,7 +794,7 @@ $today = date('Y-m-d');
history.replaceState(null, '', href);
});
// Si jamais "shown.bs.tab" ne déclenche pas (rare), on sauvegarde au click aussi
// Le clic maintient le fragment même si l'événement Bootstrap n'est pas émis.
a.addEventListener('click', () => {
const href = a.getAttribute('href');
if (!href) return;
@ -805,7 +805,7 @@ $today = date('Y-m-d');
// Un hash explicite est respecté ; sinon Identité est systématique.
const target = window.location.hash || '#tab-ident';
// Si bootstrap n'est pas prêt à l'instant T, on retente un peu (Tabler peut charger en bas)
// Tabler peut initialiser Bootstrap après ce script : une courte nouvelle tentative suffit.
let tries = 0;
(function retry() {
tries++;