Releases: huandney/Anki-Cloze-Interactive
Releases · huandney/Anki-Cloze-Interactive
Version 1.3.1
What's New
Fixed some bugs in AnkiDroid.
Fixes
- Fixed: Link did not prevent cloze gesture conflict with Mathjax on AnkiDroid.
- Fixed: autoFlip on AnkiDroid.
Full Changelog: v1.3.0...v1.3.1
Version 1.3.0
What's New
Updated version to enhance functionality, with special attention to AnkiMobile and AnkiDroid.
Fixes
- Fixed: Gesture conflict between standard touch actions on AnkiMobile and the tap-to-reveal cloze functionality.
- Fixed: Issue where automatic scrolling to the cloze was ignored due to being overlaid by the bottom bar on AnkiMobile, now ensuring full visibility and accessibility of clozes.
- Fixed: Gesture conflicts in clozes containing MathJax on AnkiDroid.
- Fixed: Issue with swipe gestures on AnkiMobile and keyboard shortcuts on AnkiWeb being improperly activated on the backside of cards, now preventing unintentional scroll activation on the back.
Improvements
- Updated FlipToBack: Improved functionality to automatically flip the card on all platforms after revealing all clozes.
- Adjusted getOverlayHeights: For correct functioning on AnkiMobile, including an additional check for the bottom bar.
- Optimized hideLastCloze: Improved logic of
hideLastCloze
to prevent unnecessary execution, now using the modularizedallClozesRevealed
function to terminate the action once all clozes have been revealed.
Changed
- Introduced autoFlip: A new setting that allows users to choose on which platforms the card will automatically flip after revealing all clozes.
- Added convertSpanToLink: Transforms
span
elements into links for direct activation of clozes on touch screen devices, avoiding gesture conflicts. - Removed AnkiDroid Specific Checks for MathJax: Simplification of the code by removing specific functions for rendering MathJax in AnkiDroid.
- Introduced detectAnkiPlatform: A new function to identify the Anki platform in use, improving compatibility and user experience across different devices.
- Modularized allClozesRevealed: Function now used both to call
flipToBack
inrevealCloze
and to end thehideLastCloze
function, optimizing the study flow. - Added updateGestureSetting: Included an option to disable gestures on AnkiWeb and AnkiDesktop with touch screens.
- CSS Styling:
- Restored
.cloze.revealed
Style: Reintroduced the style for.cloze.revealed
, offering a clear visual distinction between revealed and unrevealed clozes, contrasting with the previously used.interactive
style. - Specific CSS Style for MathJax Conflicts in AnkiDroid: Added specific CSS style to resolve gesture conflicts with cloze elements containing MathJax, preventing unwanted interactions.
- Restored
Full Changelog: v1.2.0...v1.3.0
Version 1.2.0
What's New
Enhanced compatibility with the new AnkiWeb.
Fixes
- Fixed: Card not displaying the back after completing all clozes on AnkiWeb.
- Fixed: Clozes being revealed even when obscured by fixed or "sticky" headers or footers on AnkiWeb.
- Fixed: Script responding on the back side of the card in AnkiWeb.
Improvements
- Introduced:
getOverlayHeights
function to detect and calculate heights of 'fixed' and 'sticky' elements.
Changed
flipToBack
: Updated for compatibility with the new AnkiWeb and removal of event handlers when displaying the back of the card.isElementInViewport
: Integrated withgetOverlayHeights
to enhance cloze visibility detection in relation to special elements.initialize
,revealCloze
,hideLastCloze
: Added interactive class for unrevealed clozes and removed 'revealed' class handling.- CSS Styling:
- Removed 'cursor: pointer' from the general
.cloze
class and applied it specifically to the.cloze.interactive
class. - Removed the
.cloze.revealed
class handling and its associated styles.
- Removed 'cursor: pointer' from the general
Full Changelog: v1.1.0...v1.2.0
Version 1.1.0
What's new
The script now always hides the last revealed cloze, unlike the old hiding logic which hid clozes based on their position in the text.
Improvements
- Added
revealOrder
to track the order of revealed clozes.
Changed
- Modified the
revealCloze
function to add the index of the revealed cloze torevealOrder
. - Modified the
hideLastCloze
function to hide the last revealed cloze as recorded inrevealOrder
.
Full Changelog: v1.0.0...v1.1.0
Version 1.0.0 - Initial Release
The key features include:
- Individual Cloze Reveal and Hide.
- Touch Gestures on touchscreen devices.
- Keyboard Shortcuts.
- Smooth Auto Scroll.
- Flip to Back.
- MathJax Support.