restoring up to date code (yikes)
Commented all functions. Cleaned up code significantly. Refactored totaling, now includes total minutes as well as %. Removed individual button resize handlers, moved code to RangeSelector resize handler (this seems to have fixed the resizing bug. Should also improve performance). Added longpress handler, toggles all on or all off. Added hooks to get lesson duration for calculating minutes. TODO: switch region system from object style storage to string of 0s and 1s
Finished refactoring region storage method (old way still there in comments). Reintroduced submit button to demonstrate region storage. TODO: Maybe add minutes property and associated logic/functions to RangeSelector? Not sure whether to bother with that or not.