Category
₹3.25
if (typeof uet == ‘function’) uet(‘bb’, ‘acsux-widgets_content-grid_merchandised-search-1’, {wb: 1}); // timestamp body-begin
if (typeof ue == ‘function’) {
ue.log({“widget”:”contentGrid”,”type”:”initialize”}, ‘acsux-widgets’, null);
}
observePopUpIframe(obj)
function resizeIframe (obj) {
if (obj && obj.contentWindow && obj.contentWindow.document && obj.contentWindow.document.body
&& obj.contentWindow.document.body.offsetHeight && obj.contentWindow.document.body.offsetHeight > 200) {
obj.style.height = obj.contentWindow.document.body.offsetHeight + ‘px’;
} else {
obj.style.height = ‘200px’;
}
};
function observePopUpIframe (obj) {
const iframeContent = obj.contentWindow.document.body;
const config = { attributes: true, childList: true, subtree: true };
const callback = function() {
resizeIframe(obj);
};
const observer = new MutationObserver(callback);
observer.observe(iframeContent, config);
obj.contentWindow.onbeforeunload = function(e) {
observer.disconnect();
};
}
}
if (typeof uex == ‘function’) uex(‘ld’, ‘acsux-widgets_content-grid_merchandised-search-1’, {wb: 1}); // timestamp page-loaded + send the metrics
if (typeof uet == ‘function’) uet(‘be’, ‘acsux-widgets_content-grid_merchandised-search-1’, {wb: 1}); // timestamp body-end
There are no reviews yet.