// Source – https://stackoverflow.com/q/77817071
// Posted by PyScript, modified by community. See post ‘Timeline’ for change history
// Retrieved 2026-04-21, License – CC BY-SA 4.0
function copyClipboard() {
var copyText = document.getElementById("one").innerHTML;
var input = document.createElement("input");
input.value = copyText;
document.body.appendChild(input);
input.select();
document.execCommand("copy");
document.body.removeChild(input);
}
first
function copyClipboard() {
var copyText = document.getElementById("two").innerHTML;
var input = document.createElement("input");
input.value = copyText;
document.body.appendChild(input);
input.select();
document.execCommand("copy");
document.body.removeChild(input);
}
second
.