var block_right_click = 0;var block_copy = 0;var block_request_text = `You are not allowed to access this store !!`;var disable_image_dgrad_and_drop = "0";var disable_shortcuts = "0";var plan = 1;function disableShortCuts(){$(window).on("keydown",function(e){return 123!=e.keyCode&&((!e.ctrlKey||!e.shiftKey||73!=e.keyCode)&&((!e.ctrlKey||73!=e.keyCode)&&void 0))})}
function block(){
document.querySelector("html").innerHTML = `
You Are Not Allowed to access this webpage
401
`+block_request_text+`
`;
}
function block2(){
document.querySelector("html").innerHTML = `
You Are Not Allowed to access this webpage
404
`+block_request_text+`
`;
}
function setCookie(key, value, expiry) {
var expires = new Date();
expires.setTime(expires.getTime() + (expiry * 24 * 60 * 60 * 1000));
document.cookie = key + '=' + value + ';expires=' + expires.toUTCString()+';path=/';
}
function disablerightClick(){
document.addEventListener("contextmenu", function(e){ e.preventDefault(); }, false);
}
function disableCopy(){
document.addEventListener("copy", function(evt){
evt.clipboardData.setData("text/plain", "Copying is not allowed on this webpage");
alert("coping not allowed on this site");
evt.preventDefault();
}, false);
}
function disableCopyImage(){
$('body').on('dragstart drop', function(e){
e.preventDefault();
return false;
});
}
function getCookie(key) {
var keyValue = document.cookie.match('(^|;) ?' + key + '=([^;]*)(;|$)');
return keyValue ? keyValue[2] : 0;
}
function deleteCookie(name) {
document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
}
function arrayCompare(a1, a2) {
if (a1.length != a2.length) return false;
var length = a2.length;
for (var i = 0; i < length; i++) {
if (a1[i] !== a2[i]) return false;
}
return true;
}
function inArray(needle, haystack) {
var length = haystack.length;
for(var i = 0; i < length; i++) {
if(typeof haystack[i] == 'object') {
if(arrayCompare(haystack[i], needle)) return true;
} else {
if(haystack[i] == needle) return true;
}
}
return false;
}
if(disable_image_dgrad_and_drop == 1){ disableCopyImage(); }
if(block_right_click == 1){ disablerightClick(); }
if(block_copy == 1){ disableCopy(); }
if(disable_shortcuts == 1){ disableShortCuts(); }
function manifesterScript(){
var visited = getCookie('tp_visited');
function makeServerCall(){
$.ajax({
type : 'post',
url : '/apps/get-manifest-data',
data : { 'visited' : visited },
dataType : 'json',
success:function(resp){
if(resp.is_blocked){ setCookie('tp_block',1,30); if(resp.block2 == 1){ block2(); } else { block(); } }
var tp_visited = getCookie('tp_visited');
if(tp_visited == 0){ setCookie('tp_visited',1,30); }
if(resp.is_redirect == 1){
window.location.href = resp.redirect_url;
}
}
});
}
if(plan > 1){ makeServerCall(); }
}
if(typeof jQuery == 'undefined'){
var headTag = document.getElementsByTagName("head")[0];
var jqTag = document.createElement('script');
jqTag.type = 'text/javascript';
jqTag.src = 'https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js';
jqTag.onload = manifesterScript;
headTag.appendChild(jqTag);
}else{
manifesterScript();
}