Sunday, December 17, 2017

‘;
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();

OPEC pumped a record 33.9 million barrels a day in November, according to its latest monthly report. That’s up from 33.7 million barrels in October and far above the 32.5 million barrel production target for January.

In November, OPEC agreed to a production cut that had been promised for months. The supply cut is scheduled to begin Jan. 1.

Sticking to the deal is crucial if OPEC wants to see higher oil prices. A global glut of oil supply caused prices to crash over the past two years, as the world’s biggest oil producers refused to cut production in order to defend their market share.

Related: Remember: OPEC almost always cheats

At the time, the group agreed to cuts using output from October as a benchmark. Because production has since increased, OPEC will have to execute deeper cuts to meet the agreed upon levels.

The group’s latest data show that Nigeria and Libya increased production by a combined 110,000 barrels a day in November. Both are exempted from cuts because of armed conflict.

Venezuela, which is in the midst of an economic crisis, also pumped more. It had agreed to slash production by 95,000 barrels a day, but will now need to cut 125,000 barrels in order to reach its target.

Related: The global oil surplus will disappear in 2017

The stakes are high: Since striking the deal, OPEC has secured commitments from other major producers — including Russia, Mexico, Kazakhstan and Oman — to also slash output.

The collective action helped push prices to a new 2016 high above $53 per barrel on Monday. U.S. crude futures have since retreated to trade near $52.30.

CNNMoney (London) First published December 14, 2016: 7:17 AM ET


Terms & Conditions apply

NMLS #1136


Source

NO COMMENTS