Featured
The Town of Velma hosted its annual Summerfest on Friday, July 12 at the Velma Picnic Grounds. The annual event filled the park with fun for the entire family and featured live music with Noah Bowman and The Creek Howlers and inflatables for the kids.
More like this...
'; oEngagementContainer_c3f1c884_4616_11ef_a741_9fd8f43d987e.append(sHTML_c3f1c884_4616_11ef_a741_9fd8f43d987e); } }); } // Build engagement set $.each(oResponse.assets, function(index) { if (index == 1 && sOriginID_c3f1c884_4616_11ef_a741_9fd8f43d987e == null) { sOriginID_c3f1c884_4616_11ef_a741_9fd8f43d987e = oResponse.assets[0].id; } // Display assets once origin is found // Find origin then begin displaying assets if (bFoundOrigin_c3f1c884_4616_11ef_a741_9fd8f43d987e == true) { if (this.id == sOriginID_c3f1c884_4616_11ef_a741_9fd8f43d987e) { // Found orgin a second time. Stop gathering assets and kill next_url bStop_c3f1c884_4616_11ef_a741_9fd8f43d987e = true; sNextUrl_c3f1c884_4616_11ef_a741_9fd8f43d987e = null; oEngagementMore_c3f1c884_4616_11ef_a741_9fd8f43d987e.remove(); } else if (bStop_c3f1c884_4616_11ef_a741_9fd8f43d987e == false && this.id != 'c3f1c884-4616-11ef-a741-9fd8f43d987e') { // Display asset var sHTML_c3f1c884_4616_11ef_a741_9fd8f43d987e = ''; if (this.content.includes('engagement-asset') && iDisplayCount_c3f1c884_4616_11ef_a741_9fd8f43d987e < iMaxDisplay_c3f1c884_4616_11ef_a741_9fd8f43d987e) { iDisplayCount_c3f1c884_4616_11ef_a741_9fd8f43d987e ++; sHTML_c3f1c884_4616_11ef_a741_9fd8f43d987e += '
' + this.content + '
'; } } } else { if (this.id == sOriginID_c3f1c884_4616_11ef_a741_9fd8f43d987e) { // Origin found. Begin displaying assets bFoundOrigin_c3f1c884_4616_11ef_a741_9fd8f43d987e = 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_c3f1c884_4616_11ef_a741_9fd8f43d987e == true) { // Stored first id sFirstID_c3f1c884_4616_11ef_a741_9fd8f43d987e = this.id; bFirstRun_c3f1c884_4616_11ef_a741_9fd8f43d987e = false; } else if (this.id == sFirstID_c3f1c884_4616_11ef_a741_9fd8f43d987e) { // We've started again. Force origin sOriginID_c3f1c884_4616_11ef_a741_9fd8f43d987e = sFirstID_c3f1c884_4616_11ef_a741_9fd8f43d987e; bFoundOrigin_c3f1c884_4616_11ef_a741_9fd8f43d987e = true; } // end Fail-safe } } // Append engagement assets to container oEngagementContainer_c3f1c884_4616_11ef_a741_9fd8f43d987e.append(sHTML_c3f1c884_4616_11ef_a741_9fd8f43d987e); // Stop traversing asset array if (iDisplayCount_c3f1c884_4616_11ef_a741_9fd8f43d987e >= iMaxDisplay_c3f1c884_4616_11ef_a741_9fd8f43d987e) { bStop_c3f1c884_4616_11ef_a741_9fd8f43d987e = true; return false; } }); // Include block_id on newly added list items oEngagementContainer_c3f1c884_4616_11ef_a741_9fd8f43d987e.find('.engagement-item.original').each(function() { var sHref_c3f1c884_4616_11ef_a741_9fd8f43d987e = scrubURL($(this).find("a.centered-content-link").attr("href")); if(sHref_c3f1c884_4616_11ef_a741_9fd8f43d987e!="javascript:void(0)"){ // Add content discovery tracking sHref_c3f1c884_4616_11ef_a741_9fd8f43d987e += '#tncms-source=endcard-gallery'; // Add to image and headlines links $(this).removeClass('original').find("a.centered-content-link").attr("href", sHref_c3f1c884_4616_11ef_a741_9fd8f43d987e); } }); // Check next URL if (sNextUrl_c3f1c884_4616_11ef_a741_9fd8f43d987e && bStop_c3f1c884_4616_11ef_a741_9fd8f43d987e == false) { // if origin hasn't been found yet and we hit next_url. Trigger the set to pull in again. if (bFoundOrigin_c3f1c884_4616_11ef_a741_9fd8f43d987e == false) { // No origin yet. Call the populate function __tnt.engagement.assets["c3f1c884-4616-11ef-a741-9fd8f43d987e"].populate(sNextUrl_c3f1c884_4616_11ef_a741_9fd8f43d987e); } else { // Append sNextUrl_c3f1c884_4616_11ef_a741_9fd8f43d987e to engagement set oEngagementContainer_c3f1c884_4616_11ef_a741_9fd8f43d987e.append('
'); if (iDisplayCount_c3f1c884_4616_11ef_a741_9fd8f43d987e < iMaxDisplay_c3f1c884_4616_11ef_a741_9fd8f43d987e) { // Get next url and request more assets __tnt.engagement.assets["c3f1c884-4616-11ef-a741-9fd8f43d987e"].populate(oEngagementMore_c3f1c884_4616_11ef_a741_9fd8f43d987e.data('next-url')); } } } // Add total count to container if (bStop_c3f1c884_4616_11ef_a741_9fd8f43d987e == true) { // Add total count to container oEngagementContainer_c3f1c884_4616_11ef_a741_9fd8f43d987e.attr("data-engagement-total", iDisplayCount_c3f1c884_4616_11ef_a741_9fd8f43d987e); // Remove engagement loading spinner oEngagementSpinner_c3f1c884_4616_11ef_a741_9fd8f43d987e.remove(); return false; } } else { // Empty asset set returned. Go back in for a real set if(__tnt.engagement.assets["c3f1c884-4616-11ef-a741-9fd8f43d987e"].attempts<2){ if(sNextUrl_c3f1c884_4616_11ef_a741_9fd8f43d987e==null||sNextUrl_c3f1c884_4616_11ef_a741_9fd8f43d987e==""){ sNextUrl_c3f1c884_4616_11ef_a741_9fd8f43d987e = "/community/gallery-town-of-velma-celebrates-with-annual-summerfest/collection_c3f1c884-4616-11ef-a741-9fd8f43d987e.html"; } __tnt.engagement.assets["c3f1c884-4616-11ef-a741-9fd8f43d987e"].populate(sNextUrl_c3f1c884_4616_11ef_a741_9fd8f43d987e); __tnt.engagement.assets["c3f1c884-4616-11ef-a741-9fd8f43d987e"].attempts++; } } }); } } // Rewrite URL for preview // TODO move to one location function scrubURL(sURL) { if (typeof sURL != 'undefined'){ return sURL; } }
More like this...
'; oEngagementContainer_c3f1c884_4616_11ef_a741_9fd8f43d987e.append(sHTML_c3f1c884_4616_11ef_a741_9fd8f43d987e); } }); } // Build engagement set $.each(oResponse.assets, function(index) { if (index == 1 && sOriginID_c3f1c884_4616_11ef_a741_9fd8f43d987e == null) { sOriginID_c3f1c884_4616_11ef_a741_9fd8f43d987e = oResponse.assets[0].id; } // Display assets once origin is found // Find origin then begin displaying assets if (bFoundOrigin_c3f1c884_4616_11ef_a741_9fd8f43d987e == true) { if (this.id == sOriginID_c3f1c884_4616_11ef_a741_9fd8f43d987e) { // Found orgin a second time. Stop gathering assets and kill next_url bStop_c3f1c884_4616_11ef_a741_9fd8f43d987e = true; sNextUrl_c3f1c884_4616_11ef_a741_9fd8f43d987e = null; oEngagementMore_c3f1c884_4616_11ef_a741_9fd8f43d987e.remove(); } else if (bStop_c3f1c884_4616_11ef_a741_9fd8f43d987e == false && this.id != 'c3f1c884-4616-11ef-a741-9fd8f43d987e') { // Display asset var sHTML_c3f1c884_4616_11ef_a741_9fd8f43d987e = ''; if (this.content.includes('engagement-asset') && iDisplayCount_c3f1c884_4616_11ef_a741_9fd8f43d987e < iMaxDisplay_c3f1c884_4616_11ef_a741_9fd8f43d987e) { iDisplayCount_c3f1c884_4616_11ef_a741_9fd8f43d987e ++; sHTML_c3f1c884_4616_11ef_a741_9fd8f43d987e += '
' + this.content + '
'; } } } else { if (this.id == sOriginID_c3f1c884_4616_11ef_a741_9fd8f43d987e) { // Origin found. Begin displaying assets bFoundOrigin_c3f1c884_4616_11ef_a741_9fd8f43d987e = 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_c3f1c884_4616_11ef_a741_9fd8f43d987e == true) { // Stored first id sFirstID_c3f1c884_4616_11ef_a741_9fd8f43d987e = this.id; bFirstRun_c3f1c884_4616_11ef_a741_9fd8f43d987e = false; } else if (this.id == sFirstID_c3f1c884_4616_11ef_a741_9fd8f43d987e) { // We've started again. Force origin sOriginID_c3f1c884_4616_11ef_a741_9fd8f43d987e = sFirstID_c3f1c884_4616_11ef_a741_9fd8f43d987e; bFoundOrigin_c3f1c884_4616_11ef_a741_9fd8f43d987e = true; } // end Fail-safe } } // Append engagement assets to container oEngagementContainer_c3f1c884_4616_11ef_a741_9fd8f43d987e.append(sHTML_c3f1c884_4616_11ef_a741_9fd8f43d987e); // Stop traversing asset array if (iDisplayCount_c3f1c884_4616_11ef_a741_9fd8f43d987e >= iMaxDisplay_c3f1c884_4616_11ef_a741_9fd8f43d987e) { bStop_c3f1c884_4616_11ef_a741_9fd8f43d987e = true; return false; } }); // Include block_id on newly added list items oEngagementContainer_c3f1c884_4616_11ef_a741_9fd8f43d987e.find('.engagement-item.original').each(function() { var sHref_c3f1c884_4616_11ef_a741_9fd8f43d987e = scrubURL($(this).find("a.centered-content-link").attr("href")); if(sHref_c3f1c884_4616_11ef_a741_9fd8f43d987e!="javascript:void(0)"){ // Add content discovery tracking sHref_c3f1c884_4616_11ef_a741_9fd8f43d987e += '#tncms-source=endcard-gallery'; // Add to image and headlines links $(this).removeClass('original').find("a.centered-content-link").attr("href", sHref_c3f1c884_4616_11ef_a741_9fd8f43d987e); } }); // Check next URL if (sNextUrl_c3f1c884_4616_11ef_a741_9fd8f43d987e && bStop_c3f1c884_4616_11ef_a741_9fd8f43d987e == false) { // if origin hasn't been found yet and we hit next_url. Trigger the set to pull in again. if (bFoundOrigin_c3f1c884_4616_11ef_a741_9fd8f43d987e == false) { // No origin yet. Call the populate function __tnt.engagement.assets["c3f1c884-4616-11ef-a741-9fd8f43d987e"].populate(sNextUrl_c3f1c884_4616_11ef_a741_9fd8f43d987e); } else { // Append sNextUrl_c3f1c884_4616_11ef_a741_9fd8f43d987e to engagement set oEngagementContainer_c3f1c884_4616_11ef_a741_9fd8f43d987e.append('
'); if (iDisplayCount_c3f1c884_4616_11ef_a741_9fd8f43d987e < iMaxDisplay_c3f1c884_4616_11ef_a741_9fd8f43d987e) { // Get next url and request more assets __tnt.engagement.assets["c3f1c884-4616-11ef-a741-9fd8f43d987e"].populate(oEngagementMore_c3f1c884_4616_11ef_a741_9fd8f43d987e.data('next-url')); } } } // Add total count to container if (bStop_c3f1c884_4616_11ef_a741_9fd8f43d987e == true) { // Add total count to container oEngagementContainer_c3f1c884_4616_11ef_a741_9fd8f43d987e.attr("data-engagement-total", iDisplayCount_c3f1c884_4616_11ef_a741_9fd8f43d987e); // Remove engagement loading spinner oEngagementSpinner_c3f1c884_4616_11ef_a741_9fd8f43d987e.remove(); return false; } } else { // Empty asset set returned. Go back in for a real set if(__tnt.engagement.assets["c3f1c884-4616-11ef-a741-9fd8f43d987e"].attempts<2){ if(sNextUrl_c3f1c884_4616_11ef_a741_9fd8f43d987e==null||sNextUrl_c3f1c884_4616_11ef_a741_9fd8f43d987e==""){ sNextUrl_c3f1c884_4616_11ef_a741_9fd8f43d987e = "/community/gallery-town-of-velma-celebrates-with-annual-summerfest/collection_c3f1c884-4616-11ef-a741-9fd8f43d987e.html"; } __tnt.engagement.assets["c3f1c884-4616-11ef-a741-9fd8f43d987e"].populate(sNextUrl_c3f1c884_4616_11ef_a741_9fd8f43d987e); __tnt.engagement.assets["c3f1c884-4616-11ef-a741-9fd8f43d987e"].attempts++; } } }); } } // Rewrite URL for preview // TODO move to one location function scrubURL(sURL) { if (typeof sURL != 'undefined'){ return sURL; } }