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

8 lines
187 B
JavaScript
Raw Normal View History

2018-12-26 07:45:59 -08:00
function copyToClipboard(element) {
var $temp = $("<textarea>");
$("body").append($temp);
$temp.val($(element).text()).select();
document.execCommand("copy");
$temp.remove();
}