From bde540e250dcd37f6ed8d7d9419ea70e54f2a1f0 Mon Sep 17 00:00:00 2001 From: Spencer Flagg Date: Mon, 5 Feb 2024 12:26:25 +0000 Subject: [PATCH] Update index.html --- index.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 +
    Copied!
  • 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); });