Closed
Description
Assume the user is on Chapter 2 - Lesson 2, now the user closes the tour, opens it again by visiting https://tour.json-schema.org. but the problem is when They click on Start the tour button, it starts from all over again. and the code they wrote in the any of the previous sessions is lost.
We need to save the following informations:
- The chapter and lesson on which the user was last time, (when they start the tour again, it should start from that checkpoint)
- Actively save the code they are writing in the code editor (for each lesson), so even when they refresh or go to any previous lessons the code they wrote stays there.
We can use browser's local storage to store the progress so that it stays on the user's machine as long as they don't clear the cache.
Additional Task: When the user resets their progress (through settings), the saved code should also be cleared.