fix: ajout logs debug pour lien Équipe
This commit is contained in:
@@ -922,8 +922,15 @@ Interface de pilotage pour les responsables sécurité des PME.
|
|||||||
teamLink.style.cssText = 'color: #2ecc71; text-decoration: none; font-weight: bold; cursor: pointer; font-size: 14px; padding: 5px 8px; border-radius: 4px; transition: background 0.2s;';
|
teamLink.style.cssText = 'color: #2ecc71; text-decoration: none; font-weight: bold; cursor: pointer; font-size: 14px; padding: 5px 8px; border-radius: 4px; transition: background 0.2s;';
|
||||||
teamLink.addEventListener('mouseenter', () => teamLink.style.background = 'rgba(46, 204, 113, 0.1)');
|
teamLink.addEventListener('mouseenter', () => teamLink.style.background = 'rgba(46, 204, 113, 0.1)');
|
||||||
teamLink.addEventListener('mouseleave', () => teamLink.style.background = 'transparent');
|
teamLink.addEventListener('mouseleave', () => teamLink.style.background = 'transparent');
|
||||||
// Insérer au début du conteneur
|
// Insérer au début du conteneur (ou à la fin si firstChild est null)
|
||||||
container.insertBefore(teamLink, container.firstChild);
|
if (container.firstChild) {
|
||||||
|
container.insertBefore(teamLink, container.firstChild);
|
||||||
|
} else {
|
||||||
|
container.appendChild(teamLink);
|
||||||
|
}
|
||||||
|
console.log('✅ Lien Équipe ajouté au header');
|
||||||
|
} else {
|
||||||
|
console.log('ℹ️ Lien Équipe existe déjà');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ajouter les liens des pages de stratégie
|
// Ajouter les liens des pages de stratégie
|
||||||
|
|||||||
Reference in New Issue
Block a user