';
if (json['mode'] == 'single') {
if (count > 0) {
buffer += '“' + json['terms'] + '” appears in ' + count + ' places in this video.';
} else {
buffer += '' + json['notice'] + '';
}
if (json['count_global'] > 0) {
buffer += '
Did you mean: ' + json['correction'] + ''; } } if (json['back']) { if (json['back']['landing_page']) { if (json['back']['landing_page'].length > 0) { buffer += '
Back to: ' + json['back']['title'] + ''; } } } if (count > 0 && json['mode'] == 'single') { buffer += '
Search All Videos
';
}
} else {
if (count > 0) {
var mention_single = '';
if(json['count_single'] > 0) {
mention_single = '' + json['count_single'] + ' places in this video and ';
}
buffer += '“' + json['terms'] + '” appears in ' + mention_single + '' + count + ' places in ' + (json['count_presentation'] - 1) + ' other videos.';
} else {
buffer += '' + json['notice'] + '';
}
if (json['count_single'] > 0) {
buffer += 'Search Only This Video
';
}
}
if (json['correction'] && count < 1) {
if (json['correction'].length > 0) {
buffer += 'Did you mean: ' + json['correction'] + ''; } } if (json['back']) { if (json['back']['landing_page']) { if (json['back']['landing_page'].length > 0) { buffer += '
Back to: ' + json['back']['title'] + ''; } } } if (count > 0 && json['mode'] == 'single') { buffer += '
RelevanceTime
';
}
buffer += '';
buffer += '
';
buffer += '
';
}
if (presentation_count > 3) {
buffer += '';
}
//footer
buffer += '';
buffer += '
';
buffer += '' + row['blob_text'] + '
';
buffer += '';
buffer += '' + row['seconds_display'] + '
';
buffer += '