mirror of
https://github.com/openvk/openvk
synced 2024-11-16 03:59:19 +03:00
504ec0dd2d
Co-authored-by: Daniel <60743585+myslivets@users.noreply.github.com>
16 lines
No EOL
641 B
JavaScript
16 lines
No EOL
641 B
JavaScript
function eurotour(evt, step) {
|
|
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(step).style.display = "block";
|
|
evt.currentTarget.className += " active";
|
|
}
|
|
|
|
// Get the element with id="defaultOpen" and click on it
|
|
document.getElementById("defaultOpen").click(); |