diff --git a/index.html b/index.html index 9a793d6..658c8dd 100644 --- a/index.html +++ b/index.html @@ -42,6 +42,10 @@ width: 100vmin; } + #cracktro { + display: none; + } + #game { background-color: #1b1c17; float: left; @@ -225,6 +229,7 @@ li.flagged { background-color: #b5fe52; background-image: url("images/flag.png"); + background-size: 100% 100%; } li.flagged:hover { @@ -234,6 +239,7 @@ li.mine.revealed { background-color: #d23000; background-image: url("images/skull.png"); + background-size: 100% 100%; } li.mines1 { @@ -609,6 +615,17 @@ return $(this).countMinesAdjacent().toString().replace("0", ""); } + $.fn.cracktro = function() { + var text = $('#cracktro').text().trim().split(); + var cracktro = ""; + + for (var i = 0; i < text.length; i++) { + cracktro += "" + text[i] + ""; + } + + $('#cracktro').html(cracktro); + } + $('input[type="radio"]').on("change", function() { switch ($(this).val()) { case "easy": @@ -815,6 +832,24 @@
a game by max bradbury
inspirations include minesweeper, tetris and 2048
tell your friends
+ +