mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-12-18 05:41:31 +00:00
Enhanced JS function.
This commit is contained in:
2
assets/js/dist/_commons/copy-link.min.js
vendored
2
assets/js/dist/_commons/copy-link.min.js
vendored
@@ -1 +1 @@
|
||||
function copyLink(){var a=window.location.href;var b=$("<input>");$("body").append(b);b.val(a).select();document.execCommand("copy");b.remove();alert("Link copied successfully!")};
|
||||
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!")};
|
||||
Reference in New Issue
Block a user