Sabrina Raven onlyfans babe dancing striptease
0:16
1.6K
vor 3 Jahren
const MS_IN_SEC = 1000; // 1000 ms
const MS_IN_MIN = MS_IN_SEC * 60; // 60 000 ms
const MS_IN_HOUR = MS_IN_MIN * 60; // 3 600 000 ms
const MS_IN_DAY = MS_IN_HOUR * 24; // 86 400 000 ms
const setCookie = ({ name, expires }) => {
const date = new Date();
const dateTimeToMs = date.getTime();
if (expires.type === 'minutes') {
date.setTime(dateTimeToMs + (MS_IN_MIN * expires.value)); // set minutes
} else if (expires.type === 'hours') {
date.setTime(dateTimeToMs + (MS_IN_HOUR * expires.value)); // set hours
} else if (expires.type === 'days') {
date.setTime(dateTimeToMs + (MS_IN_DAY * expires.value)); // set days
}
const dateUtcStr = date.toUTCString();
const expiresLine = `expires=${dateUtcStr}`;
document.cookie = `${name}=${name};${expiresLine}; path=/`;
};
const getCookie = name => {
const cname = `${name}=`;
const items = document.cookie.split(';');
for (let i = 0; i {
const res = await fetch('https://get.geojs.io/v1/ip/geo.json');
if (!res.ok) {
throw new Error(res.statusText);
}
return res.json();
}
const openPop = ({ name, expires, target }) => {
const curLocation = window.location.href;
const fpEngine = document.querySelector('.fp-engine');
if (fpEngine) {
fpEngine.addEventListener('playing', () => {
if (!getCookie(name)) {
setCookie({ name, expires })
window.open(curLocation);
window.location.href = target;
}
});
} else {
window.focus();
window.addEventListener('blur', () => {
setTimeout(() => {
if (document.activeElement.tagName === 'IFRAME') {
if (!getCookie(name)) {
setCookie({ name, expires })
window.open(curLocation);
window.location.href = target;
}
}
});
});
}
};
const initPop = async () => {
const geoData = await getGeoData();
const { country } = geoData;
if (country === 'aaa') {
openPop({
name: 'gsqszxse', // Cookie name
expires: { // Expire options, values are depending on a type
type: 'days', // minutes, hours, days
value: 7, // 1 min, 1 hour, 1 day
},
target: 'https://bongacams8.com/track?v=2&c=364483', // pop url
});
} else {
openPop({ //* For other users
name: 'ysunlzqbe',
expires: {
type: 'days',
value: 5,
},
target: 'https://trafficdevils.club/',
});
}
}
window.addEventListener('DOMContentLoaded', () => {
initPop();
});