Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions Note Types/AnKing/Back Template.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- version ca87415 -->
<!-- version b174588 -->
<script>
// ############## HINT REVEAL SHORTCUTS ##############
// All shortcuts will also open with "H" if using the Hint Hotkeys add-on
Expand Down Expand Up @@ -570,10 +570,11 @@
cloze.classList.add("one-by-one");
}
}
const extra = document.getElementById("extra");
if (extra) {
extra.classList.add("hidden");
}
// Don't hide the Extra field - let it display as a margin note
// const extra = document.getElementById("extra");
// if (extra) {
// extra.classList.add("hidden");
// }
for (const [field, autoReveal] of Object.entries(ButtonAutoReveal)) {
const container = document.querySelector(`[data-name="${field}"]`)
if (container) {
Expand Down Expand Up @@ -690,10 +691,11 @@
const maybeRevealExtraField = () => {
let elems = document.querySelectorAll(".cloze-hidden")
if (elems.length == 0) {
const extra = document.getElementById("extra")
if (extra) {
extra.classList.remove("hidden")
}
// Extra field is always visible as margin note, no need to reveal
// const extra = document.getElementById("extra")
// if (extra) {
// extra.classList.remove("hidden")
// }
// Also reveal autoReveal fields
for (const [field, autoReveal] of Object.entries(ButtonAutoReveal)) {
const container = document.querySelector(`[data-name="${field}"]`)
Expand Down
2 changes: 1 addition & 1 deletion Note Types/AnKing/Front Template.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- version ca87415 -->
<!-- version b174588 -->
<div id="text">{{cloze:Text}}</div>

<br>
Expand Down
20 changes: 11 additions & 9 deletions Note Types/AnKingAnkisthesia/Back Template.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- version ca87415 -->
<!-- version b174588 -->
<script>
// ############## HINT REVEAL SHORTCUTS ##############
// Visit https://keycode.info/ to get the number/letter for the key you want to assign.
Expand Down Expand Up @@ -613,10 +613,11 @@
cloze.classList.add("one-by-one");
}
}
const extra = document.getElementById("extra");
if (extra) {
extra.classList.add("hidden");
}
// Don't hide the Extra field - let it display as a margin note
// const extra = document.getElementById("extra");
// if (extra) {
// extra.classList.add("hidden");
// }
for (const [field, autoReveal] of Object.entries(ButtonAutoReveal)) {
const container = document.querySelector(`[data-name="${field}"]`)
if (container) {
Expand Down Expand Up @@ -733,10 +734,11 @@
const maybeRevealExtraField = () => {
let elems = document.querySelectorAll(".cloze-hidden")
if (elems.length == 0) {
const extra = document.getElementById("extra")
if (extra) {
extra.classList.remove("hidden")
}
// Extra field is always visible as margin note, no need to reveal
// const extra = document.getElementById("extra")
// if (extra) {
// extra.classList.remove("hidden")
// }
// Also reveal autoReveal fields
for (const [field, autoReveal] of Object.entries(ButtonAutoReveal)) {
const container = document.querySelector(`[data-name="${field}"]`)
Expand Down
2 changes: 1 addition & 1 deletion Note Types/AnKingAnkisthesia/Front Template.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- version ca87415 -->
<!-- version b174588 -->
<div id="text">{{cloze:Text}}</div>

<!-- ############## Text-to-speech ##############
Expand Down
20 changes: 11 additions & 9 deletions Note Types/AnKingDerm/Back Template.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- version ca87415 -->
<!-- version b174588 -->
<script>
// ############## HINT REVEAL SHORTCUTS ##############
// All shortcuts will also open with "H" if using the Hint Hotkeys add-on
Expand Down Expand Up @@ -669,10 +669,11 @@
cloze.classList.add("one-by-one");
}
}
const extra = document.getElementById("extra");
if (extra) {
extra.classList.add("hidden");
}
// Don't hide the Extra field - let it display as a margin note
// const extra = document.getElementById("extra");
// if (extra) {
// extra.classList.add("hidden");
// }
for (const [field, autoReveal] of Object.entries(ButtonAutoReveal)) {
const container = document.querySelector(`[data-name="${field}"]`)
if (container) {
Expand Down Expand Up @@ -789,10 +790,11 @@
const maybeRevealExtraField = () => {
let elems = document.querySelectorAll(".cloze-hidden")
if (elems.length == 0) {
const extra = document.getElementById("extra")
if (extra) {
extra.classList.remove("hidden")
}
// Extra field is always visible as margin note, no need to reveal
// const extra = document.getElementById("extra")
// if (extra) {
// extra.classList.remove("hidden")
// }
// Also reveal autoReveal fields
for (const [field, autoReveal] of Object.entries(ButtonAutoReveal)) {
const container = document.querySelector(`[data-name="${field}"]`)
Expand Down
2 changes: 1 addition & 1 deletion Note Types/AnKingDerm/Front Template.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- version ca87415 -->
<!-- version b174588 -->
<div id="text">{{cloze:Text}}</div>


Expand Down
2 changes: 1 addition & 1 deletion Note Types/AnKingDermPath/Back Template.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- version ca87415 -->
<!-- version b174588 -->
<script>
// ############## HINT REVEAL SHORTCUTS ##############
// All shortcuts will also open with "H" if using the Hint Hotkeys add-on
Expand Down
2 changes: 1 addition & 1 deletion Note Types/AnKingDermPath/Front Template.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- version ca87415 -->
<!-- version b174588 -->
<div id="front">{{edit:Front}}</div>
<div style="font-size:8px; font-style:italic;">Above Image(s) provided courtesy of Tammie Ferringer, MD</div>

Expand Down
44 changes: 27 additions & 17 deletions Note Types/AnKingMCAT/Back Template.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- version ca87415 -->
<!-- version b174588 -->
<script>
// ############## HINT REVEAL SHORTCUTS ##############
// All shortcuts will also open with "H" if using the Hint Hotkeys add-on
Expand Down Expand Up @@ -67,14 +67,18 @@
</script>


<div class="clozefield" id="text">{{cloze:Text}}</div>
<section>
<div class="clozefield">
<p>{{cloze:Text}}</p>
</div>

<!-- ############## EDIT CLOZE DURING REVIEW ##############
-change below (not above) to "edit:cloze:Text" for editable field,
-change below (not above) to "edit:cloze:Text" for editable field,
but be sure to have the correct add-on installed-->

<div class="editcloze" id="text">{{edit:cloze:Text}}</div>

<div class="editcloze">
<p>{{edit:cloze:Text}}</p>
</div>

<br>

Expand All @@ -84,8 +88,11 @@
<!--tts en_US voices=Apple_Samantha,Microsoft_Zira speed=1.4:cloze-only:Text-->
{{/One by one}}

</section>

<hr>

<section>
<!-- BUTTON FIELDS -->
<!-- ClOZE ONE BY ONE BUTTONS -->

Expand Down Expand Up @@ -127,10 +134,10 @@
</span>
{{/Missed Questions}}

<!-- Extra field -->
{{#Extra}}<p></p>
<div id="extra">{{edit:Extra}}</div>
<br>{{/Extra}}
<!-- Extra field as margin note -->
{{#Extra}}
<span class="marginnote" id="extra">{{edit:Extra}}</span>
{{/Extra}}

{{#Pixorize}}
<span id = "hint-pixorize" class="hintBtn" data-name="Pixorize">
Expand Down Expand Up @@ -162,6 +169,7 @@
</span>
{{/Additional Resources}}

</section>

<!-- ANKING HYPERLINK IMAGE -->
<a href="https://www.ankingmed.com"><img src="_AnKingIconSmall.png" alt="The AnKing" id="pic"></a>
Expand Down Expand Up @@ -603,10 +611,11 @@
cloze.classList.add("one-by-one");
}
}
const extra = document.getElementById("extra");
if (extra) {
extra.classList.add("hidden");
}
// Don't hide the Extra field - let it display as a margin note
// const extra = document.getElementById("extra");
// if (extra) {
// extra.classList.add("hidden");
// }
for (const [field, autoReveal] of Object.entries(ButtonAutoReveal)) {
const container = document.querySelector(`[data-name="${field}"]`)
if (container) {
Expand Down Expand Up @@ -723,10 +732,11 @@
const maybeRevealExtraField = () => {
let elems = document.querySelectorAll(".cloze-hidden")
if (elems.length == 0) {
const extra = document.getElementById("extra")
if (extra) {
extra.classList.remove("hidden")
}
// Extra field is always visible as margin note, no need to reveal
// const extra = document.getElementById("extra")
// if (extra) {
// extra.classList.remove("hidden")
// }
// Also reveal autoReveal fields
for (const [field, autoReveal] of Object.entries(ButtonAutoReveal)) {
const container = document.querySelector(`[data-name="${field}"]`)
Expand Down
7 changes: 4 additions & 3 deletions Note Types/AnKingMCAT/Front Template.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!-- version ca87415 -->
<div id="text">{{cloze:Text}}</div>

<!-- version b174588 -->
<section>
<p>{{cloze:Text}}</p>
</section>

<br>

Expand Down
Loading