‘; } else { return ‘

‘ + author + ‘

utahjazz.com

‘; } } } if (authorBlock.length) { // Author Block Details var authName = $(‘.author-block__author’).html(); if(authName) { authorBlockDetails = generateAuthorBlock(authName); } // Author Image Code if(authorBlockImage) { authorBlockImage = ”; } // Author Block Posted Date authorBlockPosted = $(‘.author-block__post-date’).html(); if(authorBlockPosted) { authorBlockPosted = authorBlockPosted.split(‘:’); authorBlockPosted = ‘

‘ + authorBlockPosted[0] + ‘:
‘ + authorBlockPosted[1].trim() + ‘

‘; } // Author Block Read Time authorBlockReadTime = ‘

Read Time:
‘ + determineReadTime($(‘.field-name-body p’)) + ‘

‘; } var authorBlockContent = ”; if(authorBlockImage) authorBlockContent += authorBlockImage; if(authorBlockDetails) authorBlockContent += authorBlockDetails; authorBlockContent += ”; if(authorBlockPosted) authorBlockContent += authorBlockPosted; if(authorBlockReadTime) authorBlockContent += authorBlockReadTime; authorBlock.html(authorBlockContent); $(‘.pane-node-body’).append(”); var ujArticleTrendingContent = { props: { isFullWidth: { type: Boolean, default: false } }, data: function() { return { contentData: null, trendingData: { ’24h’: null, ‘3d’: null, ‘1w’: null, ‘3w’: null }, timeframe: “24h”, currentArticleNID: null }; }, computed: { trendingDisplay: function() { var key = ‘computed’ + this.timeframe; if(this[key]) return this[key]; return []; }, computed24h: function() { if(!this.contentData || !this.trendingData[’24h’]) return []; var PIECE_LIMIT = 8; var computed24h = []; var usedNIDs = []; var c, p, currentContent; // remove current article from contentData, if present for(c = 0; c = PIECE_LIMIT) break; currentContent = this.contentData[c]; var postTime = moment.utc(currentContent.published); if(this.isWithinTimeframe(12, “hours”, postTime)) { computed24h.push(currentContent); usedNIDs.push(currentContent.nid); } } // then match items with parsely data for(p = 0; p = PIECE_LIMIT) break; var parselyItem = this.trendingData[’24h’][p]; for(c = 0; c -1) { computed24h.push(currentContent); usedNIDs.push(currentContent.nid); } } } // push remaining chronological content, if necessary for(c = 0; c = PIECE_LIMIT) break; currentContent = this.contentData[c]; if(usedNIDs.indexOf(currentContent.nid)

Joe Murphy/NBAE via Getty Images

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

Log in with your credentials

Forgot your details?