Two games, same Friday Night Lights energy
- Updated
- 0
More like this...
' + this.content + '
';
}
}
} else {
if (this.id == sOriginID_0a342a87_e80d_5c7b_86ec_4d9620994798) {
// Origin found. Begin displaying assets
bFoundOrigin_0a342a87_e80d_5c7b_86ec_4d9620994798 = 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_0a342a87_e80d_5c7b_86ec_4d9620994798 == true) {
// Stored first id
sFirstID_0a342a87_e80d_5c7b_86ec_4d9620994798 = this.id;
bFirstRun_0a342a87_e80d_5c7b_86ec_4d9620994798 = false;
} else if (this.id == sFirstID_0a342a87_e80d_5c7b_86ec_4d9620994798) {
// We've started again. Force origin
sOriginID_0a342a87_e80d_5c7b_86ec_4d9620994798 = sFirstID_0a342a87_e80d_5c7b_86ec_4d9620994798;
bFoundOrigin_0a342a87_e80d_5c7b_86ec_4d9620994798 = true;
} // end Fail-safe
}
}
// Append engagement assets to container
oEngagementContainer_0a342a87_e80d_5c7b_86ec_4d9620994798.append(sHTML_0a342a87_e80d_5c7b_86ec_4d9620994798);
// Stop traversing asset array
if (iDisplayCount_0a342a87_e80d_5c7b_86ec_4d9620994798 >= iMaxDisplay_0a342a87_e80d_5c7b_86ec_4d9620994798) {
bStop_0a342a87_e80d_5c7b_86ec_4d9620994798 = true;
return false;
}
});
// Include block_id on newly added list items
oEngagementContainer_0a342a87_e80d_5c7b_86ec_4d9620994798.find('.engagement-item.original').each(function() {
var sHref_0a342a87_e80d_5c7b_86ec_4d9620994798 = scrubURL($(this).find("a.centered-content-link").attr("href"));
if(sHref_0a342a87_e80d_5c7b_86ec_4d9620994798!="javascript:void(0)"){
// Add content discovery tracking
sHref_0a342a87_e80d_5c7b_86ec_4d9620994798 += '#tncms-source=endcard-gallery';
// Add to image and headlines links
$(this).removeClass('original').find("a.centered-content-link").attr("href", sHref_0a342a87_e80d_5c7b_86ec_4d9620994798);
}
});
// Check next URL
if (sNextUrl_0a342a87_e80d_5c7b_86ec_4d9620994798 && bStop_0a342a87_e80d_5c7b_86ec_4d9620994798 == false) {
// if origin hasn't been found yet and we hit next_url. Trigger the set to pull in again.
if (bFoundOrigin_0a342a87_e80d_5c7b_86ec_4d9620994798 == false) {
// No origin yet. Call the populate function
__tnt.engagement.assets["0a342a87-e80d-5c7b-86ec-4d9620994798"].populate(sNextUrl_0a342a87_e80d_5c7b_86ec_4d9620994798);
} else {
// Append sNextUrl_0a342a87_e80d_5c7b_86ec_4d9620994798 to engagement set
oEngagementContainer_0a342a87_e80d_5c7b_86ec_4d9620994798.append('');
if (iDisplayCount_0a342a87_e80d_5c7b_86ec_4d9620994798 < iMaxDisplay_0a342a87_e80d_5c7b_86ec_4d9620994798) {
// Get next url and request more assets
__tnt.engagement.assets["0a342a87-e80d-5c7b-86ec-4d9620994798"].populate(oEngagementMore_0a342a87_e80d_5c7b_86ec_4d9620994798.data('next-url'));
}
}
}
// Add total count to container
if (bStop_0a342a87_e80d_5c7b_86ec_4d9620994798 == true) {
// Add total count to container
oEngagementContainer_0a342a87_e80d_5c7b_86ec_4d9620994798.attr("data-engagement-total", iDisplayCount_0a342a87_e80d_5c7b_86ec_4d9620994798);
// Remove engagement loading spinner
oEngagementSpinner_0a342a87_e80d_5c7b_86ec_4d9620994798.remove();
return false;
}
} else {
// Empty asset set returned. Go back in for a real set
if(__tnt.engagement.assets["0a342a87-e80d-5c7b-86ec-4d9620994798"].attempts<2){
if(sNextUrl_0a342a87_e80d_5c7b_86ec_4d9620994798==null||sNextUrl_0a342a87_e80d_5c7b_86ec_4d9620994798==""){
sNextUrl_0a342a87_e80d_5c7b_86ec_4d9620994798 = "/sports/two-games-same-friday-night-lights-energy/collection_0a342a87-e80d-5c7b-86ec-4d9620994798.html";
}
__tnt.engagement.assets["0a342a87-e80d-5c7b-86ec-4d9620994798"].populate(sNextUrl_0a342a87_e80d_5c7b_86ec_4d9620994798);
__tnt.engagement.assets["0a342a87-e80d-5c7b-86ec-4d9620994798"].attempts++;
}
}
});
}
}
// Rewrite URL for preview
// TODO move to one location
function scrubURL(sURL) {
if (typeof sURL != 'undefined'){
return sURL;
}
}
More like this...
' + this.content + '
';
}
}
} else {
if (this.id == sOriginID_0a342a87_e80d_5c7b_86ec_4d9620994798) {
// Origin found. Begin displaying assets
bFoundOrigin_0a342a87_e80d_5c7b_86ec_4d9620994798 = 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_0a342a87_e80d_5c7b_86ec_4d9620994798 == true) {
// Stored first id
sFirstID_0a342a87_e80d_5c7b_86ec_4d9620994798 = this.id;
bFirstRun_0a342a87_e80d_5c7b_86ec_4d9620994798 = false;
} else if (this.id == sFirstID_0a342a87_e80d_5c7b_86ec_4d9620994798) {
// We've started again. Force origin
sOriginID_0a342a87_e80d_5c7b_86ec_4d9620994798 = sFirstID_0a342a87_e80d_5c7b_86ec_4d9620994798;
bFoundOrigin_0a342a87_e80d_5c7b_86ec_4d9620994798 = true;
} // end Fail-safe
}
}
// Append engagement assets to container
oEngagementContainer_0a342a87_e80d_5c7b_86ec_4d9620994798.append(sHTML_0a342a87_e80d_5c7b_86ec_4d9620994798);
// Stop traversing asset array
if (iDisplayCount_0a342a87_e80d_5c7b_86ec_4d9620994798 >= iMaxDisplay_0a342a87_e80d_5c7b_86ec_4d9620994798) {
bStop_0a342a87_e80d_5c7b_86ec_4d9620994798 = true;
return false;
}
});
// Include block_id on newly added list items
oEngagementContainer_0a342a87_e80d_5c7b_86ec_4d9620994798.find('.engagement-item.original').each(function() {
var sHref_0a342a87_e80d_5c7b_86ec_4d9620994798 = scrubURL($(this).find("a.centered-content-link").attr("href"));
if(sHref_0a342a87_e80d_5c7b_86ec_4d9620994798!="javascript:void(0)"){
// Add content discovery tracking
sHref_0a342a87_e80d_5c7b_86ec_4d9620994798 += '#tncms-source=endcard-gallery';
// Add to image and headlines links
$(this).removeClass('original').find("a.centered-content-link").attr("href", sHref_0a342a87_e80d_5c7b_86ec_4d9620994798);
}
});
// Check next URL
if (sNextUrl_0a342a87_e80d_5c7b_86ec_4d9620994798 && bStop_0a342a87_e80d_5c7b_86ec_4d9620994798 == false) {
// if origin hasn't been found yet and we hit next_url. Trigger the set to pull in again.
if (bFoundOrigin_0a342a87_e80d_5c7b_86ec_4d9620994798 == false) {
// No origin yet. Call the populate function
__tnt.engagement.assets["0a342a87-e80d-5c7b-86ec-4d9620994798"].populate(sNextUrl_0a342a87_e80d_5c7b_86ec_4d9620994798);
} else {
// Append sNextUrl_0a342a87_e80d_5c7b_86ec_4d9620994798 to engagement set
oEngagementContainer_0a342a87_e80d_5c7b_86ec_4d9620994798.append('');
if (iDisplayCount_0a342a87_e80d_5c7b_86ec_4d9620994798 < iMaxDisplay_0a342a87_e80d_5c7b_86ec_4d9620994798) {
// Get next url and request more assets
__tnt.engagement.assets["0a342a87-e80d-5c7b-86ec-4d9620994798"].populate(oEngagementMore_0a342a87_e80d_5c7b_86ec_4d9620994798.data('next-url'));
}
}
}
// Add total count to container
if (bStop_0a342a87_e80d_5c7b_86ec_4d9620994798 == true) {
// Add total count to container
oEngagementContainer_0a342a87_e80d_5c7b_86ec_4d9620994798.attr("data-engagement-total", iDisplayCount_0a342a87_e80d_5c7b_86ec_4d9620994798);
// Remove engagement loading spinner
oEngagementSpinner_0a342a87_e80d_5c7b_86ec_4d9620994798.remove();
return false;
}
} else {
// Empty asset set returned. Go back in for a real set
if(__tnt.engagement.assets["0a342a87-e80d-5c7b-86ec-4d9620994798"].attempts<2){
if(sNextUrl_0a342a87_e80d_5c7b_86ec_4d9620994798==null||sNextUrl_0a342a87_e80d_5c7b_86ec_4d9620994798==""){
sNextUrl_0a342a87_e80d_5c7b_86ec_4d9620994798 = "/sports/two-games-same-friday-night-lights-energy/collection_0a342a87-e80d-5c7b-86ec-4d9620994798.html";
}
__tnt.engagement.assets["0a342a87-e80d-5c7b-86ec-4d9620994798"].populate(sNextUrl_0a342a87_e80d_5c7b_86ec_4d9620994798);
__tnt.engagement.assets["0a342a87-e80d-5c7b-86ec-4d9620994798"].attempts++;
}
}
});
}
}
// Rewrite URL for preview
// TODO move to one location
function scrubURL(sURL) {
if (typeof sURL != 'undefined'){
return sURL;
}
}
Post a comment as anonymous
Report
Watch this discussion. Stop watching this discussion.
Thank you for reading!
Please log in, or sign up for a new account and purchase a subscription to read or post comments.
We have used your information to see if you have a subscription with us, but did not find one. Please use the button below to verify an existing account or to purchase a new subscription.
Your current subscription does not provide access to this content. Please use the button below to manage your account.
(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 another person will not be tolerated.
Be Truthful. Don't knowingly lie about anyone or anything.
Be Nice. No racism, sexism or any sort of -ism that is degrading to another person.
Be Proactive. Use the 'Report' link on each comment to let us know of abusive posts.
Share with Us. We'd love to hear eyewitness accounts, the history behind an article.