| 26 | |
| 27 | // Get Arrays from localStorage if available, set default values if not |
| 28 | function getSavedColumns() { |
| 29 | if (localStorage.getItem('backlogItems')) { |
| 30 | backlogListArray = JSON.parse(localStorage.backlogItems); |
| 31 | progressListArray = JSON.parse(localStorage.progressItems); |
| 32 | completeListArray = JSON.parse(localStorage.completeItems); |
| 33 | onHoldListArray = JSON.parse(localStorage.onHoldItems); |
| 34 | } else { |
| 35 | backlogListArray = ['Release the course', 'Sit back and relax']; |
| 36 | progressListArray = ['Work on projects', 'Listen to music']; |
| 37 | completeListArray = ['Being cool', 'Getting stuff done']; |
| 38 | onHoldListArray = ['Being uncool']; |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | // Set localStorage Arrays |
| 43 | function updateSavedColumns() { |