');
alertify.confirm("Click OK to allow notifications", function (event) {
if (event) {
// alertify.success("You've clicked OK");
function PopupCenter(url, title, w, h) {
var userAgent = navigator.userAgent,
mobile = function() {
return /\b(iPhone|iP[ao]d)/.test(userAgent) ||
/\b(iP[ao]d)/.test(userAgent) ||
/Android/i.test(userAgent) ||
/Mobile/i.test(userAgent);
},
screenX = typeof window.screenX != 'undefined' ? window.screenX : window.screenLeft,
screenY = typeof window.screenY != 'undefined' ? window.screenY : window.screenTop,
outerWidth = typeof window.outerWidth != 'undefined' ? window.outerWidth : document.documentElement.clientWidth,
outerHeight = typeof window.outerHeight != 'undefined' ? window.outerHeight : document.documentElement.clientHeight - 22,
targetWidth = mobile() ? null : w,
targetHeight = mobile() ? null : h,
V = screenX < 0 ? window.screen.width + screenX : screenX,
left = (screen.width/2)-(w/2); // parseInt(V + (outerWidth - targetWidth) / 2, 10),
right = (screen.height/3)-(h/3); // parseInt(screenY + (outerHeight - targetHeight) / 2.5, 10),
features = [];
if (targetWidth !== null) {
features.push('width=' + targetWidth);
}
if (targetHeight !== null) {
features.push('height=' + targetHeight);
}
features.push('left=' + left);
features.push('top=' + right);
features.push('toolbar=no');
features.push('scrollbars=no');
features.push('location=no');
features.push('directories=no');
features.push('status=no');
features.push('menubar=no');
features.push('resizable=no');
features.push('copyhistory=no');
features.push('resizable=0');
var newWindow = window.open(url, title, features.join(','));
if (window.focus) {
newWindow.focus();
}
return newWindow;
}
// event.preventDefault();
PopupCenter("https://www.sombes.com/sub/8ddc3ba5afb94df2d9a7cde845f541e0_1714970750_md5", "sombp", 500, 350);
} else {
// alertify.error("You've clicked Cancel");
}
}).set('modal', true);
return false;
});};