From fa909546c53dd2f459c305776acd6b1af3eabc3f Mon Sep 17 00:00:00 2001 From: Saiful Irham Wicaksana Date: Sun, 3 Jun 2018 04:48:05 +0700 Subject: [PATCH] Update index.js --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 2cda7b8..f673062 100644 --- a/index.js +++ b/index.js @@ -17,6 +17,10 @@ function setCookie(cname,cvalue,exdays){var d=new Date();d.setTime(d.getTime()+( function getCookie(cname){var name=cname+"=";var decodedCookie=decodeURIComponent(document.cookie);var ca=decodedCookie.split(';');for(var i=0;i=limitClick){jQuery('#'+idAdsense).remove()}else{jQuery('iframe').iframeTracker({blurCallback:function(event){if(this._overId==idAdsense){clickCount++;setCookie(idAdsense,""+clickCount+"",1);setTimeout(function(){jQuery("div[id="+idAdsense+"]").remove()},250)}},overCallback:function(element,event){this._overId=jQuery(element).parents('#'+idAdsense).attr('id')},outCallback:function(element,event){this._overId=null},_overId:null})}}) +if(clickCount>=limitClick){jQuery("div[id="+idAdsense+"]").remove()}else{jQuery('iframe').iframeTracker({blurCallback:function(event){if(this._overId==idAdsense){clickCount++;setCookie(idAdsense,""+clickCount+"",1);setTimeout(function(){jQuery("div[id="+idAdsense+"]").remove()},250)}},overCallback:function(element,event){this._overId=jQuery(element).parents('#'+idAdsense).attr('id')},outCallback:function(element,event){this._overId=null},_overId:null})}})