1
1
mirror of https://github.com/neosubhamoy/neosubhamoy-portfolio.git synced 2025-12-20 01:09:35 +05:30

(feat/fixed): added copy embeded code snippet button and fixed copy message text spacing

This commit is contained in:
2023-11-28 20:37:56 +05:30
parent a9e3ef49a4
commit 574c84fd4e
3 changed files with 21 additions and 31 deletions

View File

@@ -366,9 +366,9 @@ function call_webshare_api() {
function copy_to_clipboard(textContent, copyContext) {
if(navigator.clipboard) {
navigator.clipboard.writeText(textContent).then(function() {
window.alert(copyContext + "Copied to Clipboard");
window.alert(copyContext + " Copied to Clipboard");
}, function() {
window.alert("Failed to Copy the" + copyContext + "!");
window.alert("Failed to Copy the " + copyContext + "!");
})
}
else {