Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaTheLEGEND authored Feb 4, 2024
1 parent 75caa64 commit 658865d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,7 @@ function spawnTerminal() {
closeButton.style.right = "10px";
closeButton.style.padding = "5px";
closeButton.style.cursor = "pointer";
closeButton.style.borderColor = "red";
closeButton.addEventListener('click', function() {
spawnTerminal(); // Close the terminal
});
Expand All @@ -876,10 +877,9 @@ function spawnTerminal() {
var iframe = document.createElement("iframe");

// Set styles for the iframe to fill the overlay div
iframe.style.width = "80%"; // Adjust the width as needed
iframe.style.height = "80%"; // Adjust the height as needed
iframe.style.border = "2px solid #fff"; // Set border style
iframe.style.margin = "10% auto"; // Center the iframe with some margin
iframe.style.width = "90vw"; // Adjust the width as needed
iframe.style.height = "90vh"; // Adjust the height as needed
iframe.style.margin = "auto"; // Center the iframe with some margin
iframe.style.boxSizing = "border-box"; // Include border in sizing
iframe.src = "terminal.html";

Expand Down

0 comments on commit 658865d

Please sign in to comment.