comment_to_toh.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Hi Toh!
  2. First, I thank you very much for posting and sharing this good piece
  3. of code!
  4. I like it because, it's simple, it's embedable, no dependency, pure
  5. javascript.
  6. I found your code search for a simple quiz code. I consider quizzes as
  7. a fun learning learning experience on something.
  8. Some things I'd like to improve on it:
  9. ux/reload) The user has to reload the page to restart the quiz and
  10. it's not evident. How about making the last button a possibility
  11. to redo the quiz from start and make a better score?
  12. ux/where I am) The user doesn't know how many questions there are in
  13. the quiz, where he is along the quiz, how good he is. Knowing where we
  14. are in a serie makes it easier to reach the end. This one is easy to
  15. add, as I could do it.
  16. css functional) The quiz.css is not so cosmetic: if you comment it in the
  17. html, then the quiz functionally doesn't work the same; we have to
  18. click twice on a button to go to the next question, and the second
  19. click has to be outside the round of the radio button, on the label.
  20. I don't know how to fix that but it's not important anyway, the css is
  21. needed for cosmetics.
  22. css cosmetic) this quiz code is to be embedded in a page then I suggest
  23. that the cosmetics are inheritated.
  24. I'm also adept of minimal css, the less to achieve a goal, the better.
  25. dev testing) I don't know how do you test it while coding and
  26. modifying it. A manual loop browser_reload_run_editor?
  27. dev jslint) I paste it to jslint (https://www.jslint.com/)
  28. and it didn't pass the lint test.
  29. dev data load) How about putting all the Q/R in a dedicated text file
  30. to maintain a single quiz.js and quiz.css and have multiple quizzes
  31. using the same functional code?