-
Notifications
You must be signed in to change notification settings - Fork 45
Active Hands
Richard Schneider edited this page Feb 27, 2015
·
4 revisions
The class active-hand
can be used to indicate that a card in the hand can be played. When the mouse is over the card it is moved vertically or horizontally (depending on the layout) to indicate that it is about to be selected.
When the card is clicked, cards.playCard
is called passing the jquery card element. The default implementation is
cards.playCard = cards.remove
You can change the behaviour
cards.playCard = function ($card) {
alert(cards.cid($card) + ' was selected.');
}