Commit 6c8b0597 by Georgina Mondino

Habilitar tab is Cancelled

1 parent dabe4e3e
......@@ -14,7 +14,7 @@ function ArmarForm() {
boton.setAttribute("id", "Boton" + n);
boton.setAttribute("value", n);
boton.setAttribute("class", "Botones");
boton.setAttribute("onclick", HabilitarTab(this));
//boton.setAttribute("onclick", HabilitarTab(this) );
let ancho = ((100 - (0.2 * m)) / m) + "%";
boton.style.width = ancho;
let tab = document.createElement("div");
......@@ -27,21 +27,6 @@ function ArmarForm() {
document.getElementById("Tab0").style.display="block";
}
function HabilitarTab(elemento) {
let IDBoton= elemento.id;
var i, Tabs, Botones;
Tabs = document.getElementsByClassName("Tabs");
for (i = 0; i < Tabs.length; i++) {
Tabs[i].style.display = "none";
}
Botones = document.getElementsByClassName("Botones");
for (i = 0; i < Botones.length; i++) {
Botones[i].className = Botones[i].className.replace(" BotonesActive", "");
}
document.getElementById(IDBoton).style.display = "block";
evt.currentTarget.className += " active";
}
}
\ No newline at end of file
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!