Merge remote-tracking branch 'origin/master' into gh-pages
This commit is contained in:
commit
5981e92bb0
|
@ -253,7 +253,13 @@
|
|||
}
|
||||
|
||||
function updateMinesLeft() {
|
||||
$('#mines').text("Mines left: " + $('.mine:not(.revealed):not(.flagged)').length);
|
||||
//unflagged mines - revealed mines - flagged not-mines
|
||||
$('#mines').text(
|
||||
"Mines left: "
|
||||
+ ($('.mine:not(.flagged)').length
|
||||
- $('.mine.revealed').length
|
||||
- $('li:not(.mine).flagged').length)
|
||||
);
|
||||
}
|
||||
|
||||
$.fn.rowScore = function() {
|
||||
|
|
Loading…
Reference in New Issue