$(".link-copy").on("click", function () {
var link = $(this);
var $temp = $("<input>");
$("body").append($temp);
$temp.val( link.prev().text().replace(/\s/g,"") ).select();
document.execCommand("copy");
$temp.remove();
if (!link.find(".link-copy__message").length) {
$(this).append('Артикул скопирован');
setTimeout(function(){
link.find(".link-copy__message").remove();
}, 1000);
}
});