More like this...
'; oEngagementContainer_11731310_5db0_58a8_bc3b_89de4babdff3.append(sHTML_11731310_5db0_58a8_bc3b_89de4babdff3); } }); } // Build engagement set $.each(oResponse.assets, function(index) { if (index == 1 && sOriginID_11731310_5db0_58a8_bc3b_89de4babdff3 == null) { sOriginID_11731310_5db0_58a8_bc3b_89de4babdff3 = oResponse.assets[0].id; } // Display assets once origin is found // Find origin then begin displaying assets if (bFoundOrigin_11731310_5db0_58a8_bc3b_89de4babdff3 == true) { if (this.id == sOriginID_11731310_5db0_58a8_bc3b_89de4babdff3) { // Found orgin a second time. Stop gathering assets and kill next_url bStop_11731310_5db0_58a8_bc3b_89de4babdff3 = true; sNextUrl_11731310_5db0_58a8_bc3b_89de4babdff3 = null; oEngagementMore_11731310_5db0_58a8_bc3b_89de4babdff3.remove(); } else if (bStop_11731310_5db0_58a8_bc3b_89de4babdff3 == false && this.id != '11731310-5db0-58a8-bc3b-89de4babdff3') { // Display asset var sHTML_11731310_5db0_58a8_bc3b_89de4babdff3 = ''; if (this.content.includes('engagement-asset') && iDisplayCount_11731310_5db0_58a8_bc3b_89de4babdff3 < iMaxDisplay_11731310_5db0_58a8_bc3b_89de4babdff3) { iDisplayCount_11731310_5db0_58a8_bc3b_89de4babdff3 ++; sHTML_11731310_5db0_58a8_bc3b_89de4babdff3 += '
' + this.content + '
'; } } } else { if (this.id == sOriginID_11731310_5db0_58a8_bc3b_89de4babdff3) { // Origin found. Begin displaying assets bFoundOrigin_11731310_5db0_58a8_bc3b_89de4babdff3 = true; } else { // Origin found is false. Skip asset // Fail-safe in case origin is not present in set. This can be removed when origin is fixed. if (bFirstRun_11731310_5db0_58a8_bc3b_89de4babdff3 == true) { // Stored first id sFirstID_11731310_5db0_58a8_bc3b_89de4babdff3 = this.id; bFirstRun_11731310_5db0_58a8_bc3b_89de4babdff3 = false; } else if (this.id == sFirstID_11731310_5db0_58a8_bc3b_89de4babdff3) { // We've started again. Force origin sOriginID_11731310_5db0_58a8_bc3b_89de4babdff3 = sFirstID_11731310_5db0_58a8_bc3b_89de4babdff3; bFoundOrigin_11731310_5db0_58a8_bc3b_89de4babdff3 = true; } // end Fail-safe } } // Append engagement assets to container oEngagementContainer_11731310_5db0_58a8_bc3b_89de4babdff3.append(sHTML_11731310_5db0_58a8_bc3b_89de4babdff3); // Stop traversing asset array if (iDisplayCount_11731310_5db0_58a8_bc3b_89de4babdff3 >= iMaxDisplay_11731310_5db0_58a8_bc3b_89de4babdff3) { bStop_11731310_5db0_58a8_bc3b_89de4babdff3 = true; return false; } }); // Include block_id on newly added list items oEngagementContainer_11731310_5db0_58a8_bc3b_89de4babdff3.find('.engagement-item.original').each(function() { var sHref_11731310_5db0_58a8_bc3b_89de4babdff3 = scrubURL($(this).find("a.centered-content-link").attr("href")); if(sHref_11731310_5db0_58a8_bc3b_89de4babdff3!="javascript:void(0)"){ // Add content discovery tracking sHref_11731310_5db0_58a8_bc3b_89de4babdff3 += '#tncms-source=endcard-gallery'; // Add to image and headlines links $(this).removeClass('original').find("a.centered-content-link").attr("href", sHref_11731310_5db0_58a8_bc3b_89de4babdff3); } }); // Check next URL if (sNextUrl_11731310_5db0_58a8_bc3b_89de4babdff3 && bStop_11731310_5db0_58a8_bc3b_89de4babdff3 == false) { // if origin hasn't been found yet and we hit next_url. Trigger the set to pull in again. if (bFoundOrigin_11731310_5db0_58a8_bc3b_89de4babdff3 == false) { // No origin yet. Call the populate function __tnt.engagement.assets["11731310-5db0-58a8-bc3b-89de4babdff3"].populate(sNextUrl_11731310_5db0_58a8_bc3b_89de4babdff3); } else { // Append sNextUrl_11731310_5db0_58a8_bc3b_89de4babdff3 to engagement set oEngagementContainer_11731310_5db0_58a8_bc3b_89de4babdff3.append('
'); if (iDisplayCount_11731310_5db0_58a8_bc3b_89de4babdff3 < iMaxDisplay_11731310_5db0_58a8_bc3b_89de4babdff3) { // Get next url and request more assets __tnt.engagement.assets["11731310-5db0-58a8-bc3b-89de4babdff3"].populate(oEngagementMore_11731310_5db0_58a8_bc3b_89de4babdff3.data('next-url')); } } } // Add total count to container if (bStop_11731310_5db0_58a8_bc3b_89de4babdff3 == true) { // Add total count to container oEngagementContainer_11731310_5db0_58a8_bc3b_89de4babdff3.attr("data-engagement-total", iDisplayCount_11731310_5db0_58a8_bc3b_89de4babdff3); // Remove engagement loading spinner oEngagementSpinner_11731310_5db0_58a8_bc3b_89de4babdff3.remove(); return false; } } else { // Empty asset set returned. Go back in for a real set if(__tnt.engagement.assets["11731310-5db0-58a8-bc3b-89de4babdff3"].attempts<2){ if(sNextUrl_11731310_5db0_58a8_bc3b_89de4babdff3==null||sNextUrl_11731310_5db0_58a8_bc3b_89de4babdff3==""){ sNextUrl_11731310_5db0_58a8_bc3b_89de4babdff3 = "/photos/9pm-black-lightning-the-book-of-resurrection-chapter-two-closure-series-finale/collection_11731310-5db0-58a8-bc3b-89de4babdff3.html"; } __tnt.engagement.assets["11731310-5db0-58a8-bc3b-89de4babdff3"].populate(sNextUrl_11731310_5db0_58a8_bc3b_89de4babdff3); __tnt.engagement.assets["11731310-5db0-58a8-bc3b-89de4babdff3"].attempts++; } } }); } } // Rewrite URL for preview // TODO move to one location function scrubURL(sURL) { if (typeof sURL != 'undefined'){ return sURL; } }
More like this...
'; oEngagementContainer_11731310_5db0_58a8_bc3b_89de4babdff3.append(sHTML_11731310_5db0_58a8_bc3b_89de4babdff3); } }); } // Build engagement set $.each(oResponse.assets, function(index) { if (index == 1 && sOriginID_11731310_5db0_58a8_bc3b_89de4babdff3 == null) { sOriginID_11731310_5db0_58a8_bc3b_89de4babdff3 = oResponse.assets[0].id; } // Display assets once origin is found // Find origin then begin displaying assets if (bFoundOrigin_11731310_5db0_58a8_bc3b_89de4babdff3 == true) { if (this.id == sOriginID_11731310_5db0_58a8_bc3b_89de4babdff3) { // Found orgin a second time. Stop gathering assets and kill next_url bStop_11731310_5db0_58a8_bc3b_89de4babdff3 = true; sNextUrl_11731310_5db0_58a8_bc3b_89de4babdff3 = null; oEngagementMore_11731310_5db0_58a8_bc3b_89de4babdff3.remove(); } else if (bStop_11731310_5db0_58a8_bc3b_89de4babdff3 == false && this.id != '11731310-5db0-58a8-bc3b-89de4babdff3') { // Display asset var sHTML_11731310_5db0_58a8_bc3b_89de4babdff3 = ''; if (this.content.includes('engagement-asset') && iDisplayCount_11731310_5db0_58a8_bc3b_89de4babdff3 < iMaxDisplay_11731310_5db0_58a8_bc3b_89de4babdff3) { iDisplayCount_11731310_5db0_58a8_bc3b_89de4babdff3 ++; sHTML_11731310_5db0_58a8_bc3b_89de4babdff3 += '
' + this.content + '
'; } } } else { if (this.id == sOriginID_11731310_5db0_58a8_bc3b_89de4babdff3) { // Origin found. Begin displaying assets bFoundOrigin_11731310_5db0_58a8_bc3b_89de4babdff3 = true; } else { // Origin found is false. Skip asset // Fail-safe in case origin is not present in set. This can be removed when origin is fixed. if (bFirstRun_11731310_5db0_58a8_bc3b_89de4babdff3 == true) { // Stored first id sFirstID_11731310_5db0_58a8_bc3b_89de4babdff3 = this.id; bFirstRun_11731310_5db0_58a8_bc3b_89de4babdff3 = false; } else if (this.id == sFirstID_11731310_5db0_58a8_bc3b_89de4babdff3) { // We've started again. Force origin sOriginID_11731310_5db0_58a8_bc3b_89de4babdff3 = sFirstID_11731310_5db0_58a8_bc3b_89de4babdff3; bFoundOrigin_11731310_5db0_58a8_bc3b_89de4babdff3 = true; } // end Fail-safe } } // Append engagement assets to container oEngagementContainer_11731310_5db0_58a8_bc3b_89de4babdff3.append(sHTML_11731310_5db0_58a8_bc3b_89de4babdff3); // Stop traversing asset array if (iDisplayCount_11731310_5db0_58a8_bc3b_89de4babdff3 >= iMaxDisplay_11731310_5db0_58a8_bc3b_89de4babdff3) { bStop_11731310_5db0_58a8_bc3b_89de4babdff3 = true; return false; } }); // Include block_id on newly added list items oEngagementContainer_11731310_5db0_58a8_bc3b_89de4babdff3.find('.engagement-item.original').each(function() { var sHref_11731310_5db0_58a8_bc3b_89de4babdff3 = scrubURL($(this).find("a.centered-content-link").attr("href")); if(sHref_11731310_5db0_58a8_bc3b_89de4babdff3!="javascript:void(0)"){ // Add content discovery tracking sHref_11731310_5db0_58a8_bc3b_89de4babdff3 += '#tncms-source=endcard-gallery'; // Add to image and headlines links $(this).removeClass('original').find("a.centered-content-link").attr("href", sHref_11731310_5db0_58a8_bc3b_89de4babdff3); } }); // Check next URL if (sNextUrl_11731310_5db0_58a8_bc3b_89de4babdff3 && bStop_11731310_5db0_58a8_bc3b_89de4babdff3 == false) { // if origin hasn't been found yet and we hit next_url. Trigger the set to pull in again. if (bFoundOrigin_11731310_5db0_58a8_bc3b_89de4babdff3 == false) { // No origin yet. Call the populate function __tnt.engagement.assets["11731310-5db0-58a8-bc3b-89de4babdff3"].populate(sNextUrl_11731310_5db0_58a8_bc3b_89de4babdff3); } else { // Append sNextUrl_11731310_5db0_58a8_bc3b_89de4babdff3 to engagement set oEngagementContainer_11731310_5db0_58a8_bc3b_89de4babdff3.append('
'); if (iDisplayCount_11731310_5db0_58a8_bc3b_89de4babdff3 < iMaxDisplay_11731310_5db0_58a8_bc3b_89de4babdff3) { // Get next url and request more assets __tnt.engagement.assets["11731310-5db0-58a8-bc3b-89de4babdff3"].populate(oEngagementMore_11731310_5db0_58a8_bc3b_89de4babdff3.data('next-url')); } } } // Add total count to container if (bStop_11731310_5db0_58a8_bc3b_89de4babdff3 == true) { // Add total count to container oEngagementContainer_11731310_5db0_58a8_bc3b_89de4babdff3.attr("data-engagement-total", iDisplayCount_11731310_5db0_58a8_bc3b_89de4babdff3); // Remove engagement loading spinner oEngagementSpinner_11731310_5db0_58a8_bc3b_89de4babdff3.remove(); return false; } } else { // Empty asset set returned. Go back in for a real set if(__tnt.engagement.assets["11731310-5db0-58a8-bc3b-89de4babdff3"].attempts<2){ if(sNextUrl_11731310_5db0_58a8_bc3b_89de4babdff3==null||sNextUrl_11731310_5db0_58a8_bc3b_89de4babdff3==""){ sNextUrl_11731310_5db0_58a8_bc3b_89de4babdff3 = "/photos/9pm-black-lightning-the-book-of-resurrection-chapter-two-closure-series-finale/collection_11731310-5db0-58a8-bc3b-89de4babdff3.html"; } __tnt.engagement.assets["11731310-5db0-58a8-bc3b-89de4babdff3"].populate(sNextUrl_11731310_5db0_58a8_bc3b_89de4babdff3); __tnt.engagement.assets["11731310-5db0-58a8-bc3b-89de4babdff3"].attempts++; } } }); } } // Rewrite URL for preview // TODO move to one location function scrubURL(sURL) { if (typeof sURL != 'undefined'){ return sURL; } }
As featured on
9PM: Black Lightning “The Book Of Resurrection: Chapter Two: Closure” –Series Finale
After four seasons, the game-changing, relevant and electrifying Black Lightning series comes to an end at 9 PM tonight on WCCB Charlotte’s CW.
Post a comment as anonymous
Report
Watch this discussion.
(0) comments
Welcome to the discussion.
Log In
Keep it Clean. Please avoid obscene, vulgar, lewd,racist or sexually-oriented language.
PLEASE TURN OFF YOUR CAPS LOCK.
Don't Threaten. Threats of harming anotherperson will not be tolerated.
Be Truthful. Don't knowingly lie about anyoneor anything.
Be Nice. No racism, sexism or any sort of -ismthat is degrading to another person.
Be Proactive. Use the 'Report' link oneach comment to let us know of abusive posts.
Share with Us. We'd love to hear eyewitnessaccounts, the history behind an article.