You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
522 B
13 lines
522 B
7 years ago
|
function openCity(evt, tabId) {
|
||
|
var i, tabcontent, tablinks;
|
||
|
tabcontent = document.getElementsByClassName("tabcontent");
|
||
|
for (i = 0; i < tabcontent.length; i++) {
|
||
|
tabcontent[i].style.display = "none";
|
||
|
}
|
||
|
tablinks = document.getElementsByClassName("tablinks");
|
||
|
for (i = 0; i < tablinks.length; i++) {
|
||
|
tablinks[i].className = tablinks[i].className.replace(" active", "");
|
||
|
}
|
||
|
document.getElementById(tabId).style.display = "block";
|
||
|
evt.currentTarget.className += " active";
|
||
|
}
|