Include initial state of auto-draw.
This commit is contained in:
@@ -42,8 +42,10 @@ var deckElement = document.getElementById('deck');
|
|||||||
var handElement = document.getElementById('hand');
|
var handElement = document.getElementById('hand');
|
||||||
var recommendElement = document.getElementById('result');
|
var recommendElement = document.getElementById('result');
|
||||||
var pointsElement = document.getElementById('points');
|
var pointsElement = document.getElementById('points');
|
||||||
|
var autoDrawElement = document.getElementById('autoDrawToggle');
|
||||||
|
|
||||||
reset();
|
reset();
|
||||||
|
toggleAutoDraw(autoDrawElement);
|
||||||
|
|
||||||
function toggleAutoDraw(element) {
|
function toggleAutoDraw(element) {
|
||||||
if (element.checked) {
|
if (element.checked) {
|
||||||
@@ -242,7 +244,6 @@ function drawCard(cardId, thisHand = null, thisDeck = null) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function recommend() {
|
function recommend() {
|
||||||
var cardCount = Object.keys(allCards).length
|
|
||||||
recommendOfDepth(defaultDepth);
|
recommendOfDepth(defaultDepth);
|
||||||
updateUI(true);
|
updateUI(true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user