HazemSamir/csed-gpa

Save grades locally in the browser

Closed this issue · 1 comments

Save the years array in browser cache/cookies and load it at the beginning whenever the page loads later.

This should save the user the time to enter all his grades from the beginning every time.

Additional notes/features:

  • The saved array may be saved/updated every time a change occurs, the function calculateGPA is called whenever a change occurs.
  • An option maybe added to ask the user if he likes to save his grades or not.
  • A button maybe added to reset grades and the cached array.

I have finished a working implementation for this issue, kindly check my pull request.

Although i didn't implement asking the user for his preference as i wasn't keen on adding unnecessary check boxes when the reset button exists.