National Tertiary Education Union, Manvi & Cat hair mustache puzzle
This commit is contained in:
parent
16899a2607
commit
62f7a2ae08
2 changed files with 36 additions and 5 deletions
|
@ -151,15 +151,16 @@ var Deck = (function () {
|
|||
return document.createElement(type);
|
||||
}
|
||||
|
||||
var maxZ = 52;
|
||||
var maxZ = 54; // total no. of cards
|
||||
var maxS = 3; // total no. of 'suits'
|
||||
|
||||
function _card(i) {
|
||||
var transform = prefix('transform');
|
||||
|
||||
// calculate rank/suit, etc..
|
||||
var rank = i % 26 + 1;
|
||||
var suit = i / 2 | 0;
|
||||
var z = (52 - i) / 2;
|
||||
var rank = i % (maxZ/maxS) + 1;
|
||||
var suit = i / (maxZ/maxS) | 0;
|
||||
var z = (maxZ - i) / 2;
|
||||
|
||||
// create elements
|
||||
var $el = createElement('div');
|
||||
|
|
|
@ -243,6 +243,21 @@ body {
|
|||
.card.spades.rank13 .face {
|
||||
background-image: url("faces/c3.png");
|
||||
}
|
||||
.card.spades.rank14 .face {
|
||||
background-image: url("faces/c4.png");
|
||||
}
|
||||
.card.spades.rank15 .face {
|
||||
background-image: url("faces/c4.png");
|
||||
}
|
||||
.card.spades.rank16 .face {
|
||||
background-image: url("faces/c1.png");
|
||||
}
|
||||
.card.spades.rank17 .face {
|
||||
background-image: url("faces/c3.png");
|
||||
}
|
||||
.card.spades.rank18 .face {
|
||||
background-image: url("faces/c1.png");
|
||||
}
|
||||
|
||||
|
||||
.card.hearts.rank1 .face {
|
||||
|
@ -284,7 +299,22 @@ body {
|
|||
.card.hearts.rank13 .face {
|
||||
background-image: url("faces/c3.png");
|
||||
}
|
||||
|
||||
.card.hearts.rank14 .face {
|
||||
background-image: url("faces/c3.png");
|
||||
}
|
||||
.card.hearts.rank15 .face {
|
||||
background-image: url("faces/c3.png");
|
||||
}
|
||||
.card.hearts.rank16 .face {
|
||||
background-image: url("faces/c3.png");
|
||||
}
|
||||
.card.hearts.rank17 .face {
|
||||
background-image: url("faces/c3.png");
|
||||
}
|
||||
}
|
||||
.card.hearts.rank18 .face {
|
||||
background-image: url("faces/c3.png");
|
||||
}
|
||||
|
||||
.card.joker.rank1 .face {
|
||||
background-image: url("faces/4_1.svg");
|
||||
|
|
Loading…
Reference in a new issue