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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user