diff --git a/index.html b/index.html index dc397f7..be97c00 100644 --- a/index.html +++ b/index.html @@ -12,6 +12,13 @@ button { width: auto; } + .alert { + padding: 1em 2em; + border-radius: 1em; + } + .alert--success { + background: #88c841; + }
@@ -24,6 +31,7 @@curl -O https://liferaft.altweb.me/rustdesk.sh && chmod +x rustdesk.sh && ./rustdesk.sh
+ Open the start menu either with your keyboard, by holding the CTRL key and clicking ESC
@@ -45,7 +53,11 @@ function copyCode() { const codeBlock = document.getElementById('codeBlock').innerText; navigator.clipboard.writeText(codeBlock).then(() => { - alert('Code copied to clipboard!'); + const copyAlert = document.getElementById('copy-alert'); + copyAlert.style.display = 'inline-block'; + setTimeout(() => { + copyAlert.style.display = 'none'; + }, 10000); // Display for ten seconds (10000 milliseconds) }, (err) => { console.error('Error in copying text: ', err); });