add checkmarks and x's
This commit is contained in:
parent
21c8e23756
commit
9d6353be79
|
@ -186,11 +186,7 @@ function determineIfSkip(card) {
|
||||||
}
|
}
|
||||||
if (firstPrint) {
|
if (firstPrint) {
|
||||||
if (whichGuesser == 'basic') {
|
if (whichGuesser == 'basic') {
|
||||||
if (
|
if (card.set_type !== 'expansion' && card.set_type !== 'funny') {
|
||||||
card.set_type !== 'expansion' &&
|
|
||||||
card.set_type !== 'funny' &&
|
|
||||||
card.set_type !== 'draft_innovation'
|
|
||||||
) {
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
} else if (whichGuesser == 'artist') {
|
} else if (whichGuesser == 'artist') {
|
||||||
|
@ -344,6 +340,8 @@ function checkAnswers() {
|
||||||
incorrect = ans !== guess
|
incorrect = ans !== guess
|
||||||
// decide if their guess was correct
|
// decide if their guess was correct
|
||||||
// window.console.log(ans, guess, incorrect)
|
// window.console.log(ans, guess, incorrect)
|
||||||
|
correctAns = String.fromCodePoint(0x2705) + ' ' + ansWithSymbol
|
||||||
|
incorrectAns = String.fromCodePoint(0x274c) + ' ' + guessWithSymbol
|
||||||
if (incorrect) {
|
if (incorrect) {
|
||||||
window.console.log(
|
window.console.log(
|
||||||
document.getElementById(currCard.dataset.name),
|
document.getElementById(currCard.dataset.name),
|
||||||
|
@ -351,7 +349,13 @@ function checkAnswers() {
|
||||||
ans
|
ans
|
||||||
)
|
)
|
||||||
document.getElementById(currCard.dataset.name).innerHTML =
|
document.getElementById(currCard.dataset.name).innerHTML =
|
||||||
'<strike>' + guessWithSymbol + '</strike><br/>' + ansWithSymbol
|
incorrectAns +
|
||||||
|
'<br/><span style="opacity:0;">' +
|
||||||
|
String.fromCodePoint(0x274c) +
|
||||||
|
'</span> ' +
|
||||||
|
ansWithSymbol
|
||||||
|
} else {
|
||||||
|
document.getElementById(currCard.dataset.name).innerHTML = correctAns
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (incorrect) {
|
if (incorrect) {
|
||||||
|
|
|
@ -291,7 +291,8 @@
|
||||||
<input type="submit" id="newGame" value="New Game" />
|
<input type="submit" id="newGame" value="New Game" />
|
||||||
</form>
|
</form>
|
||||||
<div style="flex-grow: 1">
|
<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"> </span>
|
||||||
</div>
|
</div>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user