</p>
<audio loop="" src="/zombo_words.mp3" type="audio/mpeg"></audio>
- <button id="mute" class="fade volume">
+ <button id="mute" class="menu-button fade volume">
<div>🔊</div>
<script>
const mute = document.querySelector("#mute");
</button>
+ <button id="profile" class="menu-button">
+ <div>👤</div>
+ </button>
+
</div>
<script src="/socket.io/socket.io.js"></script>
const code = document.querySelector("#code");
const safety= document.querySelector("#safety");
const spinner = document.querySelector("#spinner");
+ const profile = document.querySelector("#profile");
var spinner_timeout;
comment.addEventListener('focus', () => {
name_dialog.showModal();
});
+ profile.addEventListener('click', () => {
+ name_dialog.showModal();
+ });
+
name_dialog.addEventListener('close', () => {
socket.emit('set-name', name.value);
});