MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / getSavedColumns

Function getSavedColumns

assets/js/DragToDo.js:28–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27// Get Arrays from localStorage if available, set default values if not
28function 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
43function updateSavedColumns() {

Callers 1

updateDOMFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected