Untitled
unknown
plain_text
2 years ago
995 B
2
Indexable
(function () { "use strict"; function PriceChanger(){ setTimeout(function () { var discountPrice = jQuery('.total-savings .total-savings-amount:eq(0)').text(); jQuery('.totals.order-summary-section p.savings-text').text('You saved '+discountPrice+' today!'); }, 1000); var discountPrice = jQuery('.total-savings .total-savings-amount:eq(0)').text(); jQuery('.totals.order-summary-section p.savings-text').text('You saved '+discountPrice+' today!'); } var running = false; var target = document.querySelector('.order-summary-container'); const config = { childList: true, characterData: true, subtree: true, attributes: true, }; const callback = function () { if (running == true) return; PriceChanger(); running = true; setTimeout(function () { running = false }, 1000); }; function Mutx(target, callback, config){ const observer = new MutationObserver(callback); observer.observe(target, config); } // PriceChanger(); Mutx(target , callback , config); })();
Editor is loading...