r
Radicle website including documentation and guides
Radicle
const copyButton = document.getElementById("install");
const copyResult = document.getElementById("install-copy");
const textToCopy = document.getElementById("install-command").innerText;
copyButton.addEventListener("click", async function () {
try {
await navigator.clipboard.writeText(textToCopy);
copyResult.innerText = "copied";
} catch (err) {
console.error("Failed to copy text: ", err);
}
});