{"events_received":1,"messages":[],"fbtrace_id":"A26PINsdPNvsyxmUC9WEXsN"}
MENU
Entrar
Cadastrar
Departamentos
Agrícolas
Automotivos
Cama, Mesa e Banho
Decoração
Eletrodoméstico
EPI e Sinalização
Ferramentas/Máq Elétricas
Iluminação
Jardim e Área Externa
Limpeza
Louças/Metais/Acessórios
Materiais de Construção
Materiais Elétricos
Materiais Hidráulicos
Móveis
Pisos/Revestimentos
Portas/Janelas/Ferragens
Tecnologia/Segurança
Tintas/Complem/Acessórios
Utilidades
Pisos
Pisos
Acabamentos
Porcelanatos
Revestimentos
Acessórios para Pisos e Revestimentos
Argamassas e Rejuntes
Tintas
Tintas
Acessórios para Pintura
Complementos
Impermeabilizantes
Louças e Metais
Acessórios Sanitários
Assentos Santários
Bacias e Caixas
Chuveiros
Cubas, Pias e Balcões
Duchas Higiênicas
Móveis para Banheiro
Registros e Válvulas de Metal
Registros e Válvulas de PVC
Torneiras e Misturadores
Reforma e Construção
Materiais Hidráulicos
Materiais de Construção
Materiais Elétricos
Portas e Janelas
Iluminação
Ferramentas
Ferramentas e Máquinas Elétricas
APP TUPAN
Blog TUPAN
OFERTAS
MENU
Entrar
Cadastrar
Departamentos
Agrícolas
Automotivos
Cama, Mesa e Banho
Decoração
Eletrodoméstico
EPI e Sinalização
Ferramentas/Máq Elétricas
Iluminação
Jardim e Área Externa
Limpeza
Louças/Metais/Acessórios
Materiais de Construção
Materiais Elétricos
Materiais Hidráulicos
Móveis
Pisos/Revestimentos
Portas/Janelas/Ferragens
Tecnologia/Segurança
Tintas/Complem/Acessórios
Utilidades
Pisos
Pisos
Acabamentos
Porcelanatos
Revestimentos
Acessórios para Pisos e Revestimentos
Argamassas e Rejuntes
Tintas
Tintas
Acessórios para Pintura
Complementos
Impermeabilizantes
Louças e Metais
Acessórios Sanitários
Assentos Santários
Bacias e Caixas
Chuveiros
Cubas, Pias e Balcões
Duchas Higiênicas
Móveis para Banheiro
Registros e Válvulas de Metal
Registros e Válvulas de PVC
Torneiras e Misturadores
Reforma e Construção
Materiais Hidráulicos
Materiais de Construção
Materiais Elétricos
Portas e Janelas
Iluminação
Ferramentas
Ferramentas e Máquinas Elétricas
Blog TUPAN
OFERTAS
Compre no PIX e ganhe 5% OFF
Baixe já o APP da Tupan
0
Entrar
|
Cadastrar
Tupan Empresas
Institucional
0
TELEVENDAS
(81) 3229-5555
(81) 4042-1234
Departamentos
Agrícolas
Automotivos
Cama, Mesa e Banho
Decoração
Eletrodoméstico
EPI e Sinalização
Ferramentas/Máq Elétricas
Iluminação
Jardim e Área Externa
Limpeza
Louças/Metais/Acessórios
Materiais de Construção
Materiais Elétricos
Materiais Hidráulicos
Móveis
Pisos/Revestimentos
Portas/Janelas/Ferragens
Tecnologia/Segurança
Tintas/Complem/Acessórios
Utilidades
Pisos
Pisos
Acabamentos
Porcelanatos
Revestimentos
Acessórios para Pisos e Revestimentos
Argamassas e Rejuntes
Tintas
Tintas
Acessórios para Pintura
Complementos
Impermeabilizantes
Louças e Metais
Acessórios Sanitários
Assentos Santários
Bacias e Caixas
Chuveiros
Cubas, Pias e Balcões
Duchas Higiênicas
Móveis para Banheiro
Registros e Válvulas de Metal
Registros e Válvulas de PVC
Torneiras e Misturadores
Reforma e Construção
Materiais Hidráulicos
Materiais de Construção
Materiais Elétricos
Portas e Janelas
Iluminação
Ferramentas
Ferramentas e Máquinas Elétricas
APP TUPAN
Blog TUPAN
SALDÃO
Soluções para você
Navegue por fornecedores
Cadastre-se e receba
ofertas exclusivas
Ao se cadastrar você concorda em receber e-mails promocionais e novidades. Saiba mais na nossa Política de privacidade
Escolha a cidade mais próxima para entrega ou retirada
Tupan Recife PE
Tupan Maceió AL
Tupan Caruaru PE
Tupan Serra Talhada
Para girar a roleta, preencha os dados abaixo:
*Clique aqui para conferir as regras
Seu browser não suporta canvas
Powered by HintUP®
X
X
Regras:
Apenas um giro por compra.
Cupom válido por 5 dias.
Os cupons são de uso único.
Cupom ACHADOS não acumulativo e não se aplica para produtos promocionais.
Cupom 10% não acumulativo para produtos já promocionais.
Cupom 8% não acumulativo para produtos já promocionais.
Cupom 7% não acumulativo para produtos já promocionais.
Cupom 5% não acumulativo para produtos já promocionais.
Cupom R$ 10,00 válidos para as compras acima de R$ 100,00.
Cupom R$ 5,00 válidos para as compras acima de R$ 50,00.
Utilizaremos os seus dados para melhorar a experiência de navegação e para encaminharmos e-mails com informações do site.
","hits":0,"count":0,"blockId":"roleta-1635088382","details":{"active_period":false,"start_date":false,"start_hour":false,"end_date":false,"end_hour":false},"condition":"ok","message":"Everything alright","type":"overlay","route":"empty/overlay"}; window.hintup.env.open_roulette_rules = function() { document.querySelector('.hintup-poptop-wheel-rules-info').style.display = 'block' } window.hintup.env.close_roulette_rules = function(){ document.querySelector('.hintup-poptop-wheel-rules-info').style.display = 'none' } window.hintup.env.verify_email = function(){ var email = document.querySelector('.hintup-poptop-wheel-email').value; var payload = _dsDom().base64_encode('{"route":"verify/field/reports","title_report":"Roleta - dados dos leads","fields":{"e-mail":"'+email+'"},"block_time":"24","pubkey":"'+window.hintup.pubkey+'"}'); var hintup_bypass_cache = 'bypass='+new Date().getTime()+'&'; var dots = '.'; var ctrl_dots = 3; var _interval = setInterval(function(){ if (ctrl_dots == 0) { dots = '.'; ctrl_dots=0; } document.querySelector('.hintup-poptop-wheel-information').innerHTML = 'Aguarde verificando seus dados'+dots; dots += '.'; ctrl_dots--; },300); fetch('//jarvis.hintup.io/v1/utilities/?'+hintup_bypass_cache+'payload='+payload, { method: 'GET', headers: {} }) .then(response => { clearInterval(_interval); document.querySelector('.hintup-poptop-wheel-information').innerHTML = '' if (!response.ok) { throw new Error('Erro na requisição: ' + response.statusText); } return response.json(); }) .then(data => { window.hintup.env.hintup_poptop_wheel.verifying = false; if (data.found === true) { window.hintup.env.hintup_poptop_wheel.coupons = []; for (var i=0;i<12;i++) { window.hintup.env.hintup_poptop_wheel.coupons.push('SÓ VALE UM GIRO'); } document.querySelector('.hintup-poptop-wheel-information').innerHTML = 'Você já girou a roleta anteriormente.'; document.querySelector('.hintup-poptop-wheel-button').setAttribute('disabled','true'); document.querySelector('.hintup-poptop-wheel-button').value = 'Apenas um giro por cliente!'; } else { document.querySelector('.hintup-poptop-wheel-information').innerHTML = 'Autorizado. Boa sorte!'; window.hintup.env.hintup_poptop_wheel.spin(); } }); } window.hintup.env.hintup_poptop_wheel = {}; window.hintup.env.hintup_poptop_wheel.verifying = true; window.hintup.env.hintup_poptop_wheel.start = function() { window.hintup.env.hintup_poptop_wheel._control = 200; window.hintup.env.hintup_poptop_wheel._interval = setInterval(function(){ window.hintup.env.hintup_poptop_wheel.canvas = document.querySelector('.hintup-poptop-wheel'); window.hintup.env.hintup_poptop_wheel.controlEffect(); if (window.hintup.env.hintup_poptop_wheel.canvas != null) { clearInterval(window.hintup.env.hintup_poptop_wheel._interval); window.hintup.env.hintup_poptop_wheel.ctx = window.hintup.env.hintup_poptop_wheel.canvas.getContext('2d'); window.hintup.env.hintup_poptop_wheel.ctx.beginPath(); window.hintup.env.hintup_poptop_wheel.ctx.strokeStyle = "#000000"; window.hintup.env.hintup_poptop_wheel.ctx.lineWidth = 5; window.hintup.env.hintup_poptop_wheel.text_colors = Object.values({"Posi\u00e7\u00e3o 1":"#A00000","Posi\u00e7\u00e3o 10":"#FFFFFF","Posi\u00e7\u00e3o 11":"#A00000","Posi\u00e7\u00e3o 12":"#FFFFFF","Posi\u00e7\u00e3o 2":"#A00000","Posi\u00e7\u00e3o 3":"#FFFFFF","Posi\u00e7\u00e3o 4":"#A00000","Posi\u00e7\u00e3o 5":"#FFFFFF","Posi\u00e7\u00e3o 6":"#A00000","Posi\u00e7\u00e3o 7":"#FFFFFF","Posi\u00e7\u00e3o 8":"#A00000","Posi\u00e7\u00e3o 9":"#FFFFFF"}); window.hintup.env.hintup_poptop_wheel.colors = Object.values({"Posi\u00e7\u00e3o 1":"#FFC212","Posi\u00e7\u00e3o 10":"#FF191F","Posi\u00e7\u00e3o 11":"#FFC212","Posi\u00e7\u00e3o 12":"#FF191F","Posi\u00e7\u00e3o 2":"#FFC212","Posi\u00e7\u00e3o 3":"#FF191F","Posi\u00e7\u00e3o 4":"#FFC212","Posi\u00e7\u00e3o 5":"#FF191F","Posi\u00e7\u00e3o 6":"#FFC212","Posi\u00e7\u00e3o 7":"#FF191F","Posi\u00e7\u00e3o 8":"#FFC212","Posi\u00e7\u00e3o 9":"#FF191F"}); window.hintup.env.hintup_poptop_wheel.text = Object.values({"Posi\u00e7\u00e3o 1":"7% OFF","Posi\u00e7\u00e3o 10":"8% DESCONTO","Posi\u00e7\u00e3o 11":"GANHOU R$10,00","Posi\u00e7\u00e3o 12":"5% OFF","Posi\u00e7\u00e3o 2":"10% OFF","Posi\u00e7\u00e3o 3":"5% OFF","Posi\u00e7\u00e3o 4":"5% OFF","Posi\u00e7\u00e3o 5":"8% OFF","Posi\u00e7\u00e3o 6":"7% OFF","Posi\u00e7\u00e3o 7":"GANHOU R$5,00","Posi\u00e7\u00e3o 8":"5% OFF","Posi\u00e7\u00e3o 9":"5% OFF"}); window.hintup.env.hintup_poptop_wheel.coupons = Object.values({"Posi\u00e7\u00e3o 1":"ROLETA_7","Posi\u00e7\u00e3o 10":"ROLETA_8","Posi\u00e7\u00e3o 11":"GANHOU_10","Posi\u00e7\u00e3o 12":"ROLETA_5","Posi\u00e7\u00e3o 2":"ROLETA_10","Posi\u00e7\u00e3o 3":"ROLETA_5","Posi\u00e7\u00e3o 4":"ACHADOS","Posi\u00e7\u00e3o 5":"ROLETA_8","Posi\u00e7\u00e3o 6":"ROLETA_7","Posi\u00e7\u00e3o 7":"GANHOU_5","Posi\u00e7\u00e3o 8":"ACHADOS","Posi\u00e7\u00e3o 9":"ROLETA_5"}); window.hintup.env.hintup_poptop_wheel.border_color = '#FF7800'; window.hintup.env.hintup_poptop_wheel.arrow = '#FFFFFF' window.hintup.env.hintup_poptop_wheel.insideRadiusColor = '#b5272e' window.hintup.env.hintup_poptop_wheel.startAngle = 0; window.hintup.env.hintup_poptop_wheel.arc = Math.PI / 6; window.hintup.env.hintup_poptop_wheel.spinTimeout = null; window.hintup.env.hintup_poptop_wheel.spinArcStart = 10; window.hintup.env.hintup_poptop_wheel.spinTime = 0; window.hintup.env.hintup_poptop_wheel.spinTimeTotal = Math.floor(Math.random() * (40000 - 20000)) + 20000; window.hintup.env.hintup_poptop_wheel.ctx; window.hintup.env.hintup_poptop_wheel.drawRouletteWheel(); document.querySelector('.hintup-poptop-wheel-button').onclick = function() { const re = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; var name = document.querySelector('.hintup-poptop-wheel-name').value; var email = document.querySelector('.hintup-poptop-wheel-email').value; var whats = document.querySelector('.hintup-poptop-wheel-whats').value; var validEmail = re.test(String(email).toLowerCase()); document.querySelector('.hintup-poptop-wheel-cupom').style.background = 'transparent'; document.querySelector('.hintup-poptop-wheel-cupom').value = ''; if (name.trim().length < 3) { document.querySelector('.hintup-poptop-wheel-name').style.background = '#ffa7a7'; document.querySelector('.hintup-poptop-wheel-name').setAttribute('placeholder','Por favor digite seu nome'); return false; } if (validEmail === false) { document.querySelector('.hintup-poptop-wheel-email').style.background = '#ffa7a7'; document.querySelector('.hintup-poptop-wheel-email').setAttribute('placeholder','Por favor digite seu email'); return false; } if (whats.trim().length < 10) { document.querySelector('.hintup-poptop-wheel-whats').style.background = '#ffa7a7'; document.querySelector('.hintup-poptop-wheel-whats').setAttribute('placeholder','Por favor digite seu whatsapp'); return false; } window.hintup.env.verify_email(); document.querySelector('.hintup-poptop-wheel-button').setAttribute('onclick','window.hintup.env.hintup_poptop_wheel_copy()'); } } window.hintup.env.hintup_poptop_wheel._control--; if (window.hintup.env.hintup_poptop_wheel._control <=0) clearInterval(window.hintup.env.hintup_poptop_wheel._interval); },100); } window.hintup.env.hintup_poptop_wheel.drawRouletteWheel = function() { // var canvas = document.("hintup_poptop_wheel"); if (window.hintup.env.hintup_poptop_wheel.canvas.getContext) { var outsideRadius = 240; var textRadius = 150; var insideRadius = 30; window.hintup.env.hintup_poptop_wheel.ctx = window.hintup.env.hintup_poptop_wheel.canvas.getContext("2d"); window.hintup.env.hintup_poptop_wheel.ctx.clearRect(0,0,550,550); window.hintup.env.hintup_poptop_wheel.ctx.strokeStyle = "#fff"; window.hintup.env.hintup_poptop_wheel.ctx.lineWidth = 2; // window.hintup.env.hintup_poptop_wheel.ctx.arc(270, 270, insideRadius, 0, 2 * Math.PI); // window.hintup.env.hintup_poptop_wheel.ctx.fillStyle = window.hintup.env.hintup_poptop_wheel.insideRadiusColor; // window.hintup.env.hintup_poptop_wheel.ctx.fill(); window.hintup.env.hintup_poptop_wheel.ctx.shadowOffsetX = 0; window.hintup.env.hintup_poptop_wheel.ctx.shadowOffsetY = 0; window.hintup.env.hintup_poptop_wheel.ctx.shadowColor = ''; window.hintup.env.hintup_poptop_wheel.ctx.shadowBlur = 0; window.hintup.env.hintup_poptop_wheel.ctx.font = 'bold 18px sans-serif'; for(var i = 0; i < 12; i++) { var angle = window.hintup.env.hintup_poptop_wheel.startAngle + i * window.hintup.env.hintup_poptop_wheel.arc; window.hintup.env.hintup_poptop_wheel.ctx.fillStyle = window.hintup.env.hintup_poptop_wheel.colors[i]; window.hintup.env.hintup_poptop_wheel.ctx.beginPath(); window.hintup.env.hintup_poptop_wheel.ctx.arc(270, 270, outsideRadius, angle, angle + window.hintup.env.hintup_poptop_wheel.arc, false); window.hintup.env.hintup_poptop_wheel.ctx.arc(270, 270, insideRadius, angle + window.hintup.env.hintup_poptop_wheel.arc, angle, true); window.hintup.env.hintup_poptop_wheel.ctx.stroke(); window.hintup.env.hintup_poptop_wheel.ctx.fill(); window.hintup.env.hintup_poptop_wheel.ctx.save(); window.hintup.env.hintup_poptop_wheel.ctx.fillStyle = "white"; window.hintup.env.hintup_poptop_wheel.ctx.translate(270 + Math.cos(angle + window.hintup.env.hintup_poptop_wheel.arc / 2) * textRadius, 270 + Math.sin(angle + window.hintup.env.hintup_poptop_wheel.arc / 2) * textRadius); window.hintup.env.hintup_poptop_wheel.ctx.rotate(angle + window.hintup.env.hintup_poptop_wheel.arc / 23 + Math.PI / 23); window.hintup.env.hintup_poptop_wheel.ctx.stroke(); var text = window.hintup.env.hintup_poptop_wheel.text[i]; var color = window.hintup.env.hintup_poptop_wheel.text_colors[i]; window.hintup.env.hintup_poptop_wheel.ctx.fillStyle = color; window.hintup.env.hintup_poptop_wheel.ctx.rotate(144.6); window.hintup.env.hintup_poptop_wheel.ctx.fillText(text, - window.hintup.env.hintup_poptop_wheel.ctx.measureText(text).width / 2, 5); window.hintup.env.hintup_poptop_wheel.ctx.restore(); } window.hintup.env.hintup_poptop_wheel.ctx.beginPath(); window.hintup.env.hintup_poptop_wheel.ctx.arc(270,270,245,0*Math.PI,2*Math.PI, false); window.hintup.env.hintup_poptop_wheel.ctx.arc(270,270,230,0*Math.PI,2*Math.PI, true); window.hintup.env.hintup_poptop_wheel.ctx.strokeStyle = window.hintup.env.hintup_poptop_wheel.border_color; window.hintup.env.hintup_poptop_wheel.ctx.lineWidth = 1; window.hintup.env.hintup_poptop_wheel.ctx.stroke(); window.hintup.env.hintup_poptop_wheel.ctx.shadowOffsetX = 7; window.hintup.env.hintup_poptop_wheel.ctx.shadowOffsetY = 7; window.hintup.env.hintup_poptop_wheel.ctx.shadowColor = '#000'; window.hintup.env.hintup_poptop_wheel.ctx.shadowBlur = 13; window.hintup.env.hintup_poptop_wheel.ctx.fillStyle = window.hintup.env.hintup_poptop_wheel.border_color; window.hintup.env.hintup_poptop_wheel.ctx.fill(); window.hintup.env.hintup_poptop_wheel.ctx.closePath(); //Arrow window.hintup.env.hintup_poptop_wheel.ctx.beginPath(); window.hintup.env.hintup_poptop_wheel.ctx.moveTo(470 + 15, 240 + 20); window.hintup.env.hintup_poptop_wheel.ctx.lineTo(470 + 45, 240 + 10); window.hintup.env.hintup_poptop_wheel.ctx.lineTo(470 + 55, 240 + 20); window.hintup.env.hintup_poptop_wheel.ctx.lineTo(470 + 45, 240 + 30); window.hintup.env.hintup_poptop_wheel.ctx.lineTo(470 + 15, 240 + 20); // window.hintup.env.hintup_poptop_wheel.ctx.moveTo(270 + (outsideRadius + 15), 270 + 6); // window.hintup.env.hintup_poptop_wheel.ctx.lineTo(270 + (outsideRadius + 15), 270 - 6); // window.hintup.env.hintup_poptop_wheel.ctx.lineTo(270 + (outsideRadius - 15), 270 - 6); // window.hintup.env.hintup_poptop_wheel.ctx.lineTo(270 + (outsideRadius - 15), 270 - 15); // window.hintup.env.hintup_poptop_wheel.ctx.lineTo(270 + (outsideRadius - 33), 270 - 0); // window.hintup.env.hintup_poptop_wheel.ctx.lineTo(270 + (outsideRadius - 15), 270 + 15); // window.hintup.env.hintup_poptop_wheel.ctx.lineTo(270 + (outsideRadius - 15), 270 + 6); // window.hintup.env.hintup_poptop_wheel.ctx.lineTo(270 + (outsideRadius + 15), 270 + 6); window.hintup.env.hintup_poptop_wheel.ctx.strokeStyle = window.hintup.env.hintup_poptop_wheel.arrow; window.hintup.env.hintup_poptop_wheel.ctx.lineWidth = 1; window.hintup.env.hintup_poptop_wheel.ctx.stroke(); window.hintup.env.hintup_poptop_wheel.ctx.shadowOffsetX = 2; window.hintup.env.hintup_poptop_wheel.ctx.shadowOffsetY = 2; window.hintup.env.hintup_poptop_wheel.ctx.shadowColor = '#000'; window.hintup.env.hintup_poptop_wheel.ctx.shadowBlur = 5; window.hintup.env.hintup_poptop_wheel.ctx.fillStyle = window.hintup.env.hintup_poptop_wheel.arrow; window.hintup.env.hintup_poptop_wheel.ctx.fill(); window.hintup.env.hintup_poptop_wheel.ctx.closePath(); window.hintup.env.hintup_poptop_wheel.ctx.save; } } window.hintup.env.hintup_poptop_wheel.rotateWheel = function() { window.hintup.env.hintup_poptop_wheel.spinTime += 20; if(window.hintup.env.hintup_poptop_wheel.spinTime >= window.hintup.env.hintup_poptop_wheel.spinTimeTotal) { window.hintup.env.hintup_poptop_wheel.stop_rotateWheel(); return; } var spinAngle = window.hintup.env.hintup_poptop_wheel.spinAngleStart - window.hintup.env.hintup_poptop_wheel.easeOut(window.hintup.env.hintup_poptop_wheel.spinTime, 0, window.hintup.env.hintup_poptop_wheel.spinAngleStart, window.hintup.env.hintup_poptop_wheel.spinTimeTotal); window.hintup.env.hintup_poptop_wheel.startAngle += (spinAngle * Math.PI / 180); window.hintup.env.hintup_poptop_wheel.drawRouletteWheel(); window.hintup.env.hintup_poptop_wheel.spinTimeout = setTimeout('window.hintup.env.hintup_poptop_wheel.rotateWheel()', 30); } window.hintup.env.hintup_poptop_wheel.stop_rotateWheel = function() { clearTimeout(window.hintup.env.hintup_poptop_wheel.spinTimeout); var degrees = window.hintup.env.hintup_poptop_wheel.startAngle * 180 / Math.PI + 0; //The last parameter (+ 0) is about position of arrow var arcd = window.hintup.env.hintup_poptop_wheel.arc * 180 / Math.PI; var index = Math.floor((360 - degrees % 360) / arcd); window.hintup.env.hintup_poptop_wheel.ctx.save(); window.hintup.env.hintup_poptop_wheel.ctx.font = 'bold 32px sans-serif'; window.hintup.env.hintup_poptop_wheel.ctx.shadowOffsetX = 2; window.hintup.env.hintup_poptop_wheel.ctx.shadowOffsetY = 2; window.hintup.env.hintup_poptop_wheel.ctx.shadowBlur = 2; window.hintup.env.hintup_poptop_wheel.ctx.shadowColor = "black"; var text = window.hintup.env.hintup_poptop_wheel.coupons[index]; document.querySelector('.hintup-poptop-wheel-cupom').style.background = '#000000'; document.querySelector('.hintup-poptop-wheel-cupom').value = text; document.querySelector('.hintup-poptop-wheel-input').value = text; document.querySelector('.hintup-poptop-wheel-button').value ='Você Ganhou! Copie seu Cupom!'; window.hintup.env.hintup_poptop_wheel.ctx.restore(); var coupon = document.querySelector('.hintup-poptop-wheel-cupom').value; var name = document.querySelector('.hintup-poptop-wheel-name').value; var email = document.querySelector('.hintup-poptop-wheel-email').value; var whats = document.querySelector('.hintup-poptop-wheel-whats').value; var details = { 'nome':name, 'e-mail':email, 'whatsapp':whats, 'cupom':coupon } var details_sort = 'nome,e-mail,whatsapp,cupom' window.hintup.utilities.capture_report('Roleta - dados dos leads',details,details_sort); } window.hintup.env.hintup_poptop_wheel.easeOut = function (t, b, c, d) { var ts = (t/=d)*t; var tc = ts*t; return b+c*(tc + -3*ts + 3*t); } window.hintup.env.hintup_poptop_wheel.spin = function() { window.hintup.env.hintup_poptop_wheel.spinAngleStart = Math.random() * 10 + 10; window.hintup.env.hintup_poptop_wheel.spinTime = 0; window.hintup.env.hintup_poptop_wheel.spinTimeTotal = Math.random() * 3 + 4 * 1000; window.hintup.env.hintup_poptop_wheel.rotateWheel(); } window.hintup.env.hintup_poptop_wheel.controlEffect = function(){ window.hintup.env.hintup_poptop_wheel._interval2 = setInterval(function(){ if (document.querySelector('.hintup-poptop-wheel-container').parentElement.style.visibility == 'visible') { clearInterval(window.hintup.env.hintup_poptop_wheel._interval2); document.querySelector('.hintup-poptop-wheel-container').classList.add("hintup-poptop-wheel-container-move"); window.hintup.env.hintup_poptop_wheel._interval3 = setInterval(function(){ if (document.querySelector('.hintup-poptop-wheel-container').parentElement.style.visibility == 'hidden') { clearInterval(window.hintup.env.hintup_poptop_wheel._interval3); window.hintup.env.hintup_poptop_wheel.controlEffect(); } },100); } },100); } window.hintup.env.hintup_poptop_wheel.start(); /*COPY CUPOM Progressbar*/ window.hintup.env.hintup_poptop_wheel_copy = function() { var copyText = document.querySelector(".hintup-poptop-wheel-input"); copyText.select(); copyText.setSelectionRange(0, 99999); document.execCommand("copy"); document.querySelector('.hintup-poptop-wheel-button').value ='Cupom Copiado!'; } // Movendo o elemento hintup_logo_brand para o elemento pai hintup-poptop-wheel // var _success_times = 500; var _success_interval = setInterval(function(){ if (document.querySelector('.hintup-poptop-wheel') !== null) { clearInterval(_success_interval); //mask for whatstapp field 15 chars document.querySelector('.hintup-poptop-wheel-whats').onkeyup = function(){ setTimeout(function(){ v = document.querySelector('.hintup-poptop-wheel-whats').value v=v.replace(/\D/g,""); //Remove tudo o que não é dígito v=v.replace(/^(\d{2})(\d)/g,"($1) $2"); //Coloca parênteses em volta dos dois primeiros dígitos v=v.replace(/(\d)(\d{4})$/,"$1-$2"); //Coloca hífen entre o quarto e o quinto dígitos document.querySelector('.hintup-poptop-wheel-whats').value = v; },1) } } _success_times--; if (_success_times == 0) clearInterval(_success_interval); },100); })();