changed img id to class for the card name.
This commit is contained in:
parent
5c2ce122e9
commit
5d1cef5c44
3
deal.js
3
deal.js
@ -120,7 +120,8 @@ var dealCard = function(i) {
|
||||
var img = document.createElement("img");
|
||||
var cardJustDealt = cards[i];
|
||||
var orient = randomOrient();
|
||||
$(img).attr('id', cardJustDealt);
|
||||
$(img).addClass(cardJustDealt);
|
||||
// addClass for card's position (1-7)
|
||||
img.src = ("images/deck/" + cards[i] + ".jpg");
|
||||
img.alt = cards[i];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user