diff options
| author | dmlunar <root@lunar.sh> | 2026-02-14 19:42:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-14 19:42:43 +0200 |
| commit | 55311ff9cda63002159859aeb29b5cd0ef5a90dc (patch) | |
| tree | 1598add56f12b62888ccbbb365369208bf8798c2 | |
| parent | b187dfd6df959cb5bac53859d206ffa15d938efe (diff) | |
| download | journal.lunar.sh-55311ff9cda63002159859aeb29b5cd0ef5a90dc.tar.gz journal.lunar.sh-55311ff9cda63002159859aeb29b5cd0ef5a90dc.zip | |
Update clipboard.js
| -rw-r--r-- | assets/js/clipboard.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/assets/js/clipboard.js b/assets/js/clipboard.js index aaac12c..6600b04 100644 --- a/assets/js/clipboard.js +++ b/assets/js/clipboard.js @@ -6,7 +6,7 @@ const createCopyButton = (codeElement) => { img.addEventListener('click', () => {
var codeText = codeElement.querySelector('.rouge-code pre').textContent;
navigator.clipboard.writeText(codeText).then(() => {
- img.style.border = "1px solid #00ff00";
+ img.style.border = "1px solid #ff15ed";
}).catch((err) => {
console.error('Failed to copy text: ', err);
});
@@ -25,3 +25,4 @@ window.addEventListener('DOMContentLoaded', function() { }
});
});
+
|
