Pingtung Plain, Tac-tac & Poritia
This commit is contained in:
parent
ce6d0dd7a3
commit
6388d74030
1 changed files with 1 additions and 19 deletions
|
@ -142,9 +142,7 @@ $shuffle.addEventListener('click', function () {
|
||||||
deck.shuffle()
|
deck.shuffle()
|
||||||
deck.shuffle()
|
deck.shuffle()
|
||||||
})
|
})
|
||||||
$sort.addEventListener('click', function () {
|
|
||||||
deck.sort()
|
|
||||||
})
|
|
||||||
$bysuit.addEventListener('click', function () {
|
$bysuit.addEventListener('click', function () {
|
||||||
deck.sort(true) // sort reversed
|
deck.sort(true) // sort reversed
|
||||||
deck.bysuit()
|
deck.bysuit()
|
||||||
|
@ -152,22 +150,6 @@ $bysuit.addEventListener('click', function () {
|
||||||
$fan.addEventListener('click', function () {
|
$fan.addEventListener('click', function () {
|
||||||
deck.fan()
|
deck.fan()
|
||||||
})
|
})
|
||||||
$flip.addEventListener('click', function () {
|
|
||||||
deck.flip()
|
|
||||||
})
|
|
||||||
$poker.addEventListener('click', function () {
|
|
||||||
deck.queue(function (next) {
|
|
||||||
deck.cards.forEach(function (card, i) {
|
|
||||||
setTimeout(function () {
|
|
||||||
card.setSide('back')
|
|
||||||
}, i * 7.5)
|
|
||||||
})
|
|
||||||
next()
|
|
||||||
})
|
|
||||||
deck.shuffle()
|
|
||||||
deck.shuffle()
|
|
||||||
deck.poker()
|
|
||||||
})
|
|
||||||
|
|
||||||
deck.mount($container)
|
deck.mount($container)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue