team.js 230 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
function copyToClipboard(element) {
    var $temp = $("<input>");
    $("body").append($temp);
    $temp.val($(element).html()).select();
    document.execCommand("copy");
    $temp.remove();

    swal("Copied!", "", "success");
}