Browse Source

Adapt display code for the favicon

pull/60/head
Marian Steinbach 4 years ago
parent
commit
e2077fe12b
  1. 2
      docs/bundle.js
  2. 13900
      docs/data/spider_result.json
  3. 4
      webapp/src/index.js

2
docs/bundle.js

File diff suppressed because one or more lines are too long

13900
docs/data/spider_result.json

File diff suppressed because it is too large Load Diff

4
webapp/src/index.js

@ -75,8 +75,8 @@ $(function(){
}
// FAVICON
var icon = item.result.FAVICON.value && (item.details.icons[0] != null);
var iconFile = (icon && (item.details.icons[0] != null) ? item.details.icons[0] : '');
var icon = item.result.FAVICON.value && (Object.keys(item.details.icons).length > 0);
var iconFile = icon ? Object.values(item.details.icons)[0] : '';
var noicon = '<span class="tt" title="Diese Site hat kein Icon.">'+ no +'</span>'
var icontag = (icon ? ('<img src="/siteicons/' + iconFile + '" class="siteicon tt" title="Die Site verweist auf das gezeigte Icon.">') : noicon);
row.append('<td class="' + (icon ? 'good' : 'bad') + ' text-center" data-order="'+ iconFile +'">' + icontag + '</td>');

Loading…
Cancel
Save