Did some work
+- reset does not remove values of bonus inputs -/
+
+- id bonus select is yes but no bonus added than throw an error, instead
+ of letting user submit and believe he has entered a bonus -/
+
+- fixed salary hint button is not connected to the select -/
+
+- reset btn did not reset paytype select -/
+
+- regular pay for salary should be salary for a weekly period -/
+
+- set all static text in html into js -/
+
+- change regular salary from weekly to any period -/
Truncated the HTML
- Moved static text from labels and selects to Js
- selects are all loaded w/ options via viewer class
- hints and modals are created through js
A few editions for look
- label class to move the labels closer to the inputs
- some classes to align a dynamically created elements
- other stuff for text colors
Reworked overtime calculations
- changed role of calculateOvertime(), calculates
regular, overtime and total pay
- changed role of the do---() functions, calculates avg_wage only
- removed some redudancies( although more culling needs to be done )
- added new way of calculating effective bonus
- added a few extra checks to to checkData to deal with some errors caused by the bonus section
What didn't I do here...
- added static files
- added a few functions to dynamically create and add html elements
- finally organized Div, Input and Output, element selectors, into sections
- renamed a few variables in Input
- removed some but not all dead code
- implemented init() function for Viewer class to create and add html to index.html
- changed get value to return string value of selects
- changed resetData and resetView to work better together and separately
- made some changes to init() function and the event handlers within it