Solar energy is killing coal, despite Trump’s promises

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

Read the full article from the Source…

Back to Top