I have five pages with different state. The first page contains object with the format
{
"good": {
"good1": "good",
"good2": "good",
"good3": "good"
},
"bad": {
"bad1": "bad",
"bad2": "bad",
"bad3": "bad"
},
"excellent": {
"excellent1": "excellent",
"excellent2": "excellent",
"excellent3": "excellent"
}
}
this object is saved to localstorage. This is my codepen where i have tried to show what i really want.The scenario is , good1 value is going to be looping through 4 pages and next time redirect to first page with the next value(ie good2 ) and the next value also goes through the same 4 pages and so on. What i have to do to solve this problem? if i am doing wrong with the object structure, what should be the good approach?