Flashcards App
To use this app you should import your cards from a JSON document. If you don't have your cards in JSON format the use the following format to pass them to a JSON document:
[
{
"front": "The front of the card: string",
"back": "Back of the card: string (if it's an image you either put the link to it or use base 64 encoded strings)",
"type": "Type can only be: text | code:language | image.",
},
...
]
-
If type is text, it will simply show the information.
-
If type is code, it will use prism to show the code. The app will look for the ':' separation and select the language, if not specified it will default to C. However other languages beside C or JSON are not yet supported , since i couldn't make the prism autoloader work and i wanted to finish this fast.
-
If type is image, it will check whether it's base64 encoded and set the <img /> HTML element src property accordingly.
The imported JSON will be saved in the localstorage and you can export all cards whenever you want with the menu on the right side.