Skip to content

Commit

Permalink
fix shorcut appearing before the answer
Browse files Browse the repository at this point in the history
  • Loading branch information
Otter-man committed Jun 3, 2021
1 parent 8ddda37 commit 4f8c828
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions anki_shortcut_field.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ var doubleKeys = {

$('#shortcut').html("press shortcut");
document.getElementById("shortcut").style.color = "grey";
document.getElementById("shortcut").style.visibility = "visible";
if (window.SwitcherListener == undefined) {
// prevent starting second instances of event listener in the
// same window with this switcher
Expand Down
4 changes: 2 additions & 2 deletions note_front_and_back_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<hr>
<div class="box">
<div id="shortcut">{{ShortCut}}</div>
<div id="shortcut" style="visibility: hidden;">{{ShortCut}}</div>
</div>

<script src="https://otter-man.github.io/anki_shortcut_field.js"></script>
Expand All @@ -13,7 +13,7 @@

<hr>
<div class="box">
<div id="shortcut">{{ShortCut}}</div>
<div id="shortcut" style="visibility: hidden;">{{ShortCut}}</div>
</div>
<script>

Expand Down

0 comments on commit 4f8c828

Please sign in to comment.