From 90b2b0acac805be558bfae75e39d30dc4fd5c4ab Mon Sep 17 00:00:00 2001 From: Daniel <60743585+myslivets@users.noreply.github.com> Date: Sat, 7 Jan 2023 19:24:35 +0300 Subject: [PATCH] Site Tour: JS --- Web/static/js/tour.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Web/static/js/tour.js diff --git a/Web/static/js/tour.js b/Web/static/js/tour.js new file mode 100644 index 00000000..2294bac0 --- /dev/null +++ b/Web/static/js/tour.js @@ -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(); \ No newline at end of file