diff --git a/bingo.js b/bingo.js index 3c63ed3..6efcbb3 100644 --- a/bingo.js +++ b/bingo.js @@ -68,7 +68,7 @@ function generateBoard(container) { } function createBoard() { - toggleBingoButton(false); + toggleBingoWin(false); var container = $("#board"); // same as document.getElementById('board'); var board = generateBoard(container); } @@ -89,6 +89,7 @@ function showWin(){ onOpen: function(){ $('
').attr("id","confetti").appendTo('.swal2-title'); $('#social-share').appendTo('.swal2-content'); + $("body").append(' '); for(var i = 0; i < 50; i++){ $('#confetti').append($('')); } @@ -129,9 +130,9 @@ function checkForWin(){ bingo = false; } } - toggleBingoButton(bingo); + toggleBingoWin(bingo); } -function toggleBingoButton(bingo) { +function toggleBingoWin(bingo) { if(bingo == true) { $("#freeSpace").html(' '); $("#bingo").click(showWin); diff --git a/index.html b/index.html index bcd63fe..730e839 100644 --- a/index.html +++ b/index.html @@ -28,5 +28,4 @@