Skip to content

Instantly share code, notes, and snippets.

@MikeShi42
Created August 13, 2018 17:50
Show Gist options
  • Save MikeShi42/db4156ed20c75f319dedbee8d6f4e9c6 to your computer and use it in GitHub Desktop.
Save MikeShi42/db4156ed20c75f319dedbee8d6f4e9c6 to your computer and use it in GitHub Desktop.
function waitingPlayerTwo(show) {
const messageContainer = document.querySelector('.waiting-message');
messageContainer.style.display = show ? 'block' : 'none';
}
function countdownMessage(show, number) {
const messageContainer = document.querySelector('.countdown-message');
const countdownNumber = document.querySelector('.countdown-number');
messageContainer.style.display = show ? 'block' : 'none';
countdownNumber.textContent = number;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment