Middle School Summer Workouts
- L-J Photos by Joshua Reese
- 0
More like this...
' + this.content + '
';
}
}
} else {
if (this.id == sOriginID_4a60cdfc_409f_11ef_a4bd_535fe9748ce7) {
// Origin found. Begin displaying assets
bFoundOrigin_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 = 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_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 == true) {
// Stored first id
sFirstID_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 = this.id;
bFirstRun_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 = false;
} else if (this.id == sFirstID_4a60cdfc_409f_11ef_a4bd_535fe9748ce7) {
// We've started again. Force origin
sOriginID_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 = sFirstID_4a60cdfc_409f_11ef_a4bd_535fe9748ce7;
bFoundOrigin_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 = true;
} // end Fail-safe
}
}
// Append engagement assets to container
oEngagementContainer_4a60cdfc_409f_11ef_a4bd_535fe9748ce7.append(sHTML_4a60cdfc_409f_11ef_a4bd_535fe9748ce7);
// Stop traversing asset array
if (iDisplayCount_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 >= iMaxDisplay_4a60cdfc_409f_11ef_a4bd_535fe9748ce7) {
bStop_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 = true;
return false;
}
});
// Include block_id on newly added list items
oEngagementContainer_4a60cdfc_409f_11ef_a4bd_535fe9748ce7.find('.engagement-item.original').each(function() {
var sHref_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 = scrubURL($(this).find("a.centered-content-link").attr("href"));
if(sHref_4a60cdfc_409f_11ef_a4bd_535fe9748ce7!="javascript:void(0)"){
// Add content discovery tracking
sHref_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 += '#tncms-source=endcard-gallery';
// Add to image and headlines links
$(this).removeClass('original').find("a.centered-content-link").attr("href", sHref_4a60cdfc_409f_11ef_a4bd_535fe9748ce7);
}
});
// Check next URL
if (sNextUrl_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 && bStop_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 == false) {
// if origin hasn't been found yet and we hit next_url. Trigger the set to pull in again.
if (bFoundOrigin_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 == false) {
// No origin yet. Call the populate function
__tnt.engagement.assets["4a60cdfc-409f-11ef-a4bd-535fe9748ce7"].populate(sNextUrl_4a60cdfc_409f_11ef_a4bd_535fe9748ce7);
} else {
// Append sNextUrl_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 to engagement set
oEngagementContainer_4a60cdfc_409f_11ef_a4bd_535fe9748ce7.append('');
if (iDisplayCount_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 < iMaxDisplay_4a60cdfc_409f_11ef_a4bd_535fe9748ce7) {
// Get next url and request more assets
__tnt.engagement.assets["4a60cdfc-409f-11ef-a4bd-535fe9748ce7"].populate(oEngagementMore_4a60cdfc_409f_11ef_a4bd_535fe9748ce7.data('next-url'));
}
}
}
// Add total count to container
if (bStop_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 == true) {
// Add total count to container
oEngagementContainer_4a60cdfc_409f_11ef_a4bd_535fe9748ce7.attr("data-engagement-total", iDisplayCount_4a60cdfc_409f_11ef_a4bd_535fe9748ce7);
// Remove engagement loading spinner
oEngagementSpinner_4a60cdfc_409f_11ef_a4bd_535fe9748ce7.remove();
return false;
}
} else {
// Empty asset set returned. Go back in for a real set
if(__tnt.engagement.assets["4a60cdfc-409f-11ef-a4bd-535fe9748ce7"].attempts<2){
if(sNextUrl_4a60cdfc_409f_11ef_a4bd_535fe9748ce7==null||sNextUrl_4a60cdfc_409f_11ef_a4bd_535fe9748ce7==""){
sNextUrl_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 = "/sports/collection_4a60cdfc-409f-11ef-a4bd-535fe9748ce7.html";
}
__tnt.engagement.assets["4a60cdfc-409f-11ef-a4bd-535fe9748ce7"].populate(sNextUrl_4a60cdfc_409f_11ef_a4bd_535fe9748ce7);
__tnt.engagement.assets["4a60cdfc-409f-11ef-a4bd-535fe9748ce7"].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_4a60cdfc_409f_11ef_a4bd_535fe9748ce7) {
// Origin found. Begin displaying assets
bFoundOrigin_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 = 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_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 == true) {
// Stored first id
sFirstID_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 = this.id;
bFirstRun_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 = false;
} else if (this.id == sFirstID_4a60cdfc_409f_11ef_a4bd_535fe9748ce7) {
// We've started again. Force origin
sOriginID_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 = sFirstID_4a60cdfc_409f_11ef_a4bd_535fe9748ce7;
bFoundOrigin_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 = true;
} // end Fail-safe
}
}
// Append engagement assets to container
oEngagementContainer_4a60cdfc_409f_11ef_a4bd_535fe9748ce7.append(sHTML_4a60cdfc_409f_11ef_a4bd_535fe9748ce7);
// Stop traversing asset array
if (iDisplayCount_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 >= iMaxDisplay_4a60cdfc_409f_11ef_a4bd_535fe9748ce7) {
bStop_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 = true;
return false;
}
});
// Include block_id on newly added list items
oEngagementContainer_4a60cdfc_409f_11ef_a4bd_535fe9748ce7.find('.engagement-item.original').each(function() {
var sHref_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 = scrubURL($(this).find("a.centered-content-link").attr("href"));
if(sHref_4a60cdfc_409f_11ef_a4bd_535fe9748ce7!="javascript:void(0)"){
// Add content discovery tracking
sHref_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 += '#tncms-source=endcard-gallery';
// Add to image and headlines links
$(this).removeClass('original').find("a.centered-content-link").attr("href", sHref_4a60cdfc_409f_11ef_a4bd_535fe9748ce7);
}
});
// Check next URL
if (sNextUrl_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 && bStop_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 == false) {
// if origin hasn't been found yet and we hit next_url. Trigger the set to pull in again.
if (bFoundOrigin_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 == false) {
// No origin yet. Call the populate function
__tnt.engagement.assets["4a60cdfc-409f-11ef-a4bd-535fe9748ce7"].populate(sNextUrl_4a60cdfc_409f_11ef_a4bd_535fe9748ce7);
} else {
// Append sNextUrl_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 to engagement set
oEngagementContainer_4a60cdfc_409f_11ef_a4bd_535fe9748ce7.append('');
if (iDisplayCount_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 < iMaxDisplay_4a60cdfc_409f_11ef_a4bd_535fe9748ce7) {
// Get next url and request more assets
__tnt.engagement.assets["4a60cdfc-409f-11ef-a4bd-535fe9748ce7"].populate(oEngagementMore_4a60cdfc_409f_11ef_a4bd_535fe9748ce7.data('next-url'));
}
}
}
// Add total count to container
if (bStop_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 == true) {
// Add total count to container
oEngagementContainer_4a60cdfc_409f_11ef_a4bd_535fe9748ce7.attr("data-engagement-total", iDisplayCount_4a60cdfc_409f_11ef_a4bd_535fe9748ce7);
// Remove engagement loading spinner
oEngagementSpinner_4a60cdfc_409f_11ef_a4bd_535fe9748ce7.remove();
return false;
}
} else {
// Empty asset set returned. Go back in for a real set
if(__tnt.engagement.assets["4a60cdfc-409f-11ef-a4bd-535fe9748ce7"].attempts<2){
if(sNextUrl_4a60cdfc_409f_11ef_a4bd_535fe9748ce7==null||sNextUrl_4a60cdfc_409f_11ef_a4bd_535fe9748ce7==""){
sNextUrl_4a60cdfc_409f_11ef_a4bd_535fe9748ce7 = "/sports/collection_4a60cdfc-409f-11ef-a4bd-535fe9748ce7.html";
}
__tnt.engagement.assets["4a60cdfc-409f-11ef-a4bd-535fe9748ce7"].populate(sNextUrl_4a60cdfc_409f_11ef_a4bd_535fe9748ce7);
__tnt.engagement.assets["4a60cdfc-409f-11ef-a4bd-535fe9748ce7"].attempts++;
}
}
});
}
}
// Rewrite URL for preview
// TODO move to one location
function scrubURL(sURL) {
if (typeof sURL != 'undefined'){
return sURL;
}
}
(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.