se{ jQuery('#'+div +' .count').html(e); } }, error: function(e) { } }); } function doratebutton(div, id, type){ jQuery('#'+div+' .rating'+type).html(""); ajax_saverating(id ,type, div+''+type); setTimeout(function(){ jQuery('#'+div+' .rating'+type).html(""); }, 1000); } function preview_desc(pid){ jQuery.ajax({ type: "POST", url: ajax_site_url, data: { search_action: "get_description", pid: pid, }, success: function(response) { jQuery('.listingdec-'+pid).html(response + '' ).addClass('card border-top-0 p-4 mb-4 mt-n4 pr-5'); jQuery(document).on('click', '.listingdec-close-'+pid ,function(){ jQuery('.listingdec-'+pid).html('').removeClass('card border-top-0 p-4 mb-4 mt-n4'); }); }, error: function(e) { }, }); } jQuery(document).on('click', '.btn-ppt-coupon, .btn-gocoupon' ,function(){ var couponid = jQuery(this).attr("data-couponid"); var nextlink = jQuery(this).attr("data-nextlink"); var isstore = jQuery(this).attr("data-store"); //alert(nextlink+' -- '+couponid); if(nextlink == ""){ nextlink = "https://promocoderadar.com/store/incogniton"; } setTimeout(function(){ if(isstore){ window.location.href='https://promocoderadar.com/outtax/' + couponid + '/store/'; }else{ window.location.href='https://promocoderadar.com/out/' + couponid + '/link/'; } }, 2000); if(isstore){ var win = window.open( nextlink, '_blank' ); }else{ var win = window.open( nextlink + '?__sid=' + couponid + '', '_blank' ); } this.window.focus(); });