Merge remote-tracking branch 'origin/gh-pages'

This commit is contained in:
synth-ruiner 2015-03-18 17:29:30 +00:00
commit a8adfb4e4d
1 changed files with 33 additions and 0 deletions

View File

@ -42,6 +42,10 @@
width: 100vmin;
}
#cracktro {
display: none;
}
#game {
background-color: #1b1c17;
float: left;
@ -611,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 += "<span>" + text[i] + "</span>";
}
$('#cracktro').html(cracktro);
}
$('input[type="radio"]').on("change", function() {
switch ($(this).val()) {
case "easy":
@ -817,6 +832,24 @@
<p>a game by max bradbury</p>
<p>inspirations include minesweeper, tetris and 2048</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 &amp; 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 &amp; 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>
</div>
<div id="setup">