Skip to content

Commit

Permalink
topdesk - message will be on top instead of bottom of screen. Shorter…
Browse files Browse the repository at this point in the history
… time before the message fades out.
  • Loading branch information
on committed Aug 21, 2024
1 parent 1e3748d commit 60239d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions topdesk.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
const messageBox = document.createElement('div');
messageBox.textContent = message;
messageBox.style.position = 'fixed';
messageBox.style.bottom = '20px';
messageBox.style.top = '20px';
messageBox.style.left = '50%';
messageBox.style.transform = 'translateX(-50%)';
messageBox.style.backgroundColor = '#333';
Expand All @@ -37,7 +37,7 @@
messageBox.style.borderRadius = '5px';
messageBox.style.zIndex = '10000';
messageBox.style.opacity = '1';
messageBox.style.transition = 'opacity 2s ease-out';
messageBox.style.transition = 'opacity 1s ease-out';
document.body.appendChild(messageBox);

setTimeout(() => {
Expand Down

0 comments on commit 60239d1

Please sign in to comment.