= man - 4 || r.right <= 0) return;
if (getComputedStyle(el).position === 'fixed' || el.closest('[style*="fixed"]')) return;
trai = Math.min(trai, r.left);
});
return trai;
}
var cacNoi = [];
function kiemNoi() {
cacNoi.forEach(function (x) {
var duCho = innerWidth >= 1360 && lePhai() >= 66;
x.hang.classList.toggle('aiva-cs-an', !duCho);
if (x.hep) x.hep.classList.toggle('aiva-cs-hien', !duCho);
});
}
function doiCho() {
document.querySelectorAll('.aiva-cs[data-cho]').forEach(function (hang) {
var moc = document.querySelector('[data-cs-moc="' + hang.getAttribute('data-cs-cua') + '"]') || hang;
if (hang.getAttribute('data-cho') === 'dau') {
var h = timTieuDe(moc, chuan(hang.getAttribute('data-cs-ten')));
if (h) h.insertAdjacentElement('afterend', hang);
} else {
document.body.appendChild(hang);
cacNoi.push({ hang: hang, moc: moc, hep: document.querySelector('.aiva-cs-hep[data-cs-cua="' + hang.getAttribute('data-cs-cua') + '"]') });
}
hang.removeAttribute('data-cho');
});
kiemNoi();
}
if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', doiCho); } else { setTimeout(doiCho); }
var hen; addEventListener('resize', function () { clearTimeout(hen); hen = setTimeout(kiemNoi, 150); });
document.addEventListener('keydown', function (e) {
if (e.key === 'Escape') document.querySelectorAll('.aiva-cs-qr[data-mo]').forEach(function (q) { q.removeAttribute('data-mo'); });
});
})();
Quét mã bằng camera điện thoại để mở trang này