Skip to content

Commit

Permalink
feat: hide chat button
Browse files Browse the repository at this point in the history
  • Loading branch information
jebibot committed Dec 13, 2024
1 parent 06593bf commit 77ec0af
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ export default {
right: 0;
border-radius: 0 0 0 8px;
background-color: #333;
transition: opacity 150ms ease-in-out;
}
#chat-toggle svg {
Expand All @@ -250,8 +251,8 @@ export default {
fill: #777;
}
#chat-toggle:hover svg {
fill: #999;
#chat-toggle:hover {
opacity: 1 !important;
}
#overlay {
Expand Down Expand Up @@ -285,8 +286,9 @@ export default {
cursor: pointer;
}
.button:hover {
background-color: #666 !important;
.button:hover,
#overlay-button:hover {
background-color: #666;
}
.box {
Expand Down Expand Up @@ -414,6 +416,9 @@ export default {
chatToggle.addEventListener("click", () => {
chat.src = chat.src !== "about:blank" ? "about:blank" : chatSelect.value;
});
setTimeout(() => {
chatToggle.style.opacity = 0;
}, 10000);
overlayClose.addEventListener("click", closeOverlay);
overlayButton.addEventListener("click", () => {
Expand Down

0 comments on commit 77ec0af

Please sign in to comment.