Connect with us

Atlanta Braves

PHOTO GALLERY: Braves force Game 4 in NLDS after 6-5 win over Dodgers at SunTrust Park. | Multimedia

‘;

oEngagementContainer_b0a0066c_cac8_11e8_aa26_3f67d120b85d.append(sHTML_b0a0066c_cac8_11e8_aa26_3f67d120b85d);
}
});
}

// Build engagement set
$.each(oResponse.assets, function(index) {
if (index == 1 && sOriginID_b0a0066c_cac8_11e8_aa26_3f67d120b85d == null) {
sOriginID_b0a0066c_cac8_11e8_aa26_3f67d120b85d = oResponse.assets[0].id;
}
// Display assets once origin is found
// Find origin then begin displaying assets
if (bFoundOrigin_b0a0066c_cac8_11e8_aa26_3f67d120b85d == true) {
if (this.id == sOriginID_b0a0066c_cac8_11e8_aa26_3f67d120b85d) {
// Found orgin a second time. Stop gathering assets and kill next_url
bStop_b0a0066c_cac8_11e8_aa26_3f67d120b85d = true;
sNextUrl_b0a0066c_cac8_11e8_aa26_3f67d120b85d = null;
oEngagementMore_b0a0066c_cac8_11e8_aa26_3f67d120b85d.remove();
} else if (bStop_b0a0066c_cac8_11e8_aa26_3f67d120b85d == false && this.id != ‘b0a0066c-cac8-11e8-aa26-3f67d120b85d’) {
// Display asset
var sHTML_b0a0066c_cac8_11e8_aa26_3f67d120b85d = ”;
if (this.content.includes(‘engagement-asset’) && iDisplayCount_b0a0066c_cac8_11e8_aa26_3f67d120b85d ‘ + this.content + ‘

‘;
}
}
} else {
if (this.id == sOriginID_b0a0066c_cac8_11e8_aa26_3f67d120b85d) {
// Origin found. Begin displaying assets
bFoundOrigin_b0a0066c_cac8_11e8_aa26_3f67d120b85d = 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_b0a0066c_cac8_11e8_aa26_3f67d120b85d == true) {
// Stored first id
sFirstID_b0a0066c_cac8_11e8_aa26_3f67d120b85d = this.id;
bFirstRun_b0a0066c_cac8_11e8_aa26_3f67d120b85d = false;
} else if (this.id == sFirstID_b0a0066c_cac8_11e8_aa26_3f67d120b85d) {
// We’ve started again. Force origin
sOriginID_b0a0066c_cac8_11e8_aa26_3f67d120b85d = sFirstID_b0a0066c_cac8_11e8_aa26_3f67d120b85d;
bFoundOrigin_b0a0066c_cac8_11e8_aa26_3f67d120b85d = true;
} // end Fail-safe
}
}

// Append engagement assets to container
oEngagementContainer_b0a0066c_cac8_11e8_aa26_3f67d120b85d.append(sHTML_b0a0066c_cac8_11e8_aa26_3f67d120b85d);

// Stop traversing asset array
if (iDisplayCount_b0a0066c_cac8_11e8_aa26_3f67d120b85d >= iMaxDisplay_b0a0066c_cac8_11e8_aa26_3f67d120b85d) {
bStop_b0a0066c_cac8_11e8_aa26_3f67d120b85d = true;
return false;
}
});

// Include block_id on newly added list items
oEngagementContainer_b0a0066c_cac8_11e8_aa26_3f67d120b85d.find(‘.engagement-item.original’).each(function() {
var sHref_b0a0066c_cac8_11e8_aa26_3f67d120b85d = scrubURL($(this).find(“a.centered-content-link”).attr(“href”));

if(sHref_b0a0066c_cac8_11e8_aa26_3f67d120b85d!=”javascript:void(0)”){

// Add content discovery tracking

sHref_b0a0066c_cac8_11e8_aa26_3f67d120b85d += ‘#tncms-source=endcard-gallery’;




// Add to image and headlines links
$(this).removeClass(‘original’).find(“a.centered-content-link”).attr(“href”, sHref_b0a0066c_cac8_11e8_aa26_3f67d120b85d);
}
});

// Check next URL
if (sNextUrl_b0a0066c_cac8_11e8_aa26_3f67d120b85d && bStop_b0a0066c_cac8_11e8_aa26_3f67d120b85d == false) {
// if origin hasn’t been found yet and we hit next_url. Trigger the set to pull in again.
if (bFoundOrigin_b0a0066c_cac8_11e8_aa26_3f67d120b85d == false) {
// No origin yet. Call the populate function
__tnt.engagement.assets[“b0a0066c-cac8-11e8-aa26-3f67d120b85d”].populate(sNextUrl_b0a0066c_cac8_11e8_aa26_3f67d120b85d);
} else {
// Append sNextUrl_b0a0066c_cac8_11e8_aa26_3f67d120b85d to engagement set
oEngagementContainer_b0a0066c_cac8_11e8_aa26_3f67d120b85d.append(”);

if (iDisplayCount_b0a0066c_cac8_11e8_aa26_3f67d120b85d

Source Link

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

More in Atlanta Braves