🐞 fix: Update functions to work, make new game button stay inline

This commit is contained in:
Keith Solomon
2025-08-15 18:51:11 -05:00
parent 17e925ec8e
commit 428d111cf7
5 changed files with 13 additions and 6 deletions

View File

@@ -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);
}
}
});
});