mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-24 02:03:01 +02:00
All 0.28.0 Changes - Bitnodes 4 and 11 and webpack migration
This commit is contained in:
+11
-9
@@ -1,5 +1,5 @@
|
||||
/* Pop up Dialog Box */
|
||||
dialogBoxes = [];
|
||||
let dialogBoxes = [];
|
||||
|
||||
//Close dialog box when clicking outside
|
||||
$(document).click(function(event) {
|
||||
@@ -32,31 +32,33 @@ $(document).on('click', '.dialog-box-close-button', function( event ) {
|
||||
|
||||
var dialogBoxOpened = false;
|
||||
|
||||
dialogBoxCreate = function(txt) {
|
||||
function dialogBoxCreate(txt) {
|
||||
var container = document.createElement("div");
|
||||
container.setAttribute("class", "dialog-box-container");
|
||||
|
||||
|
||||
var content = document.createElement("div");
|
||||
content.setAttribute("class", "dialog-box-content");
|
||||
|
||||
|
||||
var closeButton = document.createElement("span");
|
||||
closeButton.setAttribute("class", "dialog-box-close-button");
|
||||
closeButton.innerHTML = "×"
|
||||
|
||||
|
||||
var textE = document.createElement("p");
|
||||
textE.innerHTML = txt;
|
||||
|
||||
|
||||
content.appendChild(closeButton);
|
||||
content.appendChild(textE);
|
||||
container.appendChild(content);
|
||||
|
||||
|
||||
document.body.appendChild(container);
|
||||
if (dialogBoxes.length >= 1) {
|
||||
container.style.visibility = "hidden";
|
||||
}
|
||||
dialogBoxes.push(container);
|
||||
|
||||
|
||||
setTimeout(function() {
|
||||
dialogBoxOpened = true;
|
||||
}, 400);
|
||||
}
|
||||
}
|
||||
|
||||
export {dialogBoxCreate};
|
||||
|
||||
Reference in New Issue
Block a user