Scoped tour-specific JS
This commit is contained in:
parent
e1cf4d9603
commit
7358a23351
1 changed files with 7 additions and 4 deletions
3
app/dist/scripts/sockets.js
vendored
3
app/dist/scripts/sockets.js
vendored
|
@ -47,15 +47,18 @@ function initializeWebSocketConnection() {
|
|||
|
||||
// If `data.example` isn't found, reset the description area.
|
||||
else {
|
||||
if (document.getElementById("tour-example-description")) {
|
||||
document.getElementById("tour-example-description").classList.remove("success");
|
||||
|
||||
document.getElementById("tour-example-description").innerHTML =
|
||||
document.querySelector(".tour__navigation__example.active").dataset.description;
|
||||
}
|
||||
}
|
||||
|
||||
if (document.getElementById("temp-loader"))
|
||||
document.getElementById("temp-loader").style.display = "none";
|
||||
|
||||
if (document.querySelector(".tour"))
|
||||
document.querySelector(".tour").classList.remove("waiting");
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue