-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstudentdashboard.html
44 lines (34 loc) · 1.35 KB
/
studentdashboard.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="css/afterlogin.css">
<title>User Dashboard</title>
</head>
<body>
<header>
<h1>Welcome, <span id="userName"></span>!</h1>
</header>
<nav>
<a href="selectcourse.html" onclick="selectCourse()">Select Course</a>
<a href="viewcourses.html" onclick="viewScorecard()">View Scorecard</a>
<a href="viewprogress.html" onclick="viewProgress()">View Progress</a>
<a href="settings.html" onclick="settings()">Settings</a>
</nav>
<section id="content">
<!-- Content will be dynamically loaded here -->
</section>
<script src="script.js"></script>
<script>
// Retrieve user information from the URL parameters
const urlParams = new URLSearchParams(window.location.search);
const firstName = urlParams.get('fname');
const lastName = urlParams.get('lname');
// Display the user's first and last name
document.getElementById('userName').innerText = `${firstName} ${lastName}`;
</script>
</body>
</html>