Andrew12121212 commited on
Commit
4d574e2
verified
1 Parent(s): 67b7d51

Update static/script.js

Browse files
Files changed (1) hide show
  1. 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
  });