|
|
|
@ -33,7 +33,6 @@ const bingoFields = document.querySelectorAll('#bingo td.bingo-field');
|
|
|
|
|
const centerFieldImage = document.querySelector('#center-field-image');
|
|
|
|
|
const refreshBingoButton = document.querySelector('#refresh-bingo');
|
|
|
|
|
const copyPermalinkButton = document.querySelector('#copy-permalink');
|
|
|
|
|
const winnerMessage = document.querySelector('#winner-message');
|
|
|
|
|
centerFieldImage.src = "img/logo.svg"
|
|
|
|
|
centerFieldImage.alt = "37C3 Logo";
|
|
|
|
|
centerFieldImage.parentElement.addEventListener('contextmenu', ev => {
|
|
|
|
@ -120,9 +119,7 @@ const checkForBingo = (field) => {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (bingo) {
|
|
|
|
|
winnerMessage.classList.remove('won');
|
|
|
|
|
window.fireworks.start();
|
|
|
|
|
winnerMessage.classList.add('won');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
@ -206,7 +203,6 @@ drawTable();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const redrawTable = function () {
|
|
|
|
|
winnerMessage.classList.remove('won');
|
|
|
|
|
allFields.forEach(elem => {
|
|
|
|
|
elem.classList.remove('bingo');
|
|
|
|
|
});
|
|
|
|
|