Show card info on click
Closed this issue · 3 comments
gricha2380 commented
Once drag is in place, use click to display card details in modal.
gricha2380 commented
/this will be done for cards in the deck and not for cards in the hand. It's more useful there.
gricha2380 commented
Create info icon for all cards. <div class="info">?<div/>
$(".info").on("click",function(){ let whichCard = $(this).parent().find("WHATEVER").attr("value"); populateModal(gameState[whichCard].info) })
let populateModal = (info)=>{
// make close button
// function for close button event listener
// Card name
// Card description
// Card examples
}
gricha2380 commented
Done. And it looks pretty decent, too.