jQuery(function ($) { $(window).on('load', function(){ //depende do plugin GeoIP Detection geoip_detect.get_info().then(function(record) { var country_code = record.get_with_locales('country.iso_code', ['en']); var city = record.get_with_locales('city.name', ['en']); var province_code = record.get_with_locales('most_specific_subdivision.iso_code', ['en']); $('body').attr('data-country_code', country_code); $('body').attr('data-province_code', province_code); $('body').attr('data-city', city); }); }); }); jQuery(function ($) { //email obfuscator rnd.today=new Date();rnd.seed=rnd.today.getTime();function rnd() {rnd.seed = (rnd.seed*9301+49297) % 233280;return rnd.seed/(233280.0);};function rand(number) {return Math.ceil(rnd()*number);};function obfuscate(email){address=email;address=address.toLowerCase();coded="";unmixedkey="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";inprogresskey=unmixedkey;mixedkey="";unshuffled=62;for(i=0;i<=62;i++){ranpos=rand(unshuffled)-1;nextchar=inprogresskey.charAt(ranpos);mixedkey+=nextchar;before=inprogresskey.substring(0,ranpos);after=inprogresskey.substring(ranpos+1,unshuffled);inprogresskey=before+after;unshuffled-=1;}cipher=mixedkey;shift=address.length;for(j=0;j<address.length; j++){if(cipher.indexOf(address.charAt(j))==-1){chr=address.charAt(j);coded += address.charAt(j);}else{chr=(cipher.indexOf(address.charAt(j))+shift)%cipher.length;coded+=cipher.charAt(chr);}}console.log('<a href="#" class="obfuscated_email" data-coded="'+coded+'" data-cipher="'+cipher+'">[email protected]')}function decipher(coded,cipher){shift=coded.length;email='';for(i=0;i<coded.length;i++){if(cipher.indexOf(coded.charAt(i))==-1){ltr=coded.charAt(i);email+=(ltr);}else{ltr=(cipher.indexOf(coded.charAt(i))-shift+cipher.length)%cipher.length;email+=(cipher.charAt(ltr));}}return email;}$(document).ready(function(){var coded,cipher,email,link;$("a.obfuscated_email").each(function(index,value){coded=$(this).attr('data-coded');cipher=$(this).attr("data-cipher");email=decipher(coded,cipher);link="mailto:"+email;$(this).attr("href",link);$(this).html(email);});}); $(document).ready(function() { //obfuscate("[email protected]");//insira o email aqui }); }); window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-6999987-12'); (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};m[i].l=1*new Date();for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");ym(92306955, "init", { clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true});(function (d, w, c) {(w[c] = w[c] || []).push(function() {try {w.yaCounter92138010 = new Ya.Metrika2({id:92138010,clickmap:true,trackLinks:true,accurateTrackBounce:true});} catch(e) { }});var n = d.getElementsByTagName("script")[0],s = d.createElement("script"),f = function () { n.parentNode.insertBefore(s, n); };s.type = "text/javascript";s.async = true;s.src = "https://mc.yandex.ru/metrika/tag.js";if (w.opera == "[object Opera]") {d.addEventListener("DOMContentLoaded", f, false);} else { f(); }})(document, window, "yandex_metrika_callbacks2"); !function e(t){for(var n=t+"=",r=document.cookie.split(";"),o=0;o<r.length;o++){for(var i=r[o];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(n))return i.substring(n.length,i.length)}return null}("prefix_views_counter")&function e(t){var n,r;if(!t||(window.XMLHttpRequest&(n=new window.XMLHttpRequest),!n))return!1;r="action="+encodeURIComponent(t);try{n.open("POST","/user.php",!0),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.onload=function(){200===n.status&function e(t,n,r){if(r){var o=new Date;o.setTime(o.getTime()+864e5*r);var i="; expires="+o.toGMTString()}else var i="";document.cookie=t+"=1"+i+"; path=/"}("prefix_views_counter",1,1)},n.send(r)}catch(o){}return!0}('c35e96b38e471b9b17ebfeff5c438539'); (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date(); for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }} k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); ym(92138135, "init", {clickmap:true,trackLinks:true,accurateTrackBounce:true }); 3t382w