X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/9dfef01d97d7c0f4f7137671e2c370e3cfc686a3..2ae4ccbb6ac3ce310890beef55fda11f670772bb:/browser.plp diff --git a/browser.plp b/browser.plp index 8c0bd6a..3f7b6f8 100644 --- a/browser.plp +++ b/browser.plp @@ -9,7 +9,7 @@ Html({ description => "caniuse.", keywords => [qw'html css browser feature'], - stylesheet => [qw'circus dark mono red'], + stylesheet => [qw'circus dark mono red light'], data => ['browser-support.inc.pl'], }); @@ -32,14 +32,14 @@ my %CSTATS = ( 'p j' => 'l2', 'j' => 'l2', 'p' => 'l2', - 'u' => 'ex', + 'u' => 'l9', ); my %CSTATUS = ( - unoff => 'ex', # unofficial - wd => 'l0', # draft - pr => 'l2', # proposed - cr => 'l4', # candidate - rec => 'l5', # recommendation + unoff => 'l0', # unofficial + wd => 'l4', # draft + cr => 'l5', # candidate + pr => 'l5', # proposed + rec => 'l6', # recommendation ietf => 'l6', # standard ); my @browsers = qw(trident gecko webkit_saf webkit_chr presto); @@ -147,7 +147,11 @@ for my $id (sort { printf '%s', join(' ', X => $CSTATS{ $data->{$browser}->{$prev} }, - sprintf('opacity%.0f', $usage / $scorediv), + !$usage ? ('p0') : ('p', + sprintf('p%01d', $usage / 10), + sprintf('p%02d', $usage), + ), + sprintf('pp%02d', $usage / $scorediv), ), scalar @span, $usage, @@ -183,19 +187,6 @@ sub showversions { } :> -
@@ -207,6 +198,16 @@ alert(t); missing +
+ Usage percentage: + 0 - + .01 - + 1-9 - + 10 - + 20 - + majority +
+