add checkmarks and x's

This commit is contained in:
marsteralex 2022-09-19 01:58:44 +02:00
parent 21c8e23756
commit 9d6353be79
2 changed files with 12 additions and 7 deletions

View File

@ -186,11 +186,7 @@ function determineIfSkip(card) {
}
if (firstPrint) {
if (whichGuesser == 'basic') {
if (
card.set_type !== 'expansion' &&
card.set_type !== 'funny' &&
card.set_type !== 'draft_innovation'
) {
if (card.set_type !== 'expansion' && card.set_type !== 'funny') {
return true
}
} else if (whichGuesser == 'artist') {
@ -344,6 +340,8 @@ function checkAnswers() {
incorrect = ans !== guess
// decide if their guess was correct
// window.console.log(ans, guess, incorrect)
correctAns = String.fromCodePoint(0x2705) + ' ' + ansWithSymbol
incorrectAns = String.fromCodePoint(0x274c) + ' ' + guessWithSymbol
if (incorrect) {
window.console.log(
document.getElementById(currCard.dataset.name),
@ -351,7 +349,13 @@ function checkAnswers() {
ans
)
document.getElementById(currCard.dataset.name).innerHTML =
'<strike>' + guessWithSymbol + '</strike><br/>' + ansWithSymbol
incorrectAns +
'<br/><span style="opacity:0;">' +
String.fromCodePoint(0x274c) +
'</span>&nbsp;' +
ansWithSymbol
} else {
document.getElementById(currCard.dataset.name).innerHTML = correctAns
}
}
if (incorrect) {

View File

@ -291,7 +291,8 @@
<input type="submit" id="newGame" value="New Game" />
</form>
<div style="flex-grow: 1">
<span id="guess-type"></span>: <span id="round-number"></span>
<span id="guess-type"></span>: <span id="round-number"></span
><span style="display: inline-block; width: 90px">&nbsp;</span>
</div>
</h1>