Skip to content

Commit

Permalink
added img to 'show config' button
Browse files Browse the repository at this point in the history
  • Loading branch information
VyvaHart committed Nov 10, 2024
1 parent 156c855 commit 2353245
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
File renamed without changes
13 changes: 13 additions & 0 deletions js/buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,23 @@ document.addEventListener("DOMContentLoaded", () => {
const showButton = document.createElement("button");
showButton.id = "show-button";
showButton.style.position = "absolute";
showButton.style.backgroundColor = "transparent";
showButton.style.border = "none";
showButton.style.top = "20px";
showButton.style.left = "10px";
// showButton.style.padding = "6px";
showButton.style.zIndex = "110"; // Ensures it stays on top of other elements

// Create the image element
const buttonImage = document.createElement("img");
buttonImage.src = "../assets/right_arrow.png";
buttonImage.alt = "Show Button Image";
buttonImage.style.width = "20px";
buttonImage.style.height = "20px";

// Append the image to the button
showButton.appendChild(buttonImage);

document.body.appendChild(showButton);

// Show the container when the "Show" button is clicked
Expand Down

0 comments on commit 2353245

Please sign in to comment.