Blog do Club

Modelo de ensino com base em experiências reais. As melhores dicas de arquitetura! Saiba cobrar pelo seu projeto, detalhamento, iluminação, decoração e mais!

Domingo,Segunda,Terça,Quarta,Quinta,Sexta,Sábado
Janeiro,Fevereiro,Março,Abril,Maio,Junho,Julho,Agosto,Setembro,Outubro,Novembro,Dezembro
Não temos itens suficientes disponíveis. Apenas [max] no estoque.
},12000); // Select the node that will be observed for mutations let cartnumbers = document.getElementsByClassName('jsccount'); let cartnumber = cartnumbers[0]; // Options for the observer (which mutations to observe) var config = { attributes: false, childList: true, subtree: true }; // Callback function to execute when mutations are observed var callback = function(mutationsList, observer) { for(var mutation of mutationsList) { if (mutation.type == 'childList') { //console.log('A child node has been added or removed.'); if (Number(cartnumber.textContent)<1) { cartnumber.style['opacity'] = '0'; } else { cartnumber.style['opacity'] = '1'; } } /* else if (mutation.type == 'attributes') { console.log('The ' + mutation.attributeName + ' attribute was modified.'); } */ } }; // Create an observer instance linked to the callback function var observer = new MutationObserver(callback); // Start observing the target node for configured mutations observer.observe(cartnumber, config); // Later, you can stop observing //observer.disconnect(); let elementos = document.getElementsByClassName('type_toolbar_link'); let atendimento = elementos[0]; atendimento.style.display = 'none'; });