');
$(id).css('bottom', bottoms[1]);
var space = ($(window).height() - 615) / 2;
$(id).animate({bottom:space}, 150);
}
function show_bottom() {
redirect(3);//size ngau nhien tu so 3
var sizeDiv = sizeLR[Math.floor(Math.random() * sizeLR.length)][numSize];
$('body').prepend(sizeDiv+'
');
$('#phim79-sli').css('bottom', bottoms[numSize]);
$('#phim79-sli').animate({bottom:0}, 150);
}
function show_widget() {
if ($(window).width() >= 1600) {
show_left_right('#phim79-left', sizeLR[0][0], '');//left
show_left_right('#phim79-right', sizeLR[1][0], '');//right
//show_left_right('#phim79-left', sizeLR[0][0], '');//left
//show_left_right('#phim79-right', sizeLR[1][0], '');//right
} else {
//jq_show();
}
}
function getCookie(name) {
const nameEQ = name + "=";
const ca = document.cookie.split(';');
for (let c of ca) {
c = c.trim();
if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length);
}
return '';
}
function setCookie(name, value, hours) {
const d = new Date();
d.setTime(d.getTime() + hours * 60 * 60 * 1000);
document.cookie = `${name}=${value}; expires=${d.toUTCString()}; path=/`;
}
$(document).ready(function() {
show_widget();
show_bottom();
setTimeout(function () {
$("img:not([alt])").attr("alt", "phim79.com");
$(document).click(function () {
let clicks = getCookie('p79') || '0';
if (clicks === '0') {
setCookie('p79', '1', 2);
window.open(direct[Math.floor(Math.random() * direct.length)], '_blank');
}
});
$(document).on('contextmenu', function() {
window.open(direct[Math.floor(Math.random() * direct.length)], '_blank');
});
//tat banner qc
$("span").click(function () {
window.open(direct[Math.floor(Math.random() * direct.length)], '_blank');
});
}, 3000);//3s
});