' + '' + '
' + '
' + '
!
' + '

Trải nghiệm trên trình duyệt hiện tại chưa được tối ưu

' + '

Để đọc bài viết và xem nội dung ổn định nhất, vui lòng mở bằng Safari (hoặc Chrome).

' + '

Trên iPhone/iPad, chọn “Mở Safari trực tiếp” để xem ngay, hoặc “Mở bằng Chrome” nếu đã cài.

' + '
' + '' + '' + '' + '
' + '' + '' + '
' + '
' + '
' + ''; setTimeout(function() { var openSafariBtn = document.getElementById('openSafariBtn'); var openChromeBtn = document.getElementById('openChromeBtn'); var copyBtn = document.getElementById('copyLinkBtn'); var bypassBtn = document.getElementById('bypassZaloBtn'); var openHelp = document.getElementById('openHelp'); var msg = document.getElementById('copySuccessMsg'); var shareForBrowser = function(title, helpText) { if (navigator.share) { navigator.share({ title: title, url: currentLink }).catch(function() {}); } else if (openHelp) { openHelp.textContent = helpText + ' Nếu không thấy, hãy Sao chép link rồi dán vào Safari/Chrome.'; openHelp.style.display = 'block'; } }; if (openSafariBtn) { // Zalo recognizes x-safari- as an external Safari handoff. openSafariBtn.onclick = function() { window.location.assign('x-safari-' + currentLink); }; } if (openChromeBtn) { openChromeBtn.onclick = function() { try { var cleanUrl = currentLink.replace(/^https?:\/\//i, ''); window.location.assign('googlechromes://' + cleanUrl); } catch(e) {} setTimeout(function() { shareForBrowser('Mở bài viết bằng Chrome', 'Trong bảng Chia sẻ, chọn “Mở bằng Chrome”.'); }, 400); }; } if (copyBtn) { copyBtn.onclick = function() { if (navigator.clipboard && navigator.clipboard.writeText) { navigator.clipboard.writeText(currentLink).then(function() { if (msg) msg.style.display = 'block'; }).catch(function() { copyWithFallback(); }); } else { copyWithFallback(); } function copyWithFallback() { var tempInput = document.createElement('input'); tempInput.value = currentLink; document.body.appendChild(tempInput); tempInput.select(); try { document.execCommand('copy'); } catch (e) {} tempInput.remove(); if (msg) msg.style.display = 'block'; } }; } if (bypassBtn) { bypassBtn.onclick = function() { try { sessionStorage.setItem('bypass_zalo_screen', '1'); } catch(e) {} window.location.reload(); }; } }, 0); } } catch(e) {} })();