From ede0a6f1a4fc326cf507bf4a5b9015bf2e973151 Mon Sep 17 00:00:00 2001 From: Marian Steinbach Date: Fri, 25 May 2018 20:05:19 +0200 Subject: [PATCH] Replace unicode check and x icons with ionicons icons --- webapp/src/index.js | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/webapp/src/index.js b/webapp/src/index.js index 4044d6f..54e42c7 100644 --- a/webapp/src/index.js +++ b/webapp/src/index.js @@ -17,6 +17,9 @@ $(function(){ var table = null; + var yes = '', + no = ''; + $.getJSON('data/screenshots.json', function(screenshots){ $.getJSON('data/spider_result.json', function(data){ @@ -53,10 +56,10 @@ $(function(){ // IPs var ips = _.join(item.details.ipv4_addresses, ', '); - row.append('' + (ips === '' ? '❌' : ips) + ''); + row.append('' + (ips === '' ? no : ips) + ''); // SITE_REACHABLE - row.append('' + (item.result.SITE_REACHABLE.value ? '✅' : '❌') + ''); + row.append('' + (item.result.SITE_REACHABLE.value ? yes : no) + ''); // HTTP_RESPONSE_DURATION var durationClass = 'bad'; @@ -67,26 +70,26 @@ $(function(){ // FAVICON var icon = item.result.FAVICON.value; var iconFile = (icon ? item.details.icons[0] : ''); - row.append('' + (icon ? ('') : '❌') + ''); + row.append('' + (icon ? ('') : no) + ''); // HTTPS var hasHTTPS = item.result.HTTPS.value; - row.append('' + (hasHTTPS ? '✅' : '❌') + ''); + row.append('' + (hasHTTPS ? yes : no) + ''); // WWW_OPTIONAL var wwwOptional = item.result.WWW_OPTIONAL.value; - row.append('' + (wwwOptional ? '✅' : '❌') + ''); + row.append('' + (wwwOptional ? yes : no) + ''); // one canonical URL var canonical = item.result.CANONICAL_URL.value; - row.append('' + (canonical ? '✅' : '❌') + ''); + row.append('' + (canonical ? yes : no) + ''); var responsive = item.result.RESPONSIVE.value; - row.append('' + (responsive ? '✅' : '❌') + ''); + row.append('' + (responsive ? yes : no) + ''); // feeds var feeds = item.result.FEEDS.value; - row.append('' + (feeds ? '✅' : '❌') + ''); + row.append('' + (feeds ? yes : no) + ''); // screenshots var screenshot = false; @@ -98,7 +101,7 @@ $(function(){ screenshot += ''; } } - row.append('' + (screenshot ? screenshot : '❌') + ''); + row.append('' + (screenshot ? screenshot : no) + ''); // cms row.append('' + (item.details.cms ? item.details.cms : '') + '');