
Panthers Lions Football
Carolina Panthers quarterback Cam Newton throws during the first half of an NFL football game against the Detroit Lions, Sunday, Nov. 18, 2018, in Detroit.
Panthers Lions Football
Detroit Lions defensive back Mike Ford (38) stops Carolina Panthers wide receiver DJ Moore during the first half of an NFL football game Sunday, Nov. 18, 2018, in Detroit.
Panthers Lions Football
Carolina Panthers quarterback Cam Newton runs to the bench as he celebrates a touchdown during the first half of an NFL football game against the Detroit Lions, Sunday, Nov. 18, 2018, in Detroit.
Panthers Lions Football
Carolina Panthers quarterback Cam Newton (1) throws during the first half of an NFL football game against the Detroit Lions, Sunday, Nov. 18, 2018, in Detroit.
Panthers Lions Football
Detroit Lions defensive end Ezekiel Ansah (94) sacks Carolina Panthers quarterback Cam Newton (1) during the first half of an NFL football game, Sunday, Nov. 18, 2018, in Detroit.
Panthers Lions Football
Detroit Lions running back Kerryon Johnson (33) stiff arms Carolina Panthers free safety Mike Adams (29) during the second half of an NFL football game, Sunday, Nov. 18, 2018, in Detroit.
Panthers Lions Football
Carolina Panthers wide receiver Curtis Samuel (10), defended by Detroit Lions cornerback Teez Tabor (31), falls into the end zone for a touchdown during the second half of an NFL football game, Sunday, Nov. 18, 2018, in Detroit.
Panthers Lions Football
Carolina Panthers quarterback Cam Newton, left, is checked after being sacked during the second half of an NFL football game against the Detroit Lions, Sunday, Nov. 18, 2018, in Detroit.
Panthers Lions Football
Detroit Lions wide receiver Kenny Golladay (19), tries puling away from Carolina Panthers cornerback James Bradberry (24) during the second half of an NFL football game, Sunday, Nov. 18, 2018, in Detroit.
Panthers Lions Football
Detroit Lions cornerback Nevin Lawson (24) waves his arms as Carolina Panthers kicker Graham Gano (9) watches his missed field goal during the second half of an NFL football game, Sunday, Nov. 18, 2018, in Detroit.
Panthers Lions Football
Detroit Lions wide receiver Kenny Golladay (19) is stopped by Carolina Panthers cornerback James Bradberry during the second half of an NFL football game, Sunday, Nov. 18, 2018, in Detroit.
Panthers Lions Football
Carolina Panthers running back Christian McCaffrey (22) and wide receiver Curtis Samuel celebrate the touchdown by Samuel during the second half of an NFL football game, Sunday, Nov. 18, 2018, in Detroit.
Panthers Lions Football
Detroit Lions wide receiver Kenny Golladay (19), defended by Carolina Panthers cornerback James Bradberry (24) catches a 19-yard pass for a touchdown during the second half of an NFL football game, Sunday, Nov. 18, 2018, in Detroit.
Panthers Lions Football
Detroit Lions wide receiver Kenny Golladay (19), defended by Carolina Panthers cornerback James Bradberry (24), catches a 19-yard pass for a touchdown during the second half of an NFL football game, Sunday, Nov. 18, 2018, in Detroit.
Panthers Lions Football
Detroit Lions outside linebacker Devon Kennard (42) raises his arm next to Carolina Panthers running back Christian McCaffrey after the Panthers failed to make a 2-point conversion during the second half of an NFL football game, Sunday, Nov. 18, 2018, in Detroit.
Panthers Lions Football
Carolina Panthers quarterback Cam Newton (1) and Detroit Lions quarterback Matthew Stafford (9) greet each other after an NFL football game, Sunday, Nov. 18, 2018, in Detroit.
Panthers Lions Football
Carolina Panthers quarterback Cam Newton walks off the field after an NFL football game against the Detroit Lions, Sunday, Nov. 18, 2018, in Detroit.
Panthers Lions Football
Carolina Panthers wide receiver Damiere Byrd, left, and defensive back Captain Munnerlyn, right, pose with Detroit Lions wide receiver Bruce Ellington (12) after swapping jerseys after an NFL football game, Sunday, Nov. 18, 2018, in Detroit.
Panthers Lions Football
Carolina Panthers wide receiver Damiere Byrd signs his jersey after swapping with Detroit Lions wide receiver Bruce Ellington (12) after an NFL football game, Sunday, Nov. 18, 2018, in Detroit.
Panthers Lions Football
Carolina Panthers quarterback Cam Newton runs off the field after an NFL football game against the Detroit Lions, Sunday, Nov. 18, 2018, in Detroit. The Lions won 20-19.
Panthers Lions Football
Carolina Panthers head coach Ron Rivera addresses the media after an NFL football game against the Detroit Lions, Sunday, Nov. 18, 2018, in Detroit.
Panthers Lions Football
Carolina Panthers quarterback Cam Newton runs off the field after an NFL football game against the Detroit Lions, Sunday, Nov. 18, 2018, in Detroit. The Lions won 20-19.
Panthers Lions Football
Carolina Panthers head coach Ron Rivera addresses the media after an NFL football game against the Detroit Lions, Sunday, Nov. 18, 2018, in Detroit.
Panthers Lions Football
Carolina Panthers quarterback Cam Newton addresses the media after an NFL football game against the Detroit Lions, Sunday, Nov. 18, 2018, in Detroit.
Panthers Lions Football
Carolina Panthers quarterback Cam Newton addresses the media after an NFL football game against the Detroit Lions, Sunday, Nov. 18, 2018, in Detroit.
‘;
} else {
sHTML += ‘
‘ + this.content + ‘
if (bShowAd == true) {
// Show advertisement
sHTML += ”
bShowAd = false;
} else {
bShowAd = true;
}
sHTML += ‘
‘;
}
}
}
} else {
if (this.id == sOriginID) {
// Origin found. Begin displaying assets
bFoundOrigin = 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 == true) {
// Stored first id
sFirstID = this.id;
bFirstRun = false;
} else if (this.id == sFirstID) {
// We’ve started again. Force origin
sOriginID = sFirstID;
bFoundOrigin = true;
} // end Fail-safe
}
}
// Append infinity set to container
$(“#infinite-container”).append(sHTML);
});
// Include block_id on newly added list items
$(‘#infinite-container .infinite-item.original’).each(function() {
var sHref = scrubURL($(this).find(“.card-headline a”).attr(“href”));
// Add to image and headlines links
$(this).removeClass(‘original’)
.find(“.card-headline a, .image a”)
.attr(“href”, sHref + “#tncms-source=infinity-scroll-summary-siderail-latest”);
});
// Check next URL
if (sNextUrl) {
// if origin hasn’t been found yet and we hit next_url. Trigger the set to pull in again.
if (bFoundOrigin == false) {
// No origin yet. Call the populate function
populateInfinitySet(sNextUrl);
} else {
// Append sNextUrl to infinity set
$(“#infinite-container”).append(”);
}
}
// Ad waypoint and handler to insert ads next to summary
$(‘.infinity-ad.empty’).waypoint({
offset: ‘80%’,
handler: function(direction) {
// Kill waypoint
this.destroy();
$(this.element).removeClass(’empty’);
// Create and append ad iframe. Make sure this occurs only once
var newIframe = infinityAd();
if($(this.element).children().length
