diff --git a/public/game.html b/public/game.html index e644812..cf0364e 100644 --- a/public/game.html +++ b/public/game.html @@ -332,7 +332,9 @@
@@ -789,6 +791,21 @@ updateGameBar(); } + // === Header Functions === + + document.getElementById('change-name-btn').addEventListener('click', () => { + const newName = prompt('Enter a new name (1-20 characters):', playerName); + if (newName && newName.trim() && newName.trim() !== playerName) { + socket.emit('setName', { name: newName.trim() }); + } + }); + + document.getElementById('leave-game-btn').addEventListener('click', () => { + if (confirm('Are you sure you want to leave the game?')) { + window.location.href = '/'; + } + }); + // === Chat Functions === document.getElementById('chat-input').addEventListener('keypress', function(e) { diff --git a/public/images/yarnlogo.png b/public/images/yarnlogo.png new file mode 100644 index 0000000..9b88dbe Binary files /dev/null and b/public/images/yarnlogo.png differ diff --git a/public/menu.html b/public/menu.html index 0867b57..2c263fa 100644 --- a/public/menu.html +++ b/public/menu.html @@ -3,7 +3,7 @@ - + Y.A.R.N. HTML5 @@ -104,8 +104,8 @@
-

Y.A.R.N.

-

HTML5 Edition

+ +

HTML5 Edition

@@ -127,14 +127,14 @@