Kondan (24°43"N 95°10"E)

This commit is contained in:
nik gaffney 2021-06-15 16:44:05 +02:00
parent ba91cc99d7
commit 0d22df8106

View file

@ -15,7 +15,7 @@ var $bysuit = document.createElement('button')
var $fan = document.createElement('button')
$shuffle.textContent = 'Shuffle'
$bysuit.textContent = 'By suit'
$shufflesuit.textContent = 'L.O.Q'
$fan.textContent = 'Fan'
$topbar.appendChild($shuffle)
@ -147,6 +147,12 @@ $bysuit.addEventListener('click', function () {
deck.sort(true) // sort reversed
deck.bysuit()
})
$shufflesuit.addEventListener('click', function () {
deck.shuffle()
deck.bysuit()
})
$fan.addEventListener('click', function () {
deck.fan()
})