js/logic.js
// handles touch event on smartphones and tablets
handles touch event on smartphones and tablets
handles touch event on smartphones and tablets
function handleTouch(card) {
    touchCount++;
    if (touchCount === 1) {
        flipCard(card);
    } else {
        touchCount = 0;
    }
}
function handleTouch ( card ) { touchCount ++ ; if ( touchCount === 1 ) { flipCard ( card ) ; } else { touchCount = 0 ; } }
handles touch event on smartphones and tablets
handles touch event on smartphones and tablets