Amélioration header
This commit is contained in:
parent
d51c41e2bc
commit
dfa3ffb4e7
1 changed files with 12 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue