added orientationUp class
This commit is contained in:
parent
686902a027
commit
c828401ca8
3
main.js
3
main.js
@ -126,10 +126,11 @@ var dealCard = function(i) {
|
|||||||
img.alt = cards[i];
|
img.alt = cards[i];
|
||||||
|
|
||||||
if (orient === 1) {
|
if (orient === 1) {
|
||||||
$(img).addClass("orientation");
|
$(img).addClass("orientationDown");
|
||||||
document.getElementById("hand").appendChild(img);
|
document.getElementById("hand").appendChild(img);
|
||||||
removeCard(i);
|
removeCard(i);
|
||||||
} else {
|
} else {
|
||||||
|
$(img).addClass("orientationUp");
|
||||||
document.getElementById("hand").appendChild(img);
|
document.getElementById("hand").appendChild(img);
|
||||||
removeCard(i);
|
removeCard(i);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user