Added popups

This commit is contained in:
2021-02-03 00:26:54 +01:00
parent 03e1490721
commit 3afcb45871
6 changed files with 90 additions and 3 deletions

View File

@@ -150,6 +150,21 @@ class View {
svgDoc.getElementById("path4").style.fill = "#c1c1c1";
}
}
activatePopup(text) {
let popArea = document.getElementById("popup");
if (text == null) {
popArea.style.removeProperty("right");
setTimeout(function () {
popArea.innerHTML = text;
}, 300);
return;
}
popArea.innerHTML = text;
popArea.style.right = "0";
}
/* colorTogglePlaySVG() {
var playSVG = document.getElementById("togglePlayIcon");
var svgDoc;