Compare commits

..

No commits in common. "696c427ea61d9dde0eec858adebdcf3a21679c66" and "db77413296cf2f3a3153167c8f378631761d87d7" have entirely different histories.

2 changed files with 3 additions and 12 deletions

View File

@ -9,10 +9,10 @@
</style>
</head>
<body>
<div id="deck"></div>
<div id="info" style="height: 275px; width: 500px; margin-left: 200px; overflow:auto"></div>
<button id="reset">reset</button>
<br>
<div id="deck"></div>
<div id="info" style="height: 325px; width: 500px; margin-left: 200px; overflow:auto"></div>
<div id="table"></div>
<div class="blueprint card">

View File

@ -1,15 +1,6 @@
import CardDB from './carddb.js';
import CardPile from './cardpile.js';
/* TODO
*
* - drag and drop the cards wherever
* - card front art
* - card back art for deck
* - fill in interpretive descriptions
* - fill in rest of keywords
*/
class Tarot {
constructor() {
this.cardDB = new CardDB();
@ -106,7 +97,7 @@ class Tarot {
const cardElem = bp.cloneNode(true);
cardElem.classList.remove("blueprint");
cardElem.setAttribute("data-cardName", cardName)
cardElem.setAttribute("style", "float:left; margin-right: 20px; width: 150px; height: 250px; border: 1px solid grey; box-shadow: 2px 2px 2px pink; text-align:center;");
cardElem.setAttribute("style", "float:left; margin-right: 20px; width: 150px; height: 250px; border: 1px solid pink;");
cardElem.querySelector("span").innerHTML = cardName;
cardElem.addEventListener("mouseenter", this.render.bind(this));
elem.append(cardElem);