X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/9dd7b1b37f9b31ca95965d2a41808771d0863053..044c816621892378582d969646276a569ac4eb06:/browser.plp?ds=inline diff --git a/browser.plp b/browser.plp index afad32c..fc04389 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'], }); @@ -20,6 +20,7 @@ Html({ with Wikimedia browser usage statistics.
+Browser usage data not found: %s.
\n", $_ for $! || $@; + +{ + map { + $_ => +{ + map { + ($_->[4] => 0 ), # future + ($_->[3] => .5), # next + ($_->[0] => 5 ), # past + ($_->[1] => 10 ), # previous + ($_->[2] => 30 ), # current + } $caniuse->{agents}->{$_}->{versions} + } + } @browsers + }; # fallback hash based on release semantics }; my $scorediv = (max(map { sum(values %$_) } values %$canihas) // 1) / 100; @@ -131,7 +145,14 @@ for my $id (sort { my $cell = $_ ? lc $_->[0] : '-'; print '$_
" for map { ref $_ ? @$_ : $_ || () } + $row->{description}, $row->{notes}; + printf 'Resources: %s.', join(', ', + map { qq($_->{title}) } @$_ + ) for $row->{links} // (); + print '