Skip to content

Commit

Permalink
Fixed #22
Browse files Browse the repository at this point in the history
  • Loading branch information
TJScalzo committed Jan 5, 2017
1 parent a4f7167 commit 73e5f9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions bingo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -89,6 +89,7 @@ function showWin(){
onOpen: function(){
$('<div></div>').attr("id","confetti").appendTo('.swal2-title');
$('#social-share').appendTo('.swal2-content');
$("body").append('<div id="social-share"><iframe src="https://www.facebook.com/plugins/share_button.php?href=http%3A%2F%2Ffarmingtonrobotics.org%2Fbingo%2F&layout=button&size=small&mobile_iframe=true&width=65&height=20&appId" width="65" height="20" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe><a href="https://twitter.com/share" class="twitter-share-button" data-text="BINGO! #omgrobots #FIRSTSTEAMWORKS Play #FRCKickoff Bingo at" data-url="http://farmingtonrobotics.org/bingo/" data-via="team178" data-related="FIRSTweets" data-show-count="false">Tweet</a><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script></div>');
for(var i = 0; i < 50; i++){
$('#confetti').append($('<i></i>'));
}
Expand Down Expand Up @@ -129,9 +130,9 @@ function checkForWin(){
bingo = false;
}
}
toggleBingoButton(bingo);
toggleBingoWin(bingo);
}
function toggleBingoButton(bingo) {
function toggleBingoWin(bingo) {
if(bingo == true) {
$("#freeSpace").html('<div class="button" id="bingo"><div>BINGO!</div><i class="shine" id="shine1"></i><i class="shine" id="shine2"></i></div>');
$("#bingo").click(showWin);
Expand Down
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ <h3>2017 Edition</h3>
<iframe src="https://www.facebook.com/plugins/share_button.php?href=http%3A%2F%2Ffarmingtonrobotics.org%2Fbingo%2F&layout=button&size=small&mobile_iframe=true&width=65&height=20&appId" width="65" height="20" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>
<a href="https://twitter.com/share" class="twitter-share-button" data-text="BINGO! #omgrobots #FIRSTSTEAMWORKS Play #FRCKickoff Bingo at" data-url="http://farmingtonrobotics.org/bingo/" data-via="team178" data-related="FIRSTweets" data-show-count="false">Tweet</a><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>

</body>

0 comments on commit 73e5f9c

Please sign in to comment.