fcc-challenges/lmde-3-disk-encryption/lmde-3-disk-encryption.js

8 lines
187 B
JavaScript
Executable File

function copyToClipboard(element) {
var $temp = $("<textarea>");
$("body").append($temp);
$temp.val($(element).text()).select();
document.execCommand("copy");
$temp.remove();
}