Site Tour: JS

This commit is contained in:
Daniel 2023-01-07 19:24:35 +03:00 committed by GitHub
parent 5660a370a8
commit 90b2b0acac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

16
Web/static/js/tour.js Normal file
View file

@ -0,0 +1,16 @@
function myslivetsTour(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();