js/app.js
//Each cardContainer has three elements used in CSS animation
Each cardContainer has three elements used in CSS animation
Each cardContainer has three elements used in CSS animation
function appendCard(card, targetEl) {
  var cardContainer = document.createElement('div');
  cardContainer.classList.add('cardContainer');
  var cardParent = document.createElement('div');
  cardParent.classList.add('cardParent');
  var cardFront = document.createElement('div');
  cardFront.classList.add('front');
  var cardImg = document.createElement('img');
  cardImg.src = card.imgSrc;
  var cardBack = document.createElement('div');
  cardBack.classList.add('front', 'back');
  cardBack.append(cardImg);
  cardParent.appendChild(cardFront);
  cardParent.appendChild(cardBack);
  cardContainer.append(cardParent);
  targetEl.appendChild(cardContainer);
  if (dealer.handArray.length === 1 && player.handArray.length === 1) {
  } else {
    setTimeout(function () {
      flipCard(cardParent);
    }, 100);
  }
}
function appendCard ( card , targetEl ) { var cardContainer = document . createElement ( 'div' ) ; cardContainer . classList . add ( 'cardContainer' ) ; var cardParent = document . createElement ( 'div' ) ; cardParent . classList . add ( 'cardParent' ) ; var cardFront = document . createElement ( 'div' ) ; cardFront . classList . add ( 'front' ) ; var cardImg = document . createElement ( 'img' ) ; cardImg . src = card . imgSrc ; var cardBack = document . createElement ( 'div' ) ; cardBack . classList . add ( 'front' , 'back' ) ; cardBack . append ( cardImg ) ; cardParent . appendChild ( cardFront ) ; cardParent . appendChild ( cardBack ) ; cardContainer . append ( cardParent ) ; targetEl . appendChild ( cardContainer ) ; if ( dealer . handArray . length === 1 && player . handArray . length === 1 ) { } else { setTimeout ( function ( ) { flipCard ( cardParent ) ; } , 100 ) ; } }
Each cardContainer has three elements used in CSS animation
Each cardContainer has three elements used in CSS animation
//   STOPPED HERE // console.log(card); // var checkFlip = document.getElementById(dealerCards); // console.log(checkFlip); // do nothing