copy code

This commit is contained in:
Mathium05 committed 2026-08-18 11:26:46 -05:00
1 parent 4da177b854
commit fd9aeb1959
3 files changed
+13

No files matched your search

+9
View File
@@ -374,6 +374,15 @@ class MarkDown {
pre.textContent = build;
span.appendChild(pre);
if (count === 3) highlight(pre, lang, keep ? 3 + lang.length : 0, keep ? 3 : 0);
if (!keep && !stdsize && lang && count === 3) {
const button = document.createElement("button");
button.textContent = I18n.copyCode();
button.classList.add("copyCode");
pre.append(button);
button.onclick = () => {
navigator.clipboard.writeText(build);
};
}
}
i--;
continue;
+3
View File
@@ -731,6 +731,9 @@ audio::-webkit-media-controls-panel {
background: #00000050;
}
}
.copyCode {
margin-top: 12px;
}
button,
input::file-selector-button,
select {
+1
View File
@@ -1035,6 +1035,7 @@
"manage": "Manage security keys"
},
"webhook": "WEBHOOK",
"copyCode":"Copy code",
"webhooks": {
"EnterWebhookName": "Enter webhook name",
"areYouSureDelete": "Are you sure you want to delete $1?",