More like this… ‘; oEngagementContainer_d8975879_c84c_52b8_b8c5_508fc837f26a.append(sHTML_d8975879_c84c_52b8_b8c5_508fc837f26a); } }); } // Build engagement set $.each(oResponse.assets, function(index) { if (index == 1 && sOriginID_d8975879_c84c_52b8_b8c5_508fc837f26a == null) { sOriginID_d8975879_c84c_52b8_b8c5_508fc837f26a = oResponse.assets[0].id; } // Display assets once origin is found // Find origin then begin displaying assets if (bFoundOrigin_d8975879_c84c_52b8_b8c5_508fc837f26a == true) { if (this.id == sOriginID_d8975879_c84c_52b8_b8c5_508fc837f26a) { // Found orgin a second time. Stop gathering assets and kill next_url bStop_d8975879_c84c_52b8_b8c5_508fc837f26a = true; sNextUrl_d8975879_c84c_52b8_b8c5_508fc837f26a = null; oEngagementMore_d8975879_c84c_52b8_b8c5_508fc837f26a.remove(); } else if (bStop_d8975879_c84c_52b8_b8c5_508fc837f26a == false && this.id != ‘d8975879-c84c-52b8-b8c5-508fc837f26a’) { // Display asset var sHTML_d8975879_c84c_52b8_b8c5_508fc837f26a = ”; if (this.content.includes(‘engagement-asset’) && iDisplayCount_d8975879_c84c_52b8_b8c5_508fc837f26a ‘ + this.content + ”; } } } else { if (this.id == sOriginID_d8975879_c84c_52b8_b8c5_508fc837f26a) { // Origin found. Begin displaying assets bFoundOrigin_d8975879_c84c_52b8_b8c5_508fc837f26a = true; } else { // Origin found

Read More At Article Source | Article Attribution