Slam it home! Photos: Energized Pelicans, big home crowd cap regular season vs. Spurs


The New Orleans Pelicans host the San Antonio Spurs at Smoothie King Center on Wednesday in the NBA regular season finale.


‘;
} 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-sticky-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(”);
}
}

// Refresh waypoints
Waypoint.refreshAll();
if (sInfinityType == ‘summary_sticky_siderail’) {
__tnt.regions.stickySide.determineStick($(‘#sticky-right-rail’), $(‘#sticky-right-rail-spacer’), ‘siderail’);
}
} else {
// Empty asset set returned. Go back in for a real set
populateInfinitySet(sNextUrl);
}
});
}

// Infinite waypoint
var waypoint = new Waypoint({
element: document.getElementById(‘infinite-container’),
handler: function(direction) {
if (direction == ‘down’) {
if (bInfiniStop == true) {
// FINISHED. Kill the waypoint
this.destroy();
} else {
// Log waypoint hit event
__tnt.trackEvent({‘category’:’infinity-scroll’,’action’:’request’, ‘label’:’assets requested’, ‘value’: true});
var nextURL = $(‘#infinite-more’).data(‘next-url’);
populateInfinitySet($(‘#infinite-more’).data(‘next-url’));
}
}
},
offset: ‘bottom-in-view’
});

// Infinity ad
function infinityAd() {
var newIframe = document.createElement(‘iframe’);
newIframe.scrolling = ‘no’;
newIframe.src = ‘http://www.theadvocate.com/tncms/block/546483/?disableTNStatsTracker=1’;
return newIframe;
}
// Rewrite URL to for preview
function scrubURL(sURL) {
if (typeof sURL != ‘undefined’){
return sURL;
}
}



Source link

Leave a Reply

Your email address will not be published.