🌄🚎 Checkpoint

./public/style.css:530995/211
./views/room.handlebars:530995/8660
./.glitch-assets:530995/408
./views/join.handlebars:530995/125
This commit is contained in:
Glitch (hello-express)
2020-04-09 17:01:46 +00:00
parent 84d7efd9fe
commit df26af35ac
4 changed files with 11 additions and 1 deletions

View File

@@ -27,6 +27,10 @@
</label>
<button type="submit" id="submit-name">Submit</button>
</form>
<p>
<a href="/{{room}}/audience">Join the audience</a>
</p>
</main>
</body>
</html>

View File

@@ -48,12 +48,14 @@
};
document.getElementById('buzzer').addEventListener('touchstart', function() {
beep();
socket.send(JSON.stringify({
type: "buzz"
}));
});
document.getElementById('buzzer').addEventListener('mousedown', function() {
beep();
socket.send(JSON.stringify({
type: "buzz"
}));
@@ -69,6 +71,10 @@
mb.classList.add('hide');
}, 5000)
}
function beep() {
new Audio("https://cdn.glitch.com/81aebabf-079d-4504-b844-d90d643962c4%2FGame-show-buzzer-sound-effect.mp3?v=1586451448374").play();
}
</script>
</body>
</html>