mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 13:35:42 +00:00
style: layout print conta
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
function openTab(evt, cityName) {
|
||||
function openTab(evt, etapa) {
|
||||
// Declarar todas as abas e conteúdos
|
||||
var i, tabcontent, tablinks;
|
||||
tabcontent = document.getElementsByClassName("tabcontent");
|
||||
@@ -10,6 +10,14 @@ function openTab(evt, cityName) {
|
||||
tablinks[i].className = tablinks[i].className.replace(" active", "");
|
||||
}
|
||||
// Mostrar o conteúdo da aba selecionada e marcar a aba como ativa
|
||||
document.getElementById(cityName).style.display = "block";
|
||||
document.getElementById(etapa).style.display = "block";
|
||||
evt.currentTarget.className += " active";
|
||||
}
|
||||
// console.log(evt.currentTarget.className += " active");
|
||||
}
|
||||
|
||||
|
||||
tabcontent = document.getElementsByClassName("tabcontent");
|
||||
for (i = 0; i < tabcontent.length; i++) {
|
||||
tabcontent[i].style.display = "none";
|
||||
}
|
||||
tabcontent[0].style.display = "block";
|
||||
Reference in New Issue
Block a user