-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
98 lines (71 loc) · 2.1 KB
/
index.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="estilo.css">
<html lang="es">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>PATRI NIETO</title>
<style media="screen">
</style>
</head>
<body>
<!-- MENU -->
<!-- The Menu overlay -->
<div id="myNav" class="overlay">
<!-- Button to close the overlay navigation -->
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<!-- Overlay content -->
<div class="overlay-content">
<!-- Div para el primer enlace -->
<div class="menu-item">
<a href="#">PERSONAL</a>
</div>
<!-- Div para el segundo enlace -->
<div class="menu-item">
<a href="#">PROFESIONAL</a>
</div>
</div>
</div>
<!-- Use any element to open/show the overlay navigation menu -->
<div class="containerNav" onclick="openNav()" id="myNav">
<div class="topNav" >
<p>PATRI NIETO</p>
</div>
</div>
<div class="img">
<img src="myPl_291.jpg" alt="primer plano de persona a contraluz y una luz muy difusa como si estuviera bañado por una luz celestial">
</div>
<div class="info" id="info">
<div class="mail">
<a href="mailto:[email protected]?subject=feedback">[email protected]</a>
<br>
<br>
<a href="tel">625 093 694</a>
<br>
<br>
<a href="tel">@1068363_2</a> </div>
</div>
<script type="text/javascript">
/* ---- MENU ------- */
/* Open */
function openNav() {
document.getElementById("myNav").style.display = "block";
}
/* Close */
function closeNav() {
document.getElementById("myNav").style.display = "none";
}
/* -- efecto Scroll -- */
// Agregar evento de desplazamiento (scroll)
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 80 || document.documentElement.scrollTop > 80) {
document.getElementById("containerNav").style.padding = "30px 10px";
} else {
document.getElementById("containerNav").style.padding = "80px 10px";
}
}
</script>
</body>
</html>