Skip to content

Commit

Permalink
chore: increase time for "copied" animation duration (#214)
Browse files Browse the repository at this point in the history
* 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)
  • Loading branch information
c2tz authored Nov 21, 2023
1 parent aad68d8 commit 35c733b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/code-copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 35c733b

Please # to comment.