<div id="diamondsearch" data-apikey="xxxxxx-xxxx-xxxx-xxxx-xxxxxxxx" data-theme="#483f8e" data-responsive="yes" data-prices="yes" data-contact="yes" data-ecomm="yes" data-count="30" class="widget-settings"></div> <script src='//www.diamondselections.com/Embed/client_assets/initdiamondsearch.js'></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> (function(d, w) { function observeAddToCart() { jQuery(w).on('ds.addtocart', onDiamondClick); } function onDiamondClick(event, data) { let loadedData = loadData(data); window.parent.postMessage(loadedData, "*"); } function loadData(data) { return data; } if (d.addEventListener) { d.addEventListener('ds.ready', function() { observeAddToCart() }, false); } else if (d.attachEvent) { d.documentElement.attachEvent('onpropertychange', function(event) { if (event.propertyName === 'ds.ready') observeAddToCart() }); } }(document, window));</script> I replaced my key with Xs Thanks
|