Updated main page to follow C# syntax

This commit is contained in:
2022-04-28 18:13:31 +01:00
parent 71405fd5a2
commit 189ca5034b
3 changed files with 43 additions and 25 deletions

14
js/flip.js Normal file
View File

@ -0,0 +1,14 @@
var flipped = false;
function flipCard() {
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;
}
}