mirror of
https://github.com/netzbegruenung/green-spider.git
synced 2024-05-06 02:43:42 +02:00
Adapt display code for the favicon
This commit is contained in:
parent
aa3b75add4
commit
e2077fe12b
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load diff
|
@ -75,8 +75,8 @@ $(function(){
|
||||||
}
|
}
|
||||||
|
|
||||||
// FAVICON
|
// FAVICON
|
||||||
var icon = item.result.FAVICON.value && (item.details.icons[0] != null);
|
var icon = item.result.FAVICON.value && (Object.keys(item.details.icons).length > 0);
|
||||||
var iconFile = (icon && (item.details.icons[0] != null) ? item.details.icons[0] : '');
|
var iconFile = icon ? Object.values(item.details.icons)[0] : '';
|
||||||
var noicon = '<span class="tt" title="Diese Site hat kein Icon.">'+ no +'</span>'
|
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);
|
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>');
|
row.append('<td class="' + (icon ? 'good' : 'bad') + ' text-center" data-order="'+ iconFile +'">' + icontag + '</td>');
|
||||||
|
|
Loading…
Reference in a new issue