Skip to content

Commit

Permalink
Add emojis to buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjester committed Jun 11, 2024
1 parent 202ff90 commit 81f1d68
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions index-flip/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ <H5><p id = "question-back"> </p></H5>
<div class="d-grid gap-2 d-md-flex justify-content-around">
<row>
<button id="check-btn" class="btn btn-primary btn-med me-md-4" type="button" onclick="check()"> </button>
<button id="flip-btn-back" class="btn btn-primary btn-med" type="button" onclick="flipMe(0)"> </button>
<button id="flip-btn-back" class="btn btn-outline-primary btn-med me-md-4" type="button" onclick="flipMe(0)"> </button>
<button id="reveal-btn" class="btn btn-primary btn-med me-md-4" type="button" onclick="reveal()"> </button>
</row>
</div>
Expand Down Expand Up @@ -385,10 +385,10 @@ <H5><p id = "question-back"> </p></H5>
window.candAnswer="";
window.multipleChoice = true;
flipMe(0);
const SHOW = "Reveal";
const SHOW = "👀 Show answer";
const NEXT = "▶️";
const FLIP = "⟳ Flip";
const CHECK = "Check";
const CHECK = "👁️ Check guess";
const test = window.test; // top level node is test
const numQuestions = test.length;
var questionRow;
Expand Down Expand Up @@ -549,8 +549,8 @@ <H5><p id = "question-back"> </p></H5>
}

function reveal() {
const HIDE = "Hide";
const SHOW = "Reveal";
const HIDE = "🙈 Hide answer";
const SHOW = "👀 Show answer";
if (document.getElementById("reveal-btn").innerHTML == HIDE) {
document.getElementById("answer").className = "";
document.getElementById("reveal-btn").innerHTML = SHOW;
Expand All @@ -572,7 +572,6 @@ <H5><p id = "question-back"> </p></H5>
document.getElementById(letters[i]).className = "";
}
document.getElementById("answer").className = "";
document.getElementById("check-btn").className = "btn btn-secondary btn-med me-md-4";
window.candAnswer="";
}

Expand All @@ -581,7 +580,6 @@ <H5><p id = "question-back"> </p></H5>
document.getElementById("answer").className = "";
window.candAnswer=candidateAnswer;
document.getElementById(candidateAnswer).className = "bg-warning";
document.getElementById("check-btn").className = "btn btn-info btn-med me-md-4";
}

function check() {
Expand Down

0 comments on commit 81f1d68

Please sign in to comment.