-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
205 lines (205 loc) · 9.13 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
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
196
197
198
199
200
201
202
203
204
205
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/hamburgers/1.2.1/hamburgers.min.css"
integrity="sha512-+mlclc5Q/eHs49oIOCxnnENudJWuNqX5AogCiqRBgKnpoplPzETg2fkgBFVC6WYUVxYYljuxPNG8RE7yBy1K+g=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="shortcut icon" href="assets/favicon.png" type="image/x-icon">
<link rel="stylesheet" href="CSS/domEx.css">
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"
/>
<title>DOMExercices</title>
</head>
<body class="body">
<button class="theme-Btn" data-dark><img src="assets/ThemeIcon.png" alt=""></button>
<header class="header">
<h1>Ejercicios del DOM</h1>
</header>
<button class="panel-btn hamburger hamburger--spin" type="button">
<span class="hamburger-box">
<span class="hamburger-inner"></span>
</span>
</button>
<div class="panel">
<nav class="menu">
<a href="#section1" data-scroll-spy>Reloj Digital y Alarma Sonora</a>
<a href="#section2" data-scroll-spy>Eventos de Teclado</a>
<a href="#section3" data-scroll-spy>Cuenta Regresiva</a>
<a href="#section4" data-scroll-spy>Responsive con JavaScript</a>
<a href="#section5" data-scroll-spy>Responsive Tester</a>
<a href="#section6" data-scroll-spy>Detección de Dispositivos (User Agent)</a>
<a href="#section7" data-scroll-spy>Network Status</a>
<a href="#section8" data-scroll-spy>Detección Webcam</a>
<a href="#section9" data-scroll-spy>Detección de la Geolocalización</a>
<a href="#section10" data-scroll-spy>Filtro de Búsqueda</a>
<a href="#section11" data-scroll-spy>Encuentra al culpable</a>
<a href="#section12" data-scroll-spy>Responsive Slider</a>
<a href="#section13" data-scroll-spy>Smart Video</a>
<a href="#section14" data-scroll-spy>Validaciones de Formulario</a>
<a href="#section15" data-scroll-spy>Narrator</a>
</nav>
</div>
<main>
<section id="section1" class="section" data-scroll-spy>
<h2>Reloj Digital y Alarma Sonora</h2>
<div id="reloj"></div>
<div class="containerBtns frame">
<button class="clockButtons btn-7" id="activar-reloj">Iniciar Reloj</button>
<button class="clockButtons btn-7" id="desactivar-reloj">Detener Reloj</button>
<button class="clockButtons btn-7" id="activar-alarma">Iniciar Alarma</button>
<button class="clockButtons btn-7" id="desactivar-alarma">Detener Alarma</button>
</div>
</section>
<section id="section2" class="section" data-scroll-spy>
<h2>Eventos de Teclado</h2>
<article class="stage">
<div class="ball"></div>
</article>
</section>
<section id="section3" class="section" data-scroll-spy>
<h2>🎆 Cuenta Regresiva para el Año Nuevo 🎆</h2>
<div id="countdown"></div>
</section>
<section id="section4" class="section" data-scroll-spy>
<h2>Responsive con JavaScript</h2>
<div id="youtube"></div>
<div id="gmaps"></div>
</section>
<section id="section5" class="section" data-scroll-spy>
<h2>Responsive Tester</h2>
<form id="responsive-tester">
<input class="textBlock" type="url" placeholder="URL" name="direction" required>
<br>
<input class="textBlock" type="text" placeholder="Ancho" name="width" required>
<br>
<input class="textBlock" type="text" placeholder="Alto" name="height" required>
<br>
<input class="testerButtons" type="submit" value="Test" name="test">
<input class="testerButtons" type="button" value="Cerrar" name="close">
</form>
</section>
<section id="section6" class="section" data-scroll-spy>
<h2>Detección de Dispositivos<br>(User Agent)</h2>
<div id="user-device"></div>
</section>
<section id="section7" class="section" data-scroll-spy>
<h2>Detección de la conexión</h2>
<p class="paraSection7">
Este apartado es unicamente para validacion de conexión, no se verá nada <br>
a menos de que te desconectes de internet o reestablescas conexión a internet 👀;
</p>
</section>
<section id="section8" class="section" data-scroll-spy>
<h2>Detección Webcam</h2>
<button class="btn-7_responsiveJS" id="activateWebCam">Activa tu Webcam</button>
<div id="webcamContainer"></div>
<!-- <video src="" id="webcam"></video> -->
</section>
<section id="section9" class="section" data-scroll-spy>
<h2>Detección de la Geolocalización</h2>
<button class="btn-7_responsiveJS" id="getPosButton">Muestra tu Ubicación</button>
<div id="gl_position"></div>
</section>
<section id="section10" class="section" data-scroll-spy>
<h2>Filtro de Búsqueda</h2>
<input type="search" placeholder="Buscar..." class="cardFilter textBlock">
<div class="roboContainer"></div>
</section>
<section id="section11" class="section" data-scroll-spy>
<h2>Encuentra al culpable</h2>
<input class="textBlock participantsInput" type="text" placeholder="Ingresa Participante">
<div>
<button class="inputButton btn-7_responsiveJS addUser">Agrega participantes</button>
<button class="inputButton btn-7_responsiveJS guiltyUser">Muestra al culpable</button>
</div>
<ul class="participantList"></ul>
</section>
<section id="section12" class="section" data-scroll-spy>
<h2>Responsive Slider</h2>
<div class="slider">
<div class="slider-slides">
<div class="slider-slide active">
<img src="assets/slider_images/pexels-pixabay-355904.jpg" alt="tech">
</div>
<div class="slider-slide">
<img src="assets/slider_images/pexels-maurício-mascaro-712786.jpg" alt="tech">
</div>
<div class="slider-slide">
<img src="assets/slider_images/pexels-fauxels-3184454.jpg" alt="tech">
</div>
<div class="slider-slide">
<img src="assets/slider_images/pexels-scott-webb-430208.jpg" alt="tech">
</div>
<div class="slider-slide">
<img src="assets/slider_images/pexels-thisisengineering-3862132.jpg" alt="tech">
</div>
<div class="slider-slide">
<img src="assets/slider_images/pexels-thisisengineering-3862632.jpg" alt="tech">
</div>
</div>
<div class="slider-btns">
<a class="prev" href="#">«</a>
<a class="next" href="#">»</a>
</div>
</div>
</section>
<section id="section13" class="section" data-scroll-spy>
<h2>Smart Video</h2>
<h3>Preso de la Soledad [Porta]</h3>
<video src="assets/Preso De La Soleda[1].mp4" class="animate__animated" loop muted style="width: 100%; max-width: 400px; height: auto;" controls data-smart-video></video>
</section>
<section id="section14" class="section" data-scroll-spy>
<h2>Validaciones de Formulario</h2>
<!-- <h3>Envíanos tus comentarios</h3> -->
<form class="contact-form" action="https://formsubmit.co/asca123321@gmail.com" method="POST" target="_blank">
<legend>Envíanos tus comentarios</legend>
<br>
<input
class="textBlock" type="text" name="name" placeholder="Escribe tu nombre"
title="Por favor utiliza solo letras y espacios" pattern="^[A-Za-zÑñÁáÉéÍíÓóÚúÜü\s]+$" required>
<br>
<input
class="textBlock" type="email" name="email" placeholder="Ingresa tu email"
title="example@mail.com" pattern="[a-z0-9_]+(\.[_a-z0-9]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,15})$"
required>
<br>
<input
class="textBlock" type="text" name="subject"
placeholder="Asunto" title="Campo requerido" required>
<br>
<textarea name="comments" cols="50" rows="5" placeholder="Escribe tus comentarios"
title="Tu comentario no debe exceder los 255 caracteres" data-pattern="^.{1,255}$" required></textarea>
<input class="btn-7_responsiveJS" type="submit" value="Send" id="submit">
<div class="contact-form-loader none">
<img src="assets/three-dots.svg" alt="Cargando">
</div>
<div class="contact-form-response none">
<p>Los datos han sido enviados</p>
</div>
</form>
</section>
<section id="section15" class="section" data-scroll-spy>
<h2>Narrador</h2>
<div class="narrator-container">
<select id="speech-select">
<option value="">--- Select Voice</option>
<br><br>
<textarea id="speech-text" cols="50" rows="5" placeholder="Ingresa el texto a leer..."></textarea>
<button class="btn-7_responsiveJS" id="speech-button">Leer Texto</button>
</div>
</select>
</section>
</main>
<button class="btnTop" id="btnScroll"><a href="#section1 "><img src="assets/angle-up.svg" alt=""></a></button>
<script src="JS/indexExercices.js" type="module"></script>
</body>
</html>