‘; for (i = 0; i 4) { afterParagraphFour = true; } currentParagraph = storytext.childNodes[i]; heights += currentParagraph.clientHeight; if (heights >= limit && insertAfterThisParagraphIndex === -1) { insertAfterThisParagraphIndex = SMARTASSET.setDivIndex(i); console.log(“insert after paragraph number ” + i); console.log(“HEIGHTS = ” + heights); console.log(“LIMIT = ” + limit); } } /* div with id=”ie_column” */ else if (storytext.childNodes[i].nodeName.toLowerCase() === ‘div’ && storytext.childNodes[i].id !== “undefined” && storytext.childNodes[i].id ===”ie_column”) { heights = 0; limit = 80; insertAfterThisParagraphIndex = -1 } /* embeds from twitter, facebook, youtube */ else if (storytext.childNodes[i].nodeName.toLowerCase() === ‘div’ && storytext.childNodes[i].classList.contains(’embed’)) { heights = 0; limit = 80; insertAfterThisParagraphIndex = -1 } /* cnn video player */ else if (storytext.childNodes[i].nodeName.toLowerCase() === ‘div’ && storytext.childNodes[i].classList.contains(‘cnnplayer’)) { heights = 0; limit = 80; insertAfterThisParagraphIndex = -1 } /* images */ else if (storytext.childNodes[i].nodeName.toLowerCase() === ‘img’) { heights = 0; limit = 80; } /* images stored in figure tags */ else if (storytext.childNodes[i].nodeName.toLowerCase() === ‘figure’) { heights = 0; limit = 80; } } if (heights >= 875 && afterParagraphFour) { storytext.childNodes[insertAfterThisParagraphIndex].insertAdjacentHTML(‘afterend’, smartAssetDiv); smartasset = document.getElementById(‘smartasset-article’); smartasset.style.float = ‘left’; // allows module to have text float to right smartasset.style.marginRight =’20px’; smartasset.style.marginBottom =’25px’; }
} SMARTASSET.setSmartAssetScript = function() { console.log(‘starting setSmartAssetScript’); SA = document.SA || []; SA.push({ embedUrl: “https://smartasset.com”, container: “#smartasset-article”, version: 1.1, data: { key: “bdknf2rinbhwvdksm6zbmhf3twrv4oih” } /*{ key: “CNNe038d38a57032085441e7fe7010b0” }*/ }); console.log(‘finished in setSmartAssetScript push() call’); var smscript = document.createElement(“script”); smscript.type = “text/javascript”; smscript.async = true; smscript.src = (“https:” == document.location.protocol ? “https://” : “http://”) + “smartasset.com/embed.js”; var s = document.getElementsByTagName(“script”)[0]; s.parentNode.insertBefore(smscript, s); console.log(“finished entire function of setSmartAssetFunction()”);
};
SMARTASSET.setSmartAssetDiv();
SMARTASSET.setSmartAssetScript();
Amazon said it will continue to operate Whole Foods stores under that name as a separate unit of the company.
The deal shows Amazon’s interest in moving into the business of operating traditional brick-and-mortar stores, even as traditional retailers crippled by Amazon’s growth have announced a series of store closings.
It also shows Amazon’s growing interest in groceries. And it demonstrates the financial might of Amazon, whose market value is greater than that of the 12 largest traditional general retailers combined.
“Millions of people love Whole Foods Market because they offer the best natural and organic foods, and they make it fun to eat healthy,” said Jeff Bezos, Amazon founder and CEO.
CNNMoney (New York) First published June 16, 2017: 9:10 AM ET