var breeze_prefetch = {"local_url":"https://prfernandobranco.com","ignore_remote_prefetch":"1","ignore_list":["wp-admin","wp-login.php"]};
//# sourceURL=breeze-prefetch-js-extra
https://prfernandobranco.com/wp-content/plugins/breeze/assets/js/js-front-end/breeze-prefetch-links.min.js
https://prfernandobranco.com/wp-includes/js/jquery/jquery.min.js
https://prfernandobranco.com/wp-includes/js/jquery/jquery-migrate.min.js
window.rocketSplitTest = { 'config': { 'page': { 'base': { 'protocol': 'https://', 'host': 'prfernandobranco.com', 'path': '/' } } } };
window.rocketSplitTest.cookie = { };
window.rocketSplitTest.cookie.create = function (name, value, days) {
var date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
document.cookie = name + "=" + value + "; expires=" + date.toGMTString() + "; path=" + window.rocketSplitTest.config.page.base.path;
};
window.rocketSplitTest.cookie.read = function (name) {
var parts = ("; " + document.cookie).split("; " + name + "=");
return (parts.length === 2) ? parts.pop().split(";").shift() : null;
};
window.rocketSplitTest.conversion = { };
window.rocketSplitTest.helpers = { };
window.rocketSplitTest.tests = [];
window.rocketSplitTest.conversion.testIds = [];
window.rocketSplitTest.distributeType = "random";
window.rocketSplitTest.helpers.getRequest = function (path, callback) {
var urlBase = window.rocketSplitTest.config.page.base;
path = path.charAt(0) === "/" ? path.substr(1) : path;
var xhr = new XMLHttpRequest();
xhr.open('GET', urlBase.protocol + urlBase.host + urlBase.path + path + "&rnd=" + Math.floor(Math.random() * 1000000000000));
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.onreadystatechange = function () {
if (xhr.readyState !== 4) {
return;
}
if (xhr.status >= 200 && xhr.status < 300) {
if (typeof callback !== 'undefined' && callback != null) {
callback(JSON.parse(xhr.responseText));
}
}
};
xhr.send();
}
window.rocketSplitTest.helpers.postRequest = function (path, data, callback) {
var urlBase = window.rocketSplitTest.config.page.base;
path = path.charAt(0) === "/" ? path.substr(1) : path;
var xhr = new XMLHttpRequest();
xhr.open('POST', urlBase.protocol + urlBase.host + urlBase.path + path + "?rnd=" + Math.floor(Math.random() * 1000000000000));
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.onreadystatechange = function () {
if (xhr.readyState !== 4) {
return;
}
if (xhr.status >= 200 && xhr.status < 300) {
if (typeof callback !== 'undefined' && callback != null) {
callback(JSON.parse(xhr.responseText));
}
}
};
xhr.send(encodeURI(data));
};
window.rocketSplitTest.setInnerHtml = function(elm, html) {
elm.innerHTML = html;
var scripts = elm.getElementsByTagName("script");
// If we don't clone the results then "scripts"
// will actually update live as we insert the new
// tags, and we'll get caught in an endless loop
var scriptsClone = [];
for (var i = 0; i < scripts.length; i++) {
scriptsClone.push(scripts[i]);
}
for (var i = 0; i < scriptsClone.length; i++) {
var currentScript = scriptsClone[i];
var s = document.createElement("script");
// Copy all the attributes from the original script
for (var j = 0; j < currentScript.attributes.length; j++) {
var a = currentScript.attributes[j];
s.setAttribute(a.name, a.value);
}
s.appendChild(document.createTextNode(currentScript.innerHTML));
currentScript.parentNode.replaceChild(s, currentScript);
}
}
window.rocketSplitTest.addActiveTestData = function (test) {
var cookieName = "elementor_split_test_" + test.id + "_variation";
var cookieValue = window.rocketSplitTest.cookie.read(cookieName);
if (cookieValue != null) {
for (var j = 0; j < test.variations.length; j++) {
if (test.variations[j].id === parseInt(cookieValue)) {
test.variations[j].active = true;
break;
}
}
return test;
}
if (window.rocketSplitTest.distributeType === "database") {
test.variantExamination = true;
var url = "/wp-json/splitTestForElementor/v1/tests/getVariationToDisplay/?testId=" + test.id;
window.rocketSplitTest.helpers.getRequest(url, function (response) {
for (var k = 0; k < test.variations.length; k++) {
console.log("process", test.variations[k], response);
if (test.variations[k].id === response.variant.id) {
test.variations[k].active = true;
window.rocketSplitTest.cookie.create(cookieName, test.variations[k].id, 365);
var views = 'views=' + JSON.stringify([{testId: test.id, variationId: test.variations[k].id}]);
window.rocketSplitTest.ajax.post('/wp-json/splitTestForElementor/v1/tracking/view/store-multi/', views, function (data) {
window.rocketSplitTest.cookie.create('elementor_split_test_client_id', data.clientId, 365);
});
test.variantExamination = false;
} else {
test.variations[k].active = false;
}
}
});
} else {
var random = Math.floor(Math.random() * 100) + 1;
var counter = 0;
for (var k = 0; k < test.variations.length; k++) {
var variation = test.variations[k];
if (random > counter && random <= counter + variation.percentage) {
test.variations[k].active = true;
window.rocketSplitTest.cookie.create(cookieName, variation.id, 365);
} else {
test.variations[k].active = false;
}
counter += variation.percentage;
}
test.variantExamination = false;
}
return test;
};
window.rocketSplitTest.isActiveVariation = function(testId, variationId) {
for (var i = 0; i < window.rocketSplitTest.tests.length; i++) {
var test = window.rocketSplitTest.tests[i];
if (test.id === testId) {
for (var k = 0; k < test.variations.length; k++) {
var variation = test.variations[k];
if (variation.id === variationId){
return variation.active;
}
}
}
}
return false;
};
window.rocketSplitTest.addTest = function (test) {
for (var i = 0; i < window.rocketSplitTest.tests.length; i++) {
if (window.rocketSplitTest.tests[i].id === test.id) {
return;
}
}
window.rocketSplitTest.tests.push(window.rocketSplitTest.addActiveTestData(test));
};
window.rocketSplitTest.getTestById = function (testId) {
for (var i = 0; i < window.rocketSplitTest.tests.length; i++) {
var test = window.rocketSplitTest.tests[i];
if (test.id === testId) {
return test;
}
}
return null;
};
for (var i = 0; i < window.rocketSplitTest.tests.length; i++) {
window.rocketSplitTest.tests[i] = window.rocketSplitTest.addActiveTestData(window.rocketSplitTest.tests[i]);
}
window.rocketSplitTest.maybeRenderTestVariant = function (testId, variantId, content, containerId) {
if (window.rocketSplitTest.distributeType === "database") {
var test = window.rocketSplitTest.getTestById(testId);
if (test == null) {
setTimeout(function () { window.rocketSplitTest.maybeRenderTestVariant(testId, variantId, content, containerId); }, 500);
return;
}
if (test.variantExamination) {
setTimeout(function () { window.rocketSplitTest.maybeRenderTestVariant(testId, variantId, content, containerId); }, 500);
return;
}
if (!window.window.rocketSplitTest.isActiveVariation(testId, variantId)) {
document.getElementById(containerId).parentElement.innerHTML = "";
}
window.rocketSplitTest.setInnerHtml(document.getElementById(containerId).parentElement, content);
} else {
if (!window.window.rocketSplitTest.isActiveVariation(testId, variantId)) {
document.getElementById(containerId).parentElement.innerHTML = "";
}
window.rocketSplitTest.setInnerHtml(document.getElementById(containerId).parentElement, content);
}
}
jQuery(function(){
var params_get = window.location.search;
var params_button = jQuery('.get_params');
if(params_button.length){
params_button.each(function(){
var button_link = jQuery(this).find('a').attr('href');
if(button_link.indexOf('?') > -1){
jQuery(this).find('a').attr('href', button_link+params_get.replace('?', '&'));
}else{
jQuery(this).find('a').attr('href', button_link+params_get);
}
});
}
});
Ir para o conteúdo
const lazyloadRunObserver = () => {
const lazyloadBackgrounds = document.querySelectorAll( `.e-con.e-parent:not(.e-lazyloaded)` );
const lazyloadBackgroundObserver = new IntersectionObserver( ( entries ) => {
entries.forEach( ( entry ) => {
if ( entry.isIntersecting ) {
let lazyloadBackground = entry.target;
if( lazyloadBackground ) {
lazyloadBackground.classList.add( 'e-lazyloaded' );
}
lazyloadBackgroundObserver.unobserve( entry.target );
}
});
}, { rootMargin: '200px 0px 200px 0px' } );
lazyloadBackgrounds.forEach( ( lazyloadBackground ) => {
lazyloadBackgroundObserver.observe( lazyloadBackground );
} );
};
const events = [
'DOMContentLoaded',
'elementor/lazyload/observe',
];
events.forEach( ( event ) => {
document.addEventListener( event, lazyloadRunObserver );
} );
https://prfernandobranco.com/wp-content/plugins/split-test-for-elementor-pro/public/js/cache-tracking.js
https://prfernandobranco.com/wp-content/themes/hello-elementor/assets/js/hello-frontend.js
var localize = {"ajaxurl":"https://prfernandobranco.com/wp-admin/admin-ajax.php","nonce":"e73450a945","i18n":{"added":"Adicionado ","compare":"Comparar","loading":"Carregando..."},"eael_translate_text":{"required_text":"\u00e9 um campo obrigat\u00f3rio","invalid_text":"Inv\u00e1lido","billing_text":"Faturamento","shipping_text":"Envio","fg_mfp_counter_text":"de"},"page_permalink":"","cart_redirectition":"","cart_page_url":"","el_breakpoints":{"mobile":{"label":"Dispositivos m\u00f3veis no modo retrato","value":767,"default_value":767,"direction":"max","is_enabled":true},"mobile_extra":{"label":"Dispositivos m\u00f3veis no modo paisagem","value":880,"default_value":880,"direction":"max","is_enabled":false},"tablet":{"label":"Tablet no modo retrato","value":1024,"default_value":1024,"direction":"max","is_enabled":true},"tablet_extra":{"label":"Tablet no modo paisagem","value":1200,"default_value":1200,"direction":"max","is_enabled":false},"laptop":{"label":"Notebook","value":1366,"default_value":1366,"direction":"max","is_enabled":true},"widescreen":{"label":"Tela ampla (widescreen)","value":2400,"default_value":2400,"direction":"min","is_enabled":false}}};
//# sourceURL=eael-general-js-extra
https://prfernandobranco.com/wp-content/plugins/essential-addons-for-elementor-lite/assets/front-end/js/view/general.min.js