Added popups
This commit is contained in:
15
js/view.js
15
js/view.js
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user