PHOTOS: People attend first Squeal on the Eel fest – pharostribune.com

'; oEngagementContainer_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec.append(sHTML_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec); } }); } // Build engagement set $.each(oResponse.assets, function(index) { if (index == 1 && sOriginID_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec == null) { sOriginID_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec = oResponse.assets[0].id; } // Display assets once origin is found // Find origin then begin displaying assets if (bFoundOrigin_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec == true) { if (this.id == sOriginID_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec) { // Found orgin a second time. Stop gathering assets and kill next_url bStop_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec = true; sNextUrl_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec = null; oEngagementMore_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec.remove(); } else if (bStop_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec == false && this.id != 'ccfae8f0-ef58-11ec-b36e-5f4fc6fff4ec') { // Display asset var sHTML_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec = ''; if (this.content.includes('engagement-asset') && iDisplayCount_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec ' + this.content + ''; } } } else { if (this.id == sOriginID_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec) { // Origin found. Begin displaying assets bFoundOrigin_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec = 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_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec == true) { // Stored first id sFirstID_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec = this.id; bFirstRun_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec = false; } else if (this.id == sFirstID_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec) { // We've started again. Force origin sOriginID_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec = sFirstID_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec; bFoundOrigin_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec = true; } // end Fail-safe } } // Append engagement assets to container oEngagementContainer_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec.append(sHTML_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec); // Stop traversing asset array if (iDisplayCount_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec >= iMaxDisplay_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec) { bStop_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec = true; return false; } }); // Include block_id on newly added list items oEngagementContainer_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec.find('.engagement-item.original').each(function() { var sHref_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec = scrubURL($(this).find("a.centered-content-link").attr("href")); if(sHref_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec!="javascript:void(0)"){ // Add content discovery tracking sHref_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec += '#tncms-source=endcard-gallery'; // Add to image and headlines links $(this).removeClass('original').find("a.centered-content-link").attr("href", sHref_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec); } }); // Check next URL if (sNextUrl_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec && bStop_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec == false) { // if origin hasn't been found yet and we hit next_url. Trigger the set to pull in again. if (bFoundOrigin_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec == false) { // No origin yet. Call the populate function __tnt.engagement.assets["ccfae8f0-ef58-11ec-b36e-5f4fc6fff4ec"].populate(sNextUrl_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec); } else { // Append sNextUrl_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec to engagement set oEngagementContainer_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec.append(''); if (iDisplayCount_ccfae8f0_ef58_11ec_b36e_5f4fc6fff4ec

Read more:

PHOTOS: People attend first Squeal on the Eel fest - pharostribune.com

Related Posts
This entry was posted in $1$s. Bookmark the permalink.