-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy-profile.html
195 lines (185 loc) · 7.91 KB
/
my-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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!DOCTYPE html>
<!-- saved from url=(0049)https://getbootstrap.com/docs/4.3/examples/album/ -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<title>eMercado - Todo lo que busques está aquí</title>
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="canonical" href="https://getbootstrap.com/docs/4.3/examples/album/">
<link rel="stylesheet" href="css/usermenu.css">
<link href="https://fonts.googleapis.com/css?family=Raleway:300,300i,400,400i,700,700i,900,900i" rel="stylesheet">
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
#userops {
color: white
}
#userops:hover {
color: black;
}
#fotoperfil{
width: 150px;
height: 150px;
border: 1px solid rgb(175, 175, 175);
overflow: hidden;
display: flex;
justify-content: center;
}
#fotoperfil img{
height: 150px;
}
</style>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">
<link href="css/dropzone.css" rel="stylesheet">
<meta name="google-signin-client_id"
content="96471566518-8qvr9dt10sj7prbsk48k4tpbrc1k9ut5.apps.googleusercontent.com">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<button class="navbar-toggler" style="margin-right: 50%;" type="button" data-toggle="collapse"
data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul
class="navbar-nav me-auto my-2 my-lg-0 navbar-nav-scroll navbar-nav container justify-content-around text-center"
style="--bs-scroll-height: 100px;">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="inicio.html">Inicio</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="categories.html">Categorías</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="products.html">Productos</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="sell.html">Vender</a>
</li>
</ul>
</div>
<div class="btn-group" style="border-radius: 5px;position: absolute;top: 8px; right: 10px;">
<button type="button" id="userops" style="display: flex;align-items: center;background-color: grey"
class="btn btn-default dropdown-toggle centerIcon" data-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">
<div id="username"></div>
</button>
<!-- MENU DESPLEGABLE DE BOOSTRAP PARA EL USER -->
<ul class="dropdown-menu dropdown-menu-right">
<li><a href="my-profile.html" style="color: indigo;"><i class="fas fa-user-alt" style="color: grey;"></i>
Perfil</a></li>
<li>
</li>
<li class="nav-item">
<a class="nav-link active" href="cart.html"><i class="fas fa-shopping-cart mr-1"
style="font-size: 15px;color: grey;"></i>Mi carrito</a>
</li>
<hr>
<li><a href="#" onclick="signOut()" style="cursor: pointer;"><i class="fas mr-1 fa-sign-out-alt"
style="color: grey;"></i>Salir</a></li>
</ul>
</div>
<script>
function signOut() {
var auth2 = gapi.auth2.getAuthInstance();
window.localStorage.setItem("username", "");
auth2.signOut().then(function () {
window.location.href = "index.html";
});
}
function onLoad() {
gapi.load('auth2', function () {
gapi.auth2.init();
});
}
</script>
</nav>
<main>
<div class="container pt-3">
<div class="row">
<div class="col-12 col-md-4">
<div class="card">
<div class="card-body mx-auto" >
<div id="fotoperfil" class="mx-auto">
<img src="https://i.ibb.co/yFgtKJw/499-4992374-sin-imagen-de-perfil-hd-png-download.png" alt="avatar" id="profilepic">
</div>
<button class="btn btn-success position-absolute" id="btneditphoto" onclick="editPhoto()" style="display: none;transform: translate(140px, -20px);"><i class="fas fa-pen"></i></button>
<input type="file" name="photoedit" accept="image/png,image/jpeg" onchange="chargePhoto(this)" id="photoedit" style="display: none;">
<h2 class="mt-3" id="usernickname"></h2>
</div>
</div>
</div>
<div class="col-12 col-md-8 mt-3 mt-md-0 mb-3">
<div class="card">
<div class="card-head justify-content-around text-center">
<h1 class="text-center mt-3 d-inline-block">Mi Perfil</h1>
</div>
<div class="card-body pt-4 ">
<!-- NOMBRE COMPLETO -->
<h5 class="d-inline-block mr-3 font-weight-bold">Nombre Completo</h5><h5 class="d-inline-block" id="usernamelbl">---</h5>
<input type="hidden" name="username" id="usernameinfo" value="---">
<!-- EDAD -->
<hr><h5 class="d-inline-block mr-3 font-weight-bold">Edad</h5><h5 class="d-inline-block" id="agelbl">0 años</h5>
<input type="hidden" name="username" id="age" value="---">
<!-- E-MAIL -->
<hr><h5 class="d-inline-block mr-3 mt-3 font-weight-bold">E-mail</h5><h5 class="d-inline-block" id="emaillbl">---</h5>
<input type="hidden" name="username" id="email" value="---">
<!-- TELEFONO -->
<hr><h5 class="d-inline-block mr-3 mt-3 font-weight-bold">Teléfono</h5><h5 class="d-inline-block" id="phonelbl">---</h5>
<input type="hidden" name="username" id="phone" value="---">
<!-- DIRECCION -->
<hr><h5 class="d-inline-block mr-3 mt-3 font-weight-bold">Dirección</h5><h5 class="d-inline-block" id="direclbl">---</h5>
<input type="hidden" name="username" id="direc" value="---">
</div>
<div class="card-footer justify-content-around text-right" id="cardfooter1">
<button class="btn btn-info" onclick="activeEditInfo()"><i class="fas fa-pen mr-2"></i>Activar Edición</button>
</div>
<div class="card-footer justify-content-around text-right" style="display: none;" id="cardfooter2">
<button class="btn btn-danger" onclick="cancelEditInfo()">Cancelar</button>
<button class="btn btn-success" onclick="confirmEditInfo()"><i class="fas fa-save mr-2"></i>Guardar Cambios</button>
</div>
</div>
</div>
</div>
</div>
</main>
<div class="alert fade alert-success" role="alert" id="alertResult">
<span id="resultSpan"></span>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div id="spinner-wrapper">
<div class="lds-ring">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<div id="alertcontainer" class="position-fixed bottom-3"></div>
<script src="js/jquery-3.4.1.min.js"></script>
<script src="js/bootstrap.bundle.min.js"></script>
<script src="js/dropzone.js"></script>
<script src="js/init.js"></script>
<script src="js/my-profile.js"></script>
<script src="js/userconfirm.js"></script>
<script src="https://apis.google.com/js/platform.js?onload=onLoad" async defer></script>
</body>
</html>