This adds a number poll, which is an alternative of the number guess with no correct answer. Since it is only in one project now, I attempted to separate the two instead of reworking the mechanism.
The tests were updated to cover number poll.
The readme was updated to include number poll.
Fixture has been added (single-number-poll).
Note on svgHelpers.js : these are the functions from number guess that create svg results. Since these were used in number poll too, I extracted them into a separate file for clarity.
Number poll have no own style classes, it uses the styles of number guess.
This adds a number poll, which is an alternative of the number guess with no correct answer. Since it is only in one project now, I attempted to separate the two instead of reworking the mechanism.
The tests were updated to cover number poll. The readme was updated to include number poll. Fixture has been added (single-number-poll).
Note on svgHelpers.js : these are the functions from number guess that create svg results. Since these were used in number poll too, I extracted them into a separate file for clarity.
Number poll have no own style classes, it uses the styles of number guess.