-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplay_details.html
45 lines (45 loc) · 1.65 KB
/
display_details.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
45
<!DOCTYPE>
<html lang="en">
<head>
<title>Your Details</title>
</head>
<style>
table{
font-family: sans-serif;
}
body{
background-color: #333;
}
</style>
<body>
<script>
var image=localStorage.getItem('img');
var intern=localStorage.getItem('detailsall');
var user = JSON.parse(localStorage.getItem('det'));
document.write(`
<table border="1" style="border-collapse:collapse;" cellpadding="15px" align="center">
<tr>
<td bgcolor="seablue">Profile : </td>
<td bgcolor="lightgreen"><img src=${image} style="border-radius:5%"; width="20%" height="20%"></td>
</tr>
<tr>
<td bgcolor="lightgreen">Name : </td>
<td bgcolor="seablue">${user.name}</td>
</tr>
<tr>
<td bgcolor="seablue">Age : </td>
<td bgcolor="lightgreen">${user.age}</td>
</tr>
<tr>
<td bgcolor="lightgreen">Address : </td>
<td bgcolor="seablue">${user.address}</td>
</tr>
<tr>
<td bgcolor="seablue">Gender : </td>
<td bgcolor="lightgreen">${user.gender}</td>
</tr>
</table>
`);
</script>
</body>
</html>