Amélioration header

This commit is contained in:
François Pelletier 2024-09-07 20:03:51 -04:00
parent d51c41e2bc
commit dfa3ffb4e7

View file

@ -200,6 +200,18 @@ function updateThemeHeader(theme) {
}
}
// Create exit button
const exitButton = document.createElement('button');
exitButton.textContent = 'Quitter';
exitButton.style.position = 'absolute';
exitButton.style.top = '10px';
exitButton.style.right = '10px';
exitButton.style.zIndex = '20';
document.getElementById('gameContainer').appendChild(exitButton);
exitButton.addEventListener('click', function() {
window.location.href = 'https://jevalide.ca/deconstruit';
});
const brickFiles = [
'bricks-productivite.json',
'bricks-developpement.json',