-
Notifications
You must be signed in to change notification settings - Fork 1
Onboarding
File: Meesterproef-SNSimulation/js/Onboarding.js
The Onboarding class handles the onboarding process for new users. It displays a series of dialogs to guide users through the application and saves the completion status in local storage to ensure the onboarding process is not repeated for returning users.
-
Constructor: Initializes the onboarding process, sets up event listeners for onboarding steps, and handles local storage to track completion status.
- Parameters: None
- View Code
-
DOMContentLoaded: Checks if the onboarding process is complete. If not, displays the first onboarding dialog.
-
next1 click: Closes the first onboarding dialog and shows the second dialog.
-
skipOnboarding click: Closes the first onboarding dialog, sets the onboarding completion flag in local storage, and skips the onboarding process.
-
next2 click: Closes the second onboarding dialog, hides it, and shows the third dialog.
-
skipOnboarding2 click: Closes the second onboarding dialog, sets the onboarding completion flag in local storage, hides it, and skips the onboarding process.
-
next3 click: Closes the third onboarding dialog and sets the onboarding completion flag in local storage.
-
next3Button click: Closes the third onboarding dialog when the next3 button is clicked.
- onboardingComplete: A flag stored in local storage to indicate whether the onboarding process has been completed. If this flag is not set or is false, the onboarding process will be shown to the user.
-
📄 Debrief
-
🧑🎨 Design
-
🧑💻 Solution & Code
- 🎛️ App (main file)
- 🤖 Simulation
- 🔵 Node
- 🙋 Person
- 📰 Post
- 〰️ Edge
↖️ Cursor- 💽 userData
- 📊 WebData
- 📂 Import & Export (FileHandler)
- Onboarding