Decision maker Online version
Because I often find decisions hard, I made this to scratch my own indecisive itch.
- limit for/against reasons to 7 to prevent overthinking
- name and store previous choices to load again
- add a field to enter the text of the question
- add a "delete all" option (
choices.forEach?)
- test Open Graph Protocol image for social media
- pre-calculate
getEl("decision")overall message to simplifyelse if - use another method instead of innerHTML for calculations
- try
template/slotfor list items
- enable deletion of choices (
element.remove()) - trap for NaN when only one slider
- use Y N sliders instead of total sliders (line ~46)
- CSS: use classlist.add instead of
style.color - fix long decimals in % with .toFixed(2)
- restrict length of reasons to a reasonable length (110 chars)
- make favicon at realfavicongenerator.net
Originally ported to Meteor from a pure Javascript prototype, then reverted back to JavaScript because… frameworks.