mirror of
https://github.com/PrivSec-dev/privsec.dev
synced 2025-02-20 18:31:35 -05:00
fix showCodeCopyButtons strings
This commit is contained in:
parent
212b11ad3a
commit
e783ff8d48
@ -60,12 +60,12 @@ function showCodeCopyButtons() {
|
|||||||
|
|
||||||
const copybutton = document.createElement('button');
|
const copybutton = document.createElement('button');
|
||||||
copybutton.classList.add('copy-code');
|
copybutton.classList.add('copy-code');
|
||||||
copybutton.innerHTML = '{{- i18n "code_copy" | default "copy" }}';
|
copybutton.innerHTML = 'copy';
|
||||||
|
|
||||||
function copyingDone() {
|
function copyingDone() {
|
||||||
copybutton.innerHTML = '{{- i18n "code_copied" | default "copied!" }}';
|
copybutton.innerHTML = 'copied!';
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
copybutton.innerHTML = '{{- i18n "code_copy" | default "copy" }}';
|
copybutton.innerHTML = 'copy';
|
||||||
}, 2000);
|
}, 2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user