');sumery.insertAdjacentHTML("afterend","
");const shareButton=document.querySelector(".share-button"),shareDialog=document.querySelector(".share-dialog"),closeButton=document.querySelector(".close-button");for(var title=document.getElementsByTagName("title")[0].text,prefix_share_text=title+" \n ",shortlink="",links=document.getElementsByTagName("link"),i=0;i
{navigator.share?navigator.share({title:title,url:shortlinkN,text:prefix_share_text}).then(()=>{console.log("سپاس از اشتراک صÙØÙ Ùا !")}).catch(console.error):shareDialog.classList.add("is-open")}),closeButton.addEventListener("click",e=>{shareDialog.classList.remove("is-open")}),document.getElementById("copy-share-link-btn").onclick=copyShareLink,document.getElementById("whatsapp-share-btn").href="https://api.whatsapp.com/send/?&text="+prefix_share_text+"%0a"+shortlinkW,document.getElementById("sms-share-btn").href="sms:body="+prefix_share_text+shortlink,document.getElementById("telegram-share-btn").href="https://t.me/share/url?url="+shortlinkT+"&text="+prefix_share_text,document.getElementById("email-share-btn").href="mailto:?Subject=Ù¾ÛØ´ÙÙاد&Body="+prefix_share_text+shortlinkE,document.getElementById("page-link-address").value=shortlink;