صفحه نخست روزنامه های شنبه ۳۰ آبان ۱۴۰۵
کپی شد کدخبر: 3261417 ت ت
روزنامه ها صفحه نخست روزنامه ها
کپی شد
با دوستان خود به اشتراک بگذارید:
document.addEventListener('DOMContentLoaded', function() { const shareButton = document.querySelector('.news_share_button');
if (!shareButton) return;
if (!navigator.share) { console.log('Web Share API not supported in this browser. Hiding the button.'); shareButton.style.display = 'none'; return; }
shareButton.addEventListener('click', async () => { try { const shareData = { title: "\u0635\u0641\u062d\u0647 \u0646\u062e\u0633\u062a \u0631\u0648\u0632\u0646\u0627\u0645\u0647 \u0647\u0627\u06cc \u0634\u0646\u0628\u0647 \u06f3\u06f0 \u0622\u0628\u0627\u0646 \u06f1\u06f4\u06f0\u06f5\r\n", text: "\u0634\u06a9\u0633\u062a\u0646 \u062e\u0637 \u0645\u062d\u0627\u0635\u0631\u0647 \u062f\u0631\u06cc\u0627\u06cc\u06cc \u0627\u06cc\u0631\u0627\u0646\u060c \u062a\u0627\u062c \u0641\u0648\u062a\u0628\u0627\u0644 \u0622\u0633\u06cc\u0627 \u0628\u0631 \u0633\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc \u0647\u0627\u060c \u0647\u0634\u062f\u0627\u0631 \u0631\u0626\u06cc\u0633 \u062c\u0645\u0647\u0648\u0631 \u062f\u0631\u0628\u0627\u0631\u0647 \u062a\u0628\u0639\u0627\u062a \u0641\u0631\u0633\u0627\u06cc\u0634\u06cc \u0634\u062f\u0646 \u0627\u0642\u062a\u0635\u0627\u062f \u0648....\u0627\u0632 \u0645\u0647\u0645\u200c\u062a\u0631\u06cc\u0646 \u062a\u06cc\u062a\u0631\u0647\u0627\u06cc \u0627\u0645\u0631\u0648\u0632 \u0645\u0637\u0628\u0648\u0639\u0627\u062a \u0627\u0633\u062a.", url: "https:\/\/www.khabarfoori.com\/fa\/tiny\/news-3261417" };
await navigator.share(shareData); console.log('Content shared successfully!'); } catch (error) { if (error.name !== 'AbortError') { console.error('Error sharing content:', error); } } }); });