Skip to content
This repository was archived by the owner on Nov 6, 2021. It is now read-only.

Commit 9884490

Browse files
committed
menu integrado en home
1 parent f343b34 commit 9884490

File tree

4 files changed

+28
-15
lines changed

4 files changed

+28
-15
lines changed

www/pages/home/home.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,15 @@
4040
</script>
4141
<iframe style="display: none; position: absolute; z-index: 2;" id="frame-preload" src="../preload/preload.html"
4242
frameborder="0" width="100%" height="100%"></iframe>
43-
43+
4444
<div style="z-index: 1; display: none; background-color: #69696970;" id="container-frame-cambio-password"
4545
class="col s12 frames">
4646
<iframe rel="preload" id="frame-password" src="../cambioPassword/cambioPassword.html" frameborder="0"
4747
width="90%" height="60%"></iframe>
4848
</div>
4949

50+
<iframe style="position: absolute; z-index: 2;" frameborder="0" id="frameHome" width="100%" height="100%" src="../menu/menu.html">
51+
</iframe>
5052
<!--IFrame de Noticias o Home-->
5153
<div id="container-frame-home" class="col s12 frames">
5254
<iframe frameborder="0" id="frameHome" width="100%" height="87%" src="./noticias/noticias.html">

www/pages/home/home.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
function primerInicioSesion(user) {
22
$.ajax({
3-
type: "GET",
4-
url: `https://api-ico.herokuapp.com/api/${user}/primer-inicio-sesion`,
5-
crossDomain: true,
6-
dataType: "json"
7-
})
8-
.done(function(res) {
3+
type: "GET",
4+
url: `https://api-ico.herokuapp.com/api/${user}/primer-inicio-sesion`,
5+
crossDomain: true,
6+
dataType: "json"
7+
})
8+
.done(function (res) {
99
if (res) {
1010
delayPopUp()
1111
}
1212
})
13-
.fail(function() {
14-
alert("No se pudo establecer conexión con el servidor")
13+
.fail(function () {
14+
activateToast("No se pudo establecer conexión con el servidor")
1515
})
1616
}
1717

1818
function delayPopUp() {
1919
// Comprobar si es el primer inicio sesion
20-
window.onload = function() {
20+
window.onload = function () {
2121
setTimeout(loadPopUp, 3000) // Esperar 3 segundos
2222
}
2323
}
@@ -33,9 +33,9 @@ function getParameterByName(name) {
3333
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]")
3434
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
3535
results = regex.exec(location.search)
36-
return results === null
37-
? ""
38-
: decodeURIComponent(results[1].replace(/\+/g, " "))
36+
return results === null ?
37+
"" :
38+
decodeURIComponent(results[1].replace(/\+/g, " "))
3939
}
4040

4141
function activateToast(mensaje) {

www/pages/menu/menu.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,14 @@
4545
z-index: 2000;
4646
}
4747

48+
#titulo {
49+
color: white;
50+
font-weight: bold;
51+
margin-top: 25%;
52+
text-shadow: 0 0 3px black;
53+
}
54+
4855
.navbar-page ul {
49-
margin-top: 40%;
5056
text-align: center;
5157
display: flex;
5258
flex-direction: column;
@@ -76,6 +82,7 @@ p {
7682
font-size: 20px;
7783
text-decoration: none;
7884
text-transform: none;
85+
text-shadow: 0 0 2px black;
7986
}
8087

8188
.navbar-page ul li .social-media-list li {

www/pages/menu/menu.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
</script>
4343
</head>
4444

45-
<body>
45+
<body style="background-color: unset;">
4646
<div class="principal-header">
4747
<div class="container"><svg onclick="mostrarMenu()" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 386 386"
4848
id="hamburger" data-asu="0">
@@ -57,7 +57,11 @@
5757
</svg>
5858
</div>
5959
<div id="menu" class="navbar-page open-page-navbar">
60+
<h1 id="titulo">ICO</h1>
6061
<ul>
62+
<li>
63+
<div class="linea-divisoria"></div>
64+
</li>
6165
<li><a href="/">Home</a></li>
6266
<li><a href="/ong">Guía</a></li>
6367
<li><a href="/about">Perfil</a></li>

0 commit comments

Comments
 (0)