async function copyClipboard(obj) {
    await navigator.clipboard.writeText(obj.innerText);

    let itemMessage = document.createElement("div"); // Item Message
    itemMessage.innerText = "copied";
    itemMessage.className = "message";

    obj.appendChild(itemMessage);
    setTimeout(() => {
        obj.removeChild(itemMessage)
    }, 2000)
}
// Clipboard method to copy clicked data
Clipboard method to copy clicked data
Clipboard method to copy clicked data
async function copyClipboard(obj) {
    await navigator.clipboard.writeText(obj.innerText);
    let itemMessage = document.createElement("div"); 
    itemMessage.innerText = "copied";
    itemMessage.className = "message";
    obj.appendChild(itemMessage);
    setTimeout(() => {
        obj.removeChild(itemMessage)
    }, 2000)
}
async function copyClipboard ( obj ) { await navigator . clipboard . writeText ( obj . innerText ) ; let itemMessage = document . createElement ( "div" ) ; itemMessage . innerText = "copied" ; itemMessage . className = "message" ; obj . appendChild ( itemMessage ) ; setTimeout ( ( ) => { obj . removeChild ( itemMessage ) } , 2000 ) }
Clipboard method to copy clicked data
Clipboard method to copy clicked data
// Item Message