I tried the card with the above command as well as in the below command
[[rect1::205,263,189,169]]
[[rect2::228,716,425,263]]
[[rect3::618,389,319,287]]
That setup is a bit messed up. There have been changes to the file structure of Closet since the YouTube video came out. Some of the recipes are now under closet/flashcard/recipes.
Also, those quote characters you used are illegal.
Here is the corrected version:
Click to expand
/* here goes the setup - change it to fit your own needs */
filterManager.install(
closet.recipes.shuffle({ tagname: "mix" }),
closet.recipes.order({ tagname: "ord" }),
closet.flashcard.recipes.cloze.show({ tagname: "c" }),
closet.flashcard.recipes.cloze.hide({ tagname: "ch" }),
closet.flashcard.recipes.cloze.reveal({ tagname: "cr" }),
closet.browser.recipes.rect.show({ tagname: "rect" }),
closet.browser.recipes.rect.reveal({ tagname: "rectr" }),
closet.browser.recipes.rect.hide({ tagname: "recth" }),
closet.flashcard.recipes.multipleChoice({
tagname: "mc",
defaultBehavior: closet.flashcard.behaviors.Show,
}),
closet.flashcard.recipes.sort({
tagname: "sort",
defaultBehavior: closet.flashcard.behaviors.Show,
}),
);
so I edited the closet.css file
[>>storage>> emulated/0/android/collectopn.media/_closet-0.5.3.css]
changed visibility : hidden to visibility : block [ in fact, changed it in two places in the file]
present status
the cards became visible. but occlusion and close are not working…
card 1
what is the capital of Britain ----[[Ch1:: London]]
instead of closing London, it shows [[Ch1:: London]]
I am a bit confused because normally you shouldn’t have to change anything to get Closet to work other than using a 2.15 alpha or beta build.
For me it’s been working ever since Henrik introduced the neccessary changes and I never had any issues with it.
I don’t think it has to do with closet.css, but with the way your note type is set up. Perhaps try it with a clean Closet install and a minimal new note type with your setup.
Hi
i’m unsure if the closet.css change is necessary anymore, since i didn’t have to do it in a fresh profile and install. But I definitely had to do it once before.
@marcus_aurelius I’m not sure where your problem lies, since closet seems to be functioning for me in 2.15alpha43 (I’ve yet to install the Beta). Could you try making a fresh anki install, a new profile (make sure to clear all media in your ankiweb too), and then syncing with a new install of ankidroid.
Occlusion issue is already addressed in the above chats…
you just need to name the cmdsall as cmds0 .
Reading the previous comment will help you to solve the issue
I can’t figure out what could be wrong then, if it works in the PC, it should work in AnkiDroid, try replacing the closet js and css files in your ankidroid medial folder with ones copied from your anki PC media folder
update: the card made in ankidroid works perfectly in the laptop.
In laptop i couldn’t find closet.css file [ my os is ubuntu 18] @kleinerpirat@shallash Can you share your closet.css file here. I will replace mine with your’s then
Just make a new profile in an anki installation that has closet installed, and maybe close and open it once. The closet js and css should appear in the collection.media folder of that profile.
Just telling you this because it’s the way I replace any addon files that I mess up.
uninstalled the whole ankidroid… even the data files and installed the beta version…
edited the css file from ‘hidden’ to ‘block’>>>> as usual the cards are visible and the closet not functioning
will wait for the official Anki update … till then I will do my review on the desktop only… Once again thanks all for your valuable time @hengiesel, Sir your work is so good that I don’t have words to thank you. It has truly helped the students in their studies… It’s something I wished I had some years earlier… My lack of knowledge of coding made it just a wish… But you changed it to reality, not just for me but many students…
Once I start earning, I will buy you a coffee for sure…
Hello all ,
Today Ankidroid got updated to 2.15.2
I updated my ankidroid from the beta version… But still the problem of closet not functioning is continuing.
I have two android devices, one with Android10, another with Android 8.0. I’m also using Ankidroid 2.15.2, and my closet cards are working fine with A10, but for some reason, not at all with 8, they just are showed as blank cards on the screen.
I don’t know what is exactly the problem (sorry, I haven’t read the above posts) but maybe you could try your cards with another device, just to be sure that the problem is in the cards, not in the OS.