-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.html
157 lines (157 loc) · 7.16 KB
/
profile.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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!DOCTYPE html>
<html>
<head>
<title>User Profile</title>
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
<link rel="stylesheet" type="text/css" href="css_dashboard/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css_dashboard/bootstrap-theme.min.css">
<link rel="stylesheet" type="text/css" href="css_dashboard/main.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" />
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/moment-with-locales.js"></script>
</head>
<body>
<nav class="navbar navbar-default visible-xs">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<button type="button" class="navbar-toggle user-info" data-toggle="collapse" data-target="#useInfo">
<span class="glyphicon glyphicon-user" aria-hidden="true"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="useInfo">
<ul class="nav navbar-nav">
<li class="text-center">
<h2 class="text-uppercase">Welcome</h2>
<img src="assets/PR.png" alt="" width="70" height="70" style="border-radius:50px">
<div class="text-uppercase">Pavithra Rajan</div>
</li>
</ul>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li ><a href="profile.html">Profile</a></li>
<li class="active"> <a href="dashboard.html">Expense Overview</a> </li>
<li><a href="addexp.html">Add Expenses</a></li>
</ul>
</div>
</div>
</nav>
<div class="container-fluid">
<div class="row content">
<div class="col-sm-3 col-md-3 col-lg-2 sidenav hidden-xs clearfix" style="min-height: 100vh;" id="nav">
<div data-spy="affix" data-offset-top="0" class="sidenav-container">
<div class="row">
<div class="col-sm-12">
<p></p>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-5">
<img src="assets/PR.png" alt="" width="70" height="70" style="border-radius:50px">
</div>
<div class="col-sm-12 col-md-12 col-lg-7" style="margin-top:20px">
<div class="text-capitalize" style="color: #b5ecec; font-size: 20px; font-weight: bold;">Welcome!</div>
<div class="text" style="color: white; font-size: 15px; ">Pavithra Rajan</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<ul class="nav nav-pills nav-stacked">
<li class="active"><a href="profile.html">Profile</a></li>
<li> <a href="dashboard.html">Expense Overview</a> </li>
<li><a href="addexp.html">Add Expenses</a></li>
</ul>
</div>
</div>
</div>
<br>
</div>
<br>
<div class="col-sm-9 col-md-9 col-lg-10" id="contemt-main">
<div class="row">
<div class="col-sm-10" id="profile" style="display: flex; flex-direction: row;">
<h1>Profile</h1>
</div>
<div class="col-sm-2">
<button> Logout </button>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<hr>
</div>
</div>
<div class="row" >
<div class="col-sm-12" >
<div class="well">
<div class="wrapper" style="display: flex; justify-content: center;">
<form role="form">
<div class="form-group">
<div class="input-group" id="profileEdits">
<img src="assets/PR.png" alt="" width="70" height="70" style="border-radius:50px; display: block; margin:0 auto;">
<p></p>
<label>Name</label>
<input type="text" class="form-control editField" value="Pavithra Rajan" readonly>
<br>
<p></p>
<label>Email ID</label>
<input type="text" class="form-control editField" value="[email protected]" readonly>
<br>
<p></p>
<label>Password</label>
<div style="display: flex; flex-direction: row;">
<input type="password" class="form-control editField" value="Tester" id="password" readonly>
<i class="bi bi-eye-slash" id="passwordShow" style="margin-left: -25px; margin-top: 5px; cursor: pointer; z-index: 3" hidden></i>
</div>
<p></p>
<br>
<button id="editBtn" type="button" style="display: block; margin:0 auto;">Edit Details</button>
</div>
</div>
</form>
</div>
</div>
<button id="delet" style="display: block; margin:0 auto; background-color: #DC3545; border: 1px solid #DC3545;"> Delete Account </button>
</div>
</div>
</div>
</div>
</div>
</body>
<script>
document.getElementById("editBtn").addEventListener("click", function ()
{
var x = document.getElementById("profileEdits").getElementsByClassName("editField");
for(i = 0; i < x.length; i+=2)
{
x.item(i).readOnly = !x.item(i).readOnly;
}
var y = document.getElementById("passwordShow");
y.hidden = !y.hidden;
if(!y.hidden)
this.textContent = "Save Details";
else
this.textContent = "Edit Details";
}.bind(document.getElementById("editBtn")));
document.getElementById("passwordShow").addEventListener("click", function()
{
var x = document.getElementById("password");
if(x.getAttribute("type") == "password")
x.setAttribute("type", "text");
else
x.setAttribute("type", "password");
this.classList.toggle("bi-eye");
}.bind(document.getElementById("passwordShow")));
document.getElementById("delet").addEventListener("click", function()
{
confirm("Are you sure?");
});
</script>
<script type="text/javascript" src="js/profile.js"></script>
</html>