IMAGES | Scenes from the Thurby crowd at Churchill Downs, 2022 – WDRB

‘;

oEngagementContainer_a6ba4276_ccb2_11ec_bd20_1be3f0498c22.append(sHTML_a6ba4276_ccb2_11ec_bd20_1be3f0498c22);
}
});
}

// Build engagement set
$.each(oResponse.assets, function(index) {
if (index == 1 && sOriginID_a6ba4276_ccb2_11ec_bd20_1be3f0498c22 == null) {
sOriginID_a6ba4276_ccb2_11ec_bd20_1be3f0498c22 = oResponse.assets[0].id;
}
// Display assets once origin is found
// Find origin then begin displaying assets
if (bFoundOrigin_a6ba4276_ccb2_11ec_bd20_1be3f0498c22 == true) {
if (this.id == sOriginID_a6ba4276_ccb2_11ec_bd20_1be3f0498c22) {
// Found orgin a second time. Stop gathering assets and kill next_url
bStop_a6ba4276_ccb2_11ec_bd20_1be3f0498c22 = true;
sNextUrl_a6ba4276_ccb2_11ec_bd20_1be3f0498c22 = null;
oEngagementMore_a6ba4276_ccb2_11ec_bd20_1be3f0498c22.remove();
} else if (bStop_a6ba4276_ccb2_11ec_bd20_1be3f0498c22 == false && this.id != ‘a6ba4276-ccb2-11ec-bd20-1be3f0498c22’) {
// Display asset
var sHTML_a6ba4276_ccb2_11ec_bd20_1be3f0498c22 = ”;
if (this.content.includes(‘engagement-asset’) && iDisplayCount_a6ba4276_ccb2_11ec_bd20_1be3f0498c22 ‘ + this.content + ‘

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

// Append engagement assets to container
oEngagementContainer_a6ba4276_ccb2_11ec_bd20_1be3f0498c22.append(sHTML_a6ba4276_ccb2_11ec_bd20_1be3f0498c22);

// Stop traversing asset array
if (iDisplayCount_a6ba4276_ccb2_11ec_bd20_1be3f0498c22 >= iMaxDisplay_a6ba4276_ccb2_11ec_bd20_1be3f0498c22) {
bStop_a6ba4276_ccb2_11ec_bd20_1be3f0498c22 = true;
return false;
}
});

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

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

// Add content discovery tracking

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

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

// Check next URL
if (sNextUrl_a6ba4276_ccb2_11ec_bd20_1be3f0498c22 && bStop_a6ba4276_ccb2_11ec_bd20_1be3f0498c22 == false) {
// if origin hasn’t been found yet and we hit next_url. Trigger the set to pull in again.
if (bFoundOrigin_a6ba4276_ccb2_11ec_bd20_1be3f0498c22 == false) {
// No origin yet. Call the populate function
__tnt.engagement.assets[“a6ba4276-ccb2-11ec-bd20-1be3f0498c22″].populate(sNextUrl_a6ba4276_ccb2_11ec_bd20_1be3f0498c22);
} else {
// Append sNextUrl_a6ba4276_ccb2_11ec_bd20_1be3f0498c22 to engagement set
oEngagementContainer_a6ba4276_ccb2_11ec_bd20_1be3f0498c22.append(”);

if (iDisplayCount_a6ba4276_ccb2_11ec_bd20_1be3f0498c22