');
div.css({font:'bold 10px arial',zIndex:1000000,textAlign:'center',padding:5,position:'fixed',width:85,height:20,background:'#AFFFAF',border:'2px solid green',top:10,left:10})
.text('');
$('html').css({position:'relative'}).append(div);
var inters = setInterval(function(){
div.text($('#countbutton').val())
if(!$('#countbutton').is(':disabled')){
clearInterval(inters);
var read = window.location.href.replace('read','entry');
window.location.href = read;
}
},1000)
}
if(wparent.location.href.indexOf('gpt.php?v=entry') != -1 &&
self == top){
if($('frameset frame:last').size()){
if($('frameset frame:last').attr('src').indexOf('adf.ly') >= 0){
wparent.opener.success('fail');
}
}
var div = $('
');
div.css({font:'bold 10px arial',zIndex:1000000,textAlign:'center',padding:5,position:'fixed',width:85,height:20,background:'#AFFFAF',border:'2px solid green',top:10,left:10})
.text('');
$('html').css({position:'relative'}).append(div);
var thisFrame = ($('frameset frame:first').size()) ? $('frameset frame:first') : $('iframe:first')
thisFrame.error(function(){wparent.opener.success('fail');})
if($('frame:last').attr('src').indexOf('cheat') >= 0 ){
var cheatCheck = []//1;
if(wparent.location.host.indexOf('cashcamel')!=-1)cheatCheck = [49,27,51,32,35,8,39,60,46,22,65];
var inters = setInterval(function(){
var doc1 = $( $('frame:first')[0].contentDocument );
var doc = $( $('frame:last')[0].contentDocument );
if($('input[type=radio]',doc).size()){
clearInterval(inters);
div.text($('#timer',doc1).text())
$.each(cheatCheck,function(k,v){
if($('input[value='+v+']',doc).size()){
$('input[value='+v+']',doc).attr('checked',true);
$('input[value=Answer]',doc).trigger('click');
setTimeout(function(){
wparent.opener.success('retry');
},200);
}
});
}
},2000);
}
else{
var iframeLoad = 50;
var intersAds = setInterval(function(){
iframeLoad--;
if(iframeLoad == 0){
clearInterval(intersAds);
wparent.opener.success('fail');
}
if(iframeLoad == 20){
$('frame:last').attr('src','http://google.com');
}
},1000)
var fulltimer;
var inters = setInterval(function(){
var doc = $( $('frame:first')[0].contentDocument );
var win = $('frame:first')[0].contentWindow;
var btnKey = '';
if(!fulltimer)
fulltimer = (win.fulltimer)?win.fulltimer:win.timer ;
$('#buttons',doc).show();
div.text('wait: '+ (fulltimer--)+ ' - timeout: '+ iframeLoad);
if(fulltimer == -10 ){
$('frame:last').remove();
setTimeout(function(){
wparent.opener.success('');
},1000);
}
if($('#timer',doc).text().indexOf('Click') >= 0 || $('#timer img:visible',doc).size()){
clearInterval(intersAds);
function ajaxRec(btnKey){
$.ajax({
url : 'gpt.php?v=verify&buttonClicked='+btnKey+'&id='+win.id+'&type='+win.type+'&pretime='+win.pretime+'&'+win.url_variables
}).complete(function(a,b){
console.log(a)
console.log(b)
if(a.responseText.indexOf('You clicked the wrong number')>=0){
btnKey++;
ajaxRec(btnKey)
}
else if(wparent.location.href.indexOf('type=ce') != -1){
wparent.location.reload()
}
else{
$('frame:last').remove();
setTimeout(function(){
wparent.opener.success('');
},5000);
}
})
}
var primeImg = $('#timer img',doc);
if(primeImg.size()){
function gameClick(){
function decode(img,pos){
var canvas = document.createElement('canvas');
canvas.width = primeImg.width();
canvas.height = primeImg.height();
var ctx = canvas.getContext('2d');
// Draw image on canvas to get its pixel data
ctx.drawImage(img, pos, 0);
// Get image pixels
var imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);
var pixels = imageData.data;
return pixels;
}
var arrPos = [];
if($('#buttons > img',doc).size()){
var imgsrc = ($('#buttons > div',doc).attr('style').match(/url\([^]+\)/)[0].replace('url(','').replace(')',''))
var imgobj = $('
').attr({src:imgsrc})
$.each($('#buttons .highlight',doc),function(k,v){
if(k == 0)
arrPos.push(decode(imgobj[0],0))
else
arrPos.push(decode(imgobj[0],'-'+(primeImg.width()*k)))
})
}
else{
$.each($('#buttons img',doc),function(k,v){
arrPos.push(decode(v,0))
});
}
var img1 = decode(primeImg[0],0);
var checker = [];
$.each(arrPos,function(k,v){
var v = 0;
for(i=0;i
= 0){
btnKey = k;
}
});
console.log(btnKey)
ajaxRec(btnKey);
}
}
},1000);
}
}