2022-04-22 21:39:25 +00:00
|
|
|
var flipped = false;
|
|
|
|
|
2022-04-22 21:22:28 +00:00
|
|
|
function flipCard() {
|
2022-04-22 21:39:25 +00:00
|
|
|
|
|
|
|
if (!flipped) {
|
|
|
|
document.getElementById('card-front').style.transform = 'rotateX(-180deg)';
|
|
|
|
document.getElementById('card-back').style.transform = 'rotateX(0deg)';
|
|
|
|
flipped = true;
|
|
|
|
}else{
|
|
|
|
document.getElementById('card-front').style.transform = 'rotateX(0deg)';
|
|
|
|
document.getElementById('card-back').style.transform = 'rotateX(-180deg)';
|
|
|
|
flipped = false;
|
|
|
|
}
|
2022-04-22 21:22:28 +00:00
|
|
|
}
|