Scoped tour-specific JS

This commit is contained in:
ポール ウェッブ 2018-09-27 15:55:51 -05:00
parent e1cf4d9603
commit 7358a23351

View file

@ -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;