Advertisement
RodrigoOrnelas

Código de bloqueio

May 21st, 2024
758
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //código para desaparecer com botão de compra para cliente que tem email em uma lista negra a partir de uma tabela de consulta
  2. <script>
  3.   var item = {{Blacklist}};
  4.  
  5.   if(item == 'true'){    
  6.     ga('create', 'UA-31304782-2', 'auto');
  7.     ga('send', 'event', 'Blacklist', 'blocked', '{{0.91 - [🔌] [adv_match] [checkout ] visitorContactInfo.0 (em)}}');
  8.    
  9.     var qtd = 0;
  10.     var intervalo = window.setInterval(function() {
  11.       if (qtd < 20) {
  12.         if ($('#payment-data-submit').length > 0) {
  13.           $('#payment-data-submit').remove();
  14.           console.log(qtd);
  15.           qtd = qtd + 1;          
  16.         } else {
  17.           qtd = 20;            
  18.         }
  19.       } else {
  20.         window.setTimeout(function() {
  21.           clearInterval(intervalo);
  22.         }, 50);
  23.       }
  24.  
  25.     }, 500);
  26.   }
  27. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement