X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/e0198839a18c2bcfaecf98703833632f1962e275..1f125d4bf3b2d11a1f1aae9f87562a150bebedf4:/browser.plp diff --git a/browser.plp b/browser.plp index ef260e1..4ed3f1b 100644 --- a/browser.plp +++ b/browser.plp @@ -8,7 +8,11 @@ Html({ version => 'v1.0', description => "caniuse.", - keywords => [qw'html css browser feature'], + keywords => [qw' + web browser support compatibility usage available feature + html html5 css css3 svg javascript js dom mobile + ie internet explorer firefox chrome safari webkit opera + '], stylesheet => [qw'circus dark mono red light'], data => ['browser-support.inc.pl'], }); @@ -107,17 +111,20 @@ $canihas ||= { my $scorediv = (max(map { ref $_ eq 'HASH' && sum(values %$_) } values %$canihas) // 1) / 100; print ''; -print '' x 3; +print ''; # should match first thead row printf '', scalar @{ $versions{$_} } for @browsers; -print "\n"; +say ''; my $header = join('', '', '
feature', (map { my $name = $caniuse->{agents}->{$_}->{browser}; - sprintf('%s', + sprintf('%s', scalar @{ $versions{$_} }, + join(' ', map {"b-a-$_"} grep {$_} + $_, @{ $caniuse->{agents}->{$_} }{'prefix', 'type'}, + ), join(' ', sprintf('%.1f%%', sum(values %{ $canihas->{$_} })), $name, @@ -189,6 +196,7 @@ sub saytitlecol { for ($row->{categories}) { my $cell = $_ ? lc $_->[0] : '-'; + $cell =~ s/ api$//; # trim unessential fluff in 'js api' printf '%s', join(' + ', @$_), $cell; }