You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configuration is made in the note template, configuration is made between `<!-- CONFIGURATION BEGIN`/`END -->` on the `Front`/`Back Template` respectively. Styling is made between `/*-- STYLE BEGIN`/`END --*/` of the `Styling`page. JS/CSS between `<!-- FUNCTIONALITY BEGIN`/`END -->` tags is the actual FC2 code, not for configuration (will be overwritten on next update). The update logic is dependent on the user keeping the `<!-- FC2/CONFIGURATION/FUNCTIONALITY BEGIN/END -->` (and equivalent in the `Styling` page) intact.
13
+
Configuration is made in the note template, configuration is made between `/*-- CONFIGURATION BEGIN`/`END --*/` on the `Front`/`Back`/`Styling`template respectively. JS/CSS between `/*-- FUNCTIONALITY BEGIN`/`END --*/` tags is the actual FC2 code, not for configuration (will be overwritten on next update). The update logic is dependent on the user keeping the `/*-- CONFIGURATION/FUNCTIONALITY BEGIN/END --*/` intact.
14
14
15
15
- Clicking an active cloze on the front side will cycle it between hint (if there is one) and show.
16
16
- Clicking an inactive cloze on the front side will cycle it between hide and show (no hint).
- Active cloze: Cloze(s) with the current ordinal, i.e. the cloze(s) that should be answered. To change styling of these change or override `.cloze` class in `Styling` of the card template.
34
34
- Inactive cloze: Cloze(s) that are not the current ordinal, i.e. the cloze(s) that should not be answered. To change styling of these change or override `.cloze-inactive` class in `Styling` of the card template.
35
35
- Exposed cloze: Cloze(s) that when inactive (see above) will always be in "shown" state. Mark a cloze as exposed in the editor by making the first character an exclamation mark (e.g. `{{c1::!This will always be displayed when the cloze ordinal is not 1}}`).
36
-
- Configurable expose character(s), default is `!`
36
+
- Configurable expose character, default is `!`
37
37
- Configurable position of the expose position to allow use with {{type:cloze:Text}}:
38
38
- pre: **!**{{c1::content}}
39
39
- begin (default): {{c1::**!**content}}
@@ -76,7 +76,7 @@ var config = {
76
76
prompt:'[...]'// Prompt when no hint
77
77
hint:'[%h]', // %h is replaced with hint text
78
78
expose: {
79
-
chars:'!', // Char(s) to mark exposed cloze
79
+
char:'!', // Char to mark exposed cloze
80
80
pos:'begin', // Char pos: `pre`, `begin`, `end` or `post`
81
81
reverse:false// If true exposed clozes are hidden, others shown
## Main difference from the earlier mentioned add-ons
113
113
114
-
There is effectively no add-on, it's all JavaScript (and HTML/CSS) and runs 100% "client side" (the only python is the update logic). The logic requires an Anki version based on the 2.15.56 back end (i.e. Anki desktop 2.15.56, AnkiDroid 2.XYZ or AnkiMobile 2.XYZ).
114
+
There is effectively no add-on, it's all JavaScript (and HTML/CSS) and runs 100% "client side" (the only python is the update logic). The logic requires an Anki version based on the 2.15.56 back end (i.e. Anki desktop 2.15.56, AnkiDroid 2.16alpha93 with `Use new backend` enabled or AnkiMobile 2.XYZ).
115
115
116
116
- Included is my note styling and configuration (the way it functions and which fields are present are more or less a complete rip-off from RisingOrange). However, you can edit the note type however you want if you know a little HTML and CSS.
117
117
- This allows for keeping related content on the same note facilitating note creation (no need to search through the deck to see if you already added a card with similar content). It can also help when reviewing as you can look at the other related clozes if you need to check something (e.g. "Well if it wasn't that, what was it?"). This is how I design my notes, hence the layout.
@@ -129,3 +129,4 @@ There is effectively no add-on, it's all JavaScript (and HTML/CSS) and runs 100%
129
129
## Changelog
130
130
131
131
- 2023-01-23: Fix update logic bugs.
132
+
- 2023-02-07: Adapt JS to AnkiDroid behaviour, fix [expose bug](https://github.com/TRIAEIOU/flexible-cloze-2/issues/4).
0 commit comments