forked from AranchaFdz/dom-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
36 lines (36 loc) · 1.11 KB
/
index.html
File metadata and controls
36 lines (36 loc) · 1.11 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Manipulando el DOM en Javascript</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1 id="title">ManipulanDOM</h1>
<div class="main-div">
Imagen de ejemplo: <br>
<img src="javascript.svg" alt="Imagen original">
</div>
<div class="old-div">
Este div será eliminado en el demo.
</div>
<button>Presiona aquí</button>
<div>
<input type="text" id="itemInput" placeholder="Añade un ítem a la lista">
<button id="addButton">Añadir</button>
<ul id="dynamicList"></ul>
</div>
<input type="text" id="filterInput" placeholder="Filtrar ítems...">
<ul id="itemsList">
<li>JavaScript</li>
<li>Python</li>
<li>Ruby</li>
<li>Java</li>
<li>PHP</li>
</ul>
<div id="draggable" draggable="true">Arrástrame</div>
<div id="dropzone">Zona para soltar</div>
<script type="module" src="/main.js"></script>
</body>
</html>