From 73e5f9c37cf8bd9d43b282718734c9ab2ff6cd14 Mon Sep 17 00:00:00 2001 From: TJScalzo Date: Thu, 5 Jan 2017 17:02:33 -0500 Subject: [PATCH] Fixed #22 --- bingo.js | 7 ++++--- index.html | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) 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!
'); $("#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 @@

2017 Edition

Tweet -