A JavaScript library for creating interactive visual quizzes on educational diagrams and images.
- Progressive disclosure: Clean images first, interactive quiz on demand
- Visual quiz creation: Click-and-drag designer tool for educators
- Flexible positioning: Controls can be positioned top, bottom, left, or right with fine-tuning offsets
- Group organization: Organize quiz elements by category (enzymes, products, diseases, etc.)
- No dependencies: Pure JavaScript, works with any website
<script src="image-flashcard.js"></script>
<!-- Your educational image with quiz configuration -->
<div data-quiz-config="path/to/your-config.json">
<img src="your-diagram.jpg" alt="Educational Diagram">
</div>
Use the Image Flashcard Designer tool (image-flashcard-designer.html
) to:
- Upload your educational image
- Click to create quiz areas
- Group related elements
- Add labels and detailed answers
- Export configuration and image files
See integration-guide.md for complete setup and usage instructions.
Choose one of these commands in the project directory:
# Python 3 (most common)
python -m http.server 8000
# Python 2
python -m SimpleHTTPServer 8000
# Node.js (if you have npm installed)
npx serve .
# PHP
php -S localhost:8000
Then visit:
- Examples:
http://localhost:8000/examples/example.html
- Designer Tool:
http://localhost:8000/image-flashcard-designer.html
Check the /examples
folder for a complete urea cycle pathway quiz example.
MIT License - Feel free to use in educational projects.