web/assets/js/dist/_commons/copy-link.min.js

1 line
198 B
JavaScript
Raw Normal View History

2020-02-17 22:04:52 +03:00
function copyLink(a){if(!a||0===a.length){a=window.location.href}var b=$("<input>");$("body").append(b);b.val(a).select();document.execCommand("copy");b.remove();alert("Link copied successfully!")};