window.advanced_ads_ready=function(e,a){a=a||"complete";var d=function(e){return"interactive"===a?"loading"!==e:"complete"===e};d(document.readyState)?e():document.addEventListener("readystatechange",(function(a){d(a.target.readyState)&e()}),{once:"interactive"===a})},window.advanced_ads_ready_queue=window.advanced_ads_ready_queue||[];
if (jQuery & typeof $ == 'undefined') {
var $ = jQuery;
}
var dataLayer_content = {"pagePostType":"post","pagePostType2":"category-post","pageCategory":["veiculos"]};
dataLayer.push( dataLayer_content );
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-KCHHR6J');
var BunyadSchemeKey = 'bunyad-scheme';
(() => {
const d = document.documentElement;
const c = d.classList;
var scheme = localStorage.getItem(BunyadSchemeKey);
if (scheme) {
d.dataset.origClass = c;
scheme === 'dark' ? c.remove('s-light', 'site-s-light') : c.remove('s-dark', 'site-s-dark');
c.add('site-s-' + scheme, 's-' + scheme);
}
})();
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-KCHHR6J');
window.googletag = window.googletag || {cmd: []};
googletag.cmd.push(function() {
googletag.defineSlot('/109525145/banner-conteudo-paragrafo', [[728, 90], [300, 250]], 'div-gpt-ad-1730236560984-0').addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
window.googletag = window.googletag || {cmd: []};
googletag.cmd.push(function() {
googletag.defineSlot('/109525145/home-pordentrodeminas-top', [[300, 250], [970, 150], [320, 50], [970, 250], [728, 90]], 'div-gpt-ad-1730502921705-0').addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
window.googletag = window.googletag || {cmd: []};
var REFRESH_KEY = 'refresh';
var REFRESH_VALUE = 'true';
var SECONDS_TO_WAIT_AFTER_VIEWABILITY = 30;
googletag.cmd.push(function() {
googletag.defineSlot('/109525145/retangulomedio-pordentrodeminas-300x250', [300, 250], 'div-gpt-ad-1701821495202-0').addService(googletag.pubads());
googletag.enableServices();
});
googletag.pubads().addEventListener('impressionViewable', function (event) {
var slot = event.slot;
if (slot.getTargeting(REFRESH_KEY).indexOf(REFRESH_VALUE) > -1) {
slot.setTargeting('refreshed_slot', 'true');
setTimeout(function () {
googletag.pubads().refresh([slot]);
}, SECONDS_TO_WAIT_AFTER_VIEWABILITY * 1000);
}
});
var _comscore = _comscore || [];
_comscore.push({
c1: "2", c2: "39684952",
options: {
enableFirstPartyCookie: true,
byConsentRequirementFor1PCookie: true
}
});
(function () {
var s = document.createElement("script"), el = document.getElementsByTagName("script")[0]; s.async = true;
s.src = "https://sb.scorecardresearch.com/cs/39684952/beacon.js";
el.parentNode.insertBefore(s, el);
})();
var _comscore = _comscore || [];
_comscore.push({ c1: "2", c2: "39684952" , options: { enableFirstPartyCookie: "true" } });
(function() {
var s = document.createElement("script"), el = document.getElementsByTagName("script")[0]; s.async = true;
s.src = "https://sb.scorecardresearch.com/cs/39684952/beacon.js";
el.parentNode.insertBefore(s, el);
})();
window._taboola = window._taboola || [];
_taboola.push({article:'auto'});
!function (e, f, u, i) {
if (!document.getElementById(i)){
e.async = 1;
e.src = u;
e.id = i;
f.parentNode.insertBefore(e, f);
}
}(document.createElement('script'),
document.getElementsByTagName('script')[0],
'//cdn.taboola.com/libtrc/pordentrodeminas-publisher/loader.js',
'tb_loader_script');
if(window.performance & typeof window.performance.mark == 'function')
{window.performance.mark('tbl_ic');}
window._taboola = window._taboola || [];
_taboola.push({flush: true});
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-11465384013');
gtag('event', 'conversion', {'send_to': 'AW-11465384013/-h0lCK7Z74UZEM3Aj9sq'});
{
"vars" : {
"gtag_id": "<GA_MEASUREMENT_ID>",
"config" : {
"UA-71812546-1": { "groups": "default" }
}
}
}
{
"vars": {
"GA4_MEASUREMENT_ID": "G-Q540ZX4FDN",
"GA4_ENDPOINT_HOSTNAME": "",
"GOOGLE_CONSENT_ENABLED": false,
"WEBVITALS_TRACKING": false,
"PERFORMANCE_TIMING_TRACKING": false,
"DEFAULT_PAGEVIEW_ENABLED": true,
"SEND_DOUBLECLICK_BEACON": false,
"DISABLE_REGIONAL_DATA_COLLECTION": false,
"ENHANCED_MEASUREMENT_SCROLL": false
}
}
{
"vars": {
"GA4_MEASUREMENT_ID": "G-Y3BGRRKSR8",
"GA4_ENDPOINT_HOSTNAME": "",
"GOOGLE_CONSENT_ENABLED": false,
"WEBVITALS_TRACKING": false,
"PERFORMANCE_TIMING_TRACKING": false,
"DEFAULT_PAGEVIEW_ENABLED": true,
"SEND_DOUBLECLICK_BEACON": false,
"DISABLE_REGIONAL_DATA_COLLECTION": false,
"ENHANCED_MEASUREMENT_SCROLL": false
}
}
!function(){"use strict";function e(e){var t=!(arguments.length>1&void 0!==arguments[1])||arguments[1],c=document.createElement("script");c.src=e,t?c.type="module":(c.async=!0,c.type="text/javascript",c.setAttribute("nomodule",""));var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(c,n)}!function(t,c){!function(t,c,n){var a,o,r;n.Id=c,null!==(a=t.marfeel)&void 0!==a||(t.marfeel={}),null!==(o=(r=t.marfeel).cmd)&&void 0!==o||(r.cmd=[]),t.marfeel.config=n;var i="https://sdk.mrf.io/statics";e("".concat(i,"/marfeel-sdk.js?id=").concat(c),!0),e("".concat(i,"/marfeel-sdk.es5.js?id=").concat(c),!1)}(t,c,arguments.length>2&void 0!==arguments[2]?arguments[2]:{})}(window,4570,{} /* Config */)}();
{
"vars" : {
"Id": "4570"
}
}
(function() {function signalGooglefresent() {if (!window.frames['googlefresent']) {if (document.body) {const iframe = document.createElement('iframe'); iframe.style = 'width: 0; height: 0; border: none; z-index: -1000; left: -1000px; top: -1000px;'; iframe.style.display = 'none'; iframe.name = 'googlefresent'; document.body.appendChild(iframe);} else {setTimeout(signalGooglefresent, 0);}}}signalGooglefresent();})();
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:3746679,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-Q540ZX4FDN');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-Q540ZX4FDN');
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','','ga');
ga('create', 'UA-71812546-1', 'auto');
ga('create', 'UA-71812546-3', 'auto', {'name': 'GrupoConteudo'});
ga('send', 'pageview', location.pathname);
ga('GrupoConteudo.send', 'pageview');
// Get the style tag element
let criticalStyleTag = document.getElementById('berqwp-critical-css');
// Extract the CSS content from the style tag
const cssContent = criticalStyleTag.textContent;
// Regular expression to match CSS rules
const ruleRegex = /([^{}]+)\{([^{}]+)\}/g;
// Regular expression to match background or background-image properties with url() function
const backgroundRegex = /(?:background(?:-image)?:[^;]*?url\([^)]*\))/g;
// Array to store the extracted CSS properties
var extractedProperties = [];
// Match CSS rules in the CSS content
let ruleMatch;
while ((ruleMatch = ruleRegex.exec(cssContent)) !== null) {
const cssBlockSelector = ruleMatch[1].trim();
const cssProperties = ruleMatch[2];
// Match background properties in the CSS properties
let backgroundMatch;
while ((backgroundMatch = backgroundRegex.exec(cssProperties)) !== null) {
let prop_value = backgroundMatch[0].trim().replace('background:', 'background-image:');
extractedProperties.push({ cssBlockSelector, backgroundValue: prop_value });
/* extractedProperties.push({ cssBlockSelector, backgroundValue: backgroundMatch[0].trim() }); */
}
}
// console.log(extractedProperties);
// Iterate through the extracted properties and modify background images directly in the style tag
let modifiedCssContent = cssContent;
let skipebgimg = 3;
let interationcount = 0;
extractedProperties.forEach(property => {
interationcount = interationcount + 1;
if (interationcount <= skipebgimg) {
return;
}
// Replace the original background value with 'none'
let bg_img_hash = btoa(property.backgroundValue);
const regex = /url\([^)]*\)/;
// const regex = /url\(([^)]*)\)/; // fix bg image error
// Replace the URL function with the new URL
/* const prop_value = property.backgroundValue.replace(regex, 'urlbgberq(#'+bg_img_hash+')'); */
// const prop_value = property.backgroundValue.replace(regex, 'url(data:image/svg+xml;base64,'+bg_img_hash+')');
const prop_value = property.backgroundValue.replace(regex, 'unset');
// let l_exists = l_ele.some(element => property.backgroundValue.includes(element));
let l_exists = l_ele.some(element => element & element !== '1' && property.backgroundValue.includes(element));
if (l_exists) {
modifiedCssContent = modifiedCssContent.replace(property.backgroundValue, property.backgroundValue);
// modifiedCssContent = modifiedCssContent.replace(property.backgroundValue, property.backgroundValue+' !important;');
// modifiedCssContent = modifiedCssContent.replace(property.backgroundValue, prop_value);
} else {
modifiedCssContent = modifiedCssContent.replace(property.backgroundValue, prop_value);
// modifiedCssContent = modifiedCssContent.replace(property.backgroundValue, property.backgroundValue);
// modifiedCssContent = modifiedCssContent.replace('background-image: unset;', prop_value);
}
});
// Update the text content of the style tag with the modified CSS content
criticalStyleTag.textContent = modifiedCssContent;
244e50
Quer receber as últimas notícias de BH e Minas Gerais? Então e nosso grupo no WhatsApp. 6p1547
Utilizamos cookies para aprimorar sua experiência de navegação, exibir anúncios ou conteúdos personalizados e analisar nosso tráfego. Ao clicar em "Aceitar", você concorda com nosso uso de cookies. Política de cookies e Política de Privacidade
Configurações
Close GDPR Cookie Banner Aceitar Rejetar Close GDPR Cookie Banner
Close GDPR Cookie Settings
Privacy Overview This website uses cookies so that we can provide you with the best experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
Strictly Necessary Cookies Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.