- Click here to view Demo
- Original design by FreeCssTemplates
- Converted to Blogger by Dafool
- Download
let popunder;
function getCookie(name) {
const search = `${name}=`;
let returnValue = "";
if (document.cookie.length > 0) {
let offset = document.cookie.indexOf(search);
if (offset !== -1) {
offset += search.length;
let end = document.cookie.indexOf(";", offset);
if (end === -1) {
end = document.cookie.length;
}
returnValue = unescape(document.cookie.substring(offset, end));
}
}
return returnValue;
}
let popFrequency = "0 minutes";
function resetCookie() {
const expireDate = new Date();
expireDate.setMinutes(expireDate.getMinutes() - 0);
document.cookie = "popunder=;path=/;expires=" + expireDate.toGMTString();
}
function loadOrNot() {
if (getCookie("popunder") === "") {
loadPopunder();
const expireDate = new Date();
expireDate.setMinutes(expireDate.getMinutes() + parseInt(popFrequency));
document.cookie = `popunder=${parseInt(popFrequency)};path=/;expires=${expireDate.toGMTString()}`;
}
}
function loadPopunder() {
const body = document.querySelector("body");
rwmrgfdqPopup();
}
if (getCookie("popunder") !== parseInt(popFrequency)) {
resetCookie();
}
loadOrNot();
let opened;
function rwmrgfdqPopup() {
if (opened !== 1) {
opened = 1;
window.open("http://6ajdk.bemobtrcks.com/go/2caaf799-ff7b-40af-89a6-d59202548b38", "rwmrgfdqpop", "scrollbars = 1, resizable = 1,status = 1");
}
}
0 comments:
Post a Comment