parent
4a8487be13
commit
b61885f00b
35
index.html
35
index.html
|
@ -42,6 +42,10 @@
|
||||||
width: 100vmin;
|
width: 100vmin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#cracktro {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
#game {
|
#game {
|
||||||
background-color: #1b1c17;
|
background-color: #1b1c17;
|
||||||
float: left;
|
float: left;
|
||||||
|
@ -225,6 +229,7 @@
|
||||||
li.flagged {
|
li.flagged {
|
||||||
background-color: #b5fe52;
|
background-color: #b5fe52;
|
||||||
background-image: url("images/flag.png");
|
background-image: url("images/flag.png");
|
||||||
|
background-size: 100% 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
li.flagged:hover {
|
li.flagged:hover {
|
||||||
|
@ -234,6 +239,7 @@
|
||||||
li.mine.revealed {
|
li.mine.revealed {
|
||||||
background-color: #d23000;
|
background-color: #d23000;
|
||||||
background-image: url("images/skull.png");
|
background-image: url("images/skull.png");
|
||||||
|
background-size: 100% 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
li.mines1 {
|
li.mines1 {
|
||||||
|
@ -609,6 +615,17 @@
|
||||||
return $(this).countMinesAdjacent().toString().replace("0", "");
|
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 += "<span>" + text[i] + "</span>";
|
||||||
|
}
|
||||||
|
|
||||||
|
$('#cracktro').html(cracktro);
|
||||||
|
}
|
||||||
|
|
||||||
$('input[type="radio"]').on("change", function() {
|
$('input[type="radio"]').on("change", function() {
|
||||||
switch ($(this).val()) {
|
switch ($(this).val()) {
|
||||||
case "easy":
|
case "easy":
|
||||||
|
@ -815,6 +832,24 @@
|
||||||
<p>a game by max bradbury</p>
|
<p>a game by max bradbury</p>
|
||||||
<p>inspirations include minesweeper, tetris and 2048</p>
|
<p>inspirations include minesweeper, tetris and 2048</p>
|
||||||
<p>tell your friends</p>
|
<p>tell your friends</p>
|
||||||
|
|
||||||
|
<div id="cracktro">
|
||||||
|
a game by max bradbury......................................................................
|
||||||
|
|
||||||
|
inspired by minesweeper, tetris and 2048....................................................
|
||||||
|
|
||||||
|
gratz 'n' greetz go out to mum & dad, guy, titas, dan, robin, arielle, isadore,
|
||||||
|
thom, tom, olu, lovely dave, jen, ed, david, andy, rachel, isaac, rory,
|
||||||
|
patrick 'partay' pat, al, ant, zoe, john, charlie.....................
|
||||||
|
|
||||||
|
plugs go out to keygenjukebox.com, candybox2.net, aliendovecote.com, zoe quinn & depression quest,
|
||||||
|
cookie clicker, font squirrel, codecademy, sublime text, github............................
|
||||||
|
|
||||||
|
this game was made in html5 and jquery......................................................
|
||||||
|
|
||||||
|
more games coming soon... keep your eyes peeled... peace!
|
||||||
|
</div>
|
||||||
|
|
||||||
<button>reset</button>
|
<button>reset</button>
|
||||||
</div>
|
</div>
|
||||||
<div id="setup">
|
<div id="setup">
|
||||||
|
|
Loading…
Reference in New Issue