X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/2ae4ccbb6ac3ce310890beef55fda11f670772bb..fb9b9cbfd0f9077e208a8f00f4a675201fde62c3:/browser.plp diff --git a/browser.plp b/browser.plp index 3f7b6f8..75605fd 100644 --- a/browser.plp +++ b/browser.plp @@ -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 '