Spaces:
Sleeping
Sleeping
Update static/script.js
Browse files- static/script.js +13 -0
static/script.js
CHANGED
|
@@ -9,4 +9,17 @@ document.addEventListener("DOMContentLoaded", function() {
|
|
| 9 |
resumenDiv.innerHTML = "<b>Resumen:</b> " + resumen;
|
| 10 |
});
|
| 11 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
});
|
|
|
|
| 9 |
resumenDiv.innerHTML = "<b>Resumen:</b> " + resumen;
|
| 10 |
});
|
| 11 |
});
|
| 12 |
+
|
| 13 |
+
// Mostrar m谩s filas al hacer clic en el bot贸n
|
| 14 |
+
const verMasBtn = document.getElementById("ver-mas");
|
| 15 |
+
if (verMasBtn) {
|
| 16 |
+
verMasBtn.addEventListener("click", function() {
|
| 17 |
+
tabla.querySelectorAll("tbody tr").forEach(function(row, idx) {
|
| 18 |
+
if (idx >= 12) {
|
| 19 |
+
row.style.display = "";
|
| 20 |
+
}
|
| 21 |
+
});
|
| 22 |
+
verMasBtn.style.display = "none"; // Oculta el bot贸n despu茅s de mostrar todo
|
| 23 |
+
});
|
| 24 |
+
}
|
| 25 |
});
|