Skip to content

Commit 4b7e72c

Browse files
authored
Merge pull request #34 from VyvaHart/dev
added img to 'show config' button
2 parents 9739057 + 2353245 commit 4b7e72c

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

js/buttons.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,23 @@ document.addEventListener("DOMContentLoaded", () => {
111111
const showButton = document.createElement("button");
112112
showButton.id = "show-button";
113113
showButton.style.position = "absolute";
114+
showButton.style.backgroundColor = "transparent";
115+
showButton.style.border = "none";
114116
showButton.style.top = "20px";
115117
showButton.style.left = "10px";
118+
// showButton.style.padding = "6px";
116119
showButton.style.zIndex = "110"; // Ensures it stays on top of other elements
117120

121+
// Create the image element
122+
const buttonImage = document.createElement("img");
123+
buttonImage.src = "../assets/right_arrow.png";
124+
buttonImage.alt = "Show Button Image";
125+
buttonImage.style.width = "20px";
126+
buttonImage.style.height = "20px";
127+
128+
// Append the image to the button
129+
showButton.appendChild(buttonImage);
130+
118131
document.body.appendChild(showButton);
119132

120133
// Show the container when the "Show" button is clicked

0 commit comments

Comments
 (0)