-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaccountDetails.html
126 lines (108 loc) · 3.47 KB
/
accountDetails.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!DOCTYPE html>
<html lang="en">
<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>Account Dtails</title>
<style>
.accountDtails{
margin: 10rem auto ;
}
#top {
width: 100%;
display: flex;
border-bottom: 1px solid rgba(57, 55, 55, 0.498);
margin: 1rem auto ;
padding-bottom: 3rem ;
justify-content: space-around;
/* box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px, rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px; */
/* background-color: white; */
}
#right {
display: none;
margin-top: 20px;
margin-bottom: 20px;
border: 1px solid;
width: 40%;
height: 60%;
padding: 0px 70px;
/* text-align: center; */
border-radius: .4rem;
}
.edits {
display: flex;
justify-content: space-between;
}
.edits a {
margin-top: 17px;
font-size: large;
text-decoration: none;
color: gray;
}
.edits a:hover {
text-decoration: underline;
color: blue;
}
#password input[type='password'] {
border: none;
}
#password input[type="password"]:focus {
outline: none;
}
</style>
</head>
<body>
<div class="accountDtails">
<div id="top">
<div id="left">
<h2>My Account</h2>
<h3>Pesonal Data</h3>
<span>Your personal data is always kept safe and</span><br>
<span>secure, and never shared with third parties.</span>
</div>
<div id="right">
<div class="edits">
<p id="name">Name </p>
<a href="#">Edit</a>
</div>
<p id="email">mashahnwaj@gmail.com</p>
<div class="edits" id="password">
<p id="pass">Pass: <input type="password" value="343" class="pass"></p>
<a href="#">Edit</a>
</div>
<!-- <div id="edits">
<a href="#">Edit</a>
<a href="#">Edit</a>
</div> -->
</div>
</div>
<div class="bottom">
<div class="favourites">
<h3>Recent Activities</h3>
</div>
</div>
</div>
</body>
</html>
<script>
let loggedCustomer = JSON.parse(localStorage.getItem("loggedCustomer"));
let name = document.getElementById("name");
name.innerText = `Name: ${loggedCustomer.name}`;
let email = document.getElementById("email");
email.innerText = `Email: ${loggedCustomer.email}`;
let pass = document.querySelector(".pass");
pass.value = loggedCustomer.pass;
console.log(pass.value = loggedCustomer.pass);
let clickBtn = document.querySelector("h2");
clickBtn.addEventListener("click", (e) => {
e.preventDefault();
document.querySelector("#right").style.display = "block";
})
</script>
<!-- input[type='password']{
border:none;
}
input[type="password"]:focus{
outline:none;
} -->