diff --git a/web/shuffle/example.js b/web/shuffle/example.js index f185743..da44fa4 100644 --- a/web/shuffle/example.js +++ b/web/shuffle/example.js @@ -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() })