Spaces:
Sleeping
Sleeping
Update templates/dashboard.html
Browse files- templates/dashboard.html +1 -10
templates/dashboard.html
CHANGED
|
@@ -111,7 +111,7 @@
|
|
| 111 |
}
|
| 112 |
// If user says "Logout", log out
|
| 113 |
else if (command.includes("logout")) {
|
| 114 |
-
|
| 115 |
}
|
| 116 |
};
|
| 117 |
|
|
@@ -121,15 +121,6 @@
|
|
| 121 |
speak("Sorry, I couldn't understand that. Please try again.");
|
| 122 |
};
|
| 123 |
}
|
| 124 |
-
|
| 125 |
-
// Logout function
|
| 126 |
-
function logout() {
|
| 127 |
-
// Example of clearing session storage or cookies (if applicable)
|
| 128 |
-
// sessionStorage.clear(); // Uncomment if using sessionStorage
|
| 129 |
-
|
| 130 |
-
// Redirect to the landing page (Modify this URL with the correct path)
|
| 131 |
-
window.location.href = "/index.html"; // Modify with actual logout route
|
| 132 |
-
}
|
| 133 |
</script>
|
| 134 |
|
| 135 |
</body>
|
|
|
|
| 111 |
}
|
| 112 |
// If user says "Logout", log out
|
| 113 |
else if (command.includes("logout")) {
|
| 114 |
+
window.location.href = "/login"; // Redirect to login page
|
| 115 |
}
|
| 116 |
};
|
| 117 |
|
|
|
|
| 121 |
speak("Sorry, I couldn't understand that. Please try again.");
|
| 122 |
};
|
| 123 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
</script>
|
| 125 |
|
| 126 |
</body>
|