noranisa commited on
Commit
3e22e71
·
verified ·
1 Parent(s): 58c74e6

Update templates/result.html

Browse files
Files changed (1) hide show
  1. templates/result.html +6 -1
templates/result.html CHANGED
@@ -457,7 +457,12 @@ function render(d) {
457
  // HEADER
458
  $('h-kw').textContent = kw;
459
  $('h-total').textContent = data.length;
460
- $('h-src').textContent = src==='all'?'YT+Reddit':src;
 
 
 
 
 
461
  $('ft-kw').textContent = kw;
462
 
463
  // METRICS
 
457
  // HEADER
458
  $('h-kw').textContent = kw;
459
  $('h-total').textContent = data.length;
460
+ const srcLabel = {
461
+ 'all': 'YT+Reddit+IG', 'youtube': 'YouTube',
462
+ 'reddit': 'Reddit', 'instagram': 'Instagram',
463
+ 'youtube,instagram': 'YT+IG', 'reddit,instagram': 'Reddit+IG'
464
+ };
465
+ $('h-src').textContent = srcLabel[src] || src;
466
  $('ft-kw').textContent = kw;
467
 
468
  // METRICS