🐞 fix: Update functions to work, make new game button stay inline
This commit is contained in:
@@ -71,7 +71,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
if (gameState !== 'ongoing') {
|
||||
rollButton.disabled = true;
|
||||
assassinateButton.disabled = true;
|
||||
newGameButton.style.display = 'block';
|
||||
newGameButton.style.display = 'inline-block';
|
||||
let message = '';
|
||||
if (gameState === 'win') {
|
||||
message = 'You have escaped the city! You win!';
|
||||
@@ -87,4 +87,4 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
setTimeout(() => alert(message), 100);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user