mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Completed installation procedure on wizard
This commit is contained in:
19
manager/javascripts/popup.js
Normal file
19
manager/javascripts/popup.js
Normal file
@@ -0,0 +1,19 @@
|
||||
function showPopup(message, onCloseCallback) {
|
||||
document.getElementById("grayout").classList.remove("hide");
|
||||
document.getElementById("popup").classList.remove("hide");
|
||||
document.getElementById("popup").querySelector(".close-popup").addEventListener("click", (e) => {
|
||||
hidePopup();
|
||||
onCloseCallback();
|
||||
})
|
||||
document.getElementById("popup").querySelector(".content").innerText = message;
|
||||
}
|
||||
|
||||
function hidePopup() {
|
||||
document.getElementById("grayout").classList.add("hide");
|
||||
document.getElementById("popup").classList.add("hide");
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
showPopup: showPopup,
|
||||
hidePopup: hidePopup
|
||||
}
|
||||
Reference in New Issue
Block a user