-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseccion3.html
122 lines (104 loc) · 3.42 KB
/
seccion3.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
<!DOCTYPE html>
<html lang="es">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-F7W2KH58BW"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-F7W2KH58BW');
</script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-5VXDLSDC');</script>
<!-- End Google Tag Manager -->
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
padding: 0;
background-color: #f8f8f8;
color: #333;
}
header {
background-color: #2c3e50;
color: #ecf0f1;
padding: 20px;
text-align: center;
}
nav {
background-color: #34495e;
padding: 10px;
text-align: center;
}
nav a {
color: #ecf0f1;
text-decoration: none;
padding: 10px;
margin: 0 15px;
transition: color 0.3s;
}
nav a:hover {
color: #3498db;
}
section {
padding: 30px;
}
footer {
background-color: #2c3e50;
color: #ecf0f1;
padding: 15px;
text-align: center;
position: absolute;
bottom: 0;
width: 100%;
}
</style>
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5VXDLSDC"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<header>
<h1>Sitio de Pruebas</h1>
<p>Un sitio web para tus pruebas</p>
</header>
<nav>
<a href="seccion1.html">Sección 1</a>
<a href="seccion2.html">Sección 2</a>
<a href="seccion3.html">Sección 3</a>
<a href="contacto.html">Contacto</a>
</nav>
<section id="seccion1">
<h2>Sección 1</h2>
<p>¡Bienvenido a la sección 1! Aquí puedes agregar contenido interesante.</p>
</section>
<section id="seccion2">
<h2>Sección 2</h2>
<p>En la sección 2, puedes explorar temas fascinantes.</p>
</section>
<section id="seccion3">
<h2>Sección 3</h2>
<p>La sección 3 te ofrece información valiosa.</p>
</section>
<footer>
<p>© 2024 Sitio de Pruebas. Todos los derechos reservados.</p>
</footer>
<script>
// Ejemplo de JavaScript: Cambiar el color de fondo al hacer clic en el encabezado
const header = document.querySelector('header');
header.addEventListener('click', function () {
const randomColor = getRandomColor();
header.style.backgroundColor = randomColor;
});
function getRandomColor() {
const letters = '0123456789ABCDEF';
let color = '#';
for (let i = 0; i < 6; i++) {
color += letters[Math.floor(Math.random() * 16)];
}