From 35c733b7ee17903ac264f974cb82c284ddca8e0f Mon Sep 17 00:00:00 2001 From: c2tz <95414249+c2tz@users.noreply.github.com> Date: Tue, 21 Nov 2023 01:07:14 +0100 Subject: [PATCH] chore: increase time for "copied" animation duration (#214) * align-logo-footer add vertical align 2px for logo footer * modify logo align in footer * noobie things * modify logo & vertical align * build css * revert change in icons.yaml * increase duration for copied button effect * Update hugo_stats.json * Update main.css * Update footer.html * modify timeout to 1000 (1sec) --- assets/js/code-copy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/code-copy.js b/assets/js/code-copy.js index ba0328f8..c5136782 100644 --- a/assets/js/code-copy.js +++ b/assets/js/code-copy.js @@ -54,7 +54,7 @@ document.addEventListener('DOMContentLoaded', function () { button.classList.add('copied'); setTimeout(function () { button.classList.remove('copied'); - }, 500); + }, 1000); }).catch(function (err) { console.error('Failed to copy text: ', err); });