trunk
vilmibm 2020-11-24 22:52:31 -08:00
parent fd76c5ebe4
commit 5c428750bb
1 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ class Tarot {
}
drawCard() {
let cardName = this.deck.random();
const cardName = this.deck.random();
if (cardName === null) {
this.render();
return;
@ -89,8 +89,8 @@ class Tarot {
continue;
}
let bp = document.querySelector(".card.blueprint");
let cardElem = bp.cloneNode(true);
const bp = document.querySelector(".card.blueprint");
const cardElem = bp.cloneNode(true);
cardElem.classList.remove("blueprint");
cardElem.setAttribute("data-cardName", cardName)
cardElem.setAttribute("style", "float:left; width: 150px; height: 250px; border: 1px solid pink;");