mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Site Tour: JS
This commit is contained in:
parent
5660a370a8
commit
90b2b0acac
1 changed files with 16 additions and 0 deletions
16
Web/static/js/tour.js
Normal file
16
Web/static/js/tour.js
Normal 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();
|
Loading…
Reference in a new issue