Because decisions are hard, I made this.
- fix label and input ID clash in PROS fieldset
- replace
.choices fieldset h2
with legend and style - only show decimal points (as in live version) if not zero (see DONE)
- pre-calculate
getEl("decision")
overall message to simplifyelse if
- enable deletion of choices
- add a "delete all" option (
choices.forEach
?) - update Open Graph Protocol image
- use
template
/slot
for list items
- 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) if choice(Y|N) contain "." as char 2
- restrict length of reasons to a reasonable length (110 chars)
- limit reasons to 7 decisions for/against to manage cognitive load/indecision
- name and store previous choices to load again
- hint to change default by highlighting (glow?) slider button
Originally ported to Meteor from a pure Javascript prototype, now reverted to the latter because… frameworks.