GithubHelp home page GithubHelp logo

Comments (4)

sambwest avatar sambwest commented on August 13, 2024 1

I find the colouring confusing, I would expect the colouring to be as follows:

  1. Correct answer(s) highlighted in green.
  2. If the user's answer is incorrect, highlight their incorrect answer in red.
  3. Otherwise no colour

from zce.

muppsy007 avatar muppsy007 commented on August 13, 2024 1

Hi @alceanicu. First thanks for the excellent work with this. It's fantastic.

Just adding to this as I have noticed the same with marking the correct answers if you get a question incorrect. It always seems to mark two questions green on single choice questions. So it's hard to tell what the correct answer is (unless one of them is obviously not it). Seems to be the same behaviour on both the github preview and chrome extension.

Otherwise, love this educational tool! Awesome contribution to the PHP community.

from zce.

alceanicu avatar alceanicu commented on August 13, 2024

Hi,

First of all thank you for the feedback.

the correct answer to the question is indeed 14342 (variant B)

the logic behinde the color display is:

(isQuestionVariantCorrect === IsCheckedByUser ) ? GREEN : RED;

VAR isQuestionVariantCorrect IsCheckedByUser isQuestionVariantCorrect === IsCheckedByUser COLOR DISPLAYED COLOR EXPECTED
A false true false RED RED
B true false false RED RED
C false false true GREEN GREEN
D false false true GREEN GREEN

from zce.

alceanicu avatar alceanicu commented on August 13, 2024

will be fixit in v4.0.0

from zce.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.