-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProfile.html
More file actions
43 lines (42 loc) · 1.47 KB
/
Copy pathProfile.html
File metadata and controls
43 lines (42 loc) · 1.47 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE =edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Profile</title>
<link rel="stylesheet" href="registration.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<div class="card">
<h2>Profile Page</h2>
<button onclick="logOut()" style="float: right; color: white;" >Logout</button>
<button class=""><a href="resume-cv.html">HOME</button>
<hr>
<h3>Welcome</h3>
<!---------------Retriving the current session "name" from local storage--------------------------->
<h4>Name:
<script>
document.write(localStorage.getItem("fname"));
</script>
</h4>
<h5>Your Email is:
<script>
document.write(localStorage.getItem("email"));
</script>
</h5>
</div>
</div>
</body>
<script>
function logOut(){
localStorage.removeItem("fname");
localStorage.removeItem("email");
window.location.href="fdt-login.html"
}
</script>
</html>