Decision maker Online version
Because I often find decisions hard, I made this to scratch my own indecisive itch.
- pre-calculate
getEl("decision")overall message to simplifyelse if - add a "delete all" option (
choices.forEach?) - update Open Graph Protocol image
- use another method instead of innerHTML for calculations
- limit for/against reasons to 7 to prevent overthinking
- use
template/slotfor list items - name and store previous choices to load again
- 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.