var ff_inputs = { name: ['nome'] }; var ff_name = document.getElementById('nome'); if(ff_name && ff_name.value) { ffjs.vuser('name', ff_name.value); } if(window.location.href.indexOf('xpg.com.br') > -1 ){ //&& !ffjs.getCookie('ffid_ads') var xpto = Math.floor(Math.random() * 10) + 1; var xframe = 'https://static.fulfilling.io/stickybar.html'; var ffidWidth= 100; if(xpto>11){ xframe = 'https://static.fulfilling.io/stickybar-promo.html'; ffidWidth = 150; } ff_iframe = document.createElement('IFRAME'); ff_iframe.src = xframe; ff_iframe.id='ffid_ads' ff_iframe.style ="width:100%; height:"+ffidWidth+"px;bottom: 0px;z-index: 100000000;position: fixed; "; ff_iframe.frameBorder = 0; document.body.appendChild(ff_iframe); // ffjs.setCookie('ffid_ads',1,1); setTimeout(function(){ document.getElementById('ffid_ads').remove(); }, 20000); }