File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ package # not official yet
1818use strict;
1919use warnings;
2020use vars qw( $VERSION) ;
21- $VERSION = ' 2.63 ' ;
21+ $VERSION = ' 2.64 ' ;
2222
2323use vars qw( $UA) ;
2424
@@ -561,7 +561,7 @@ BEGIN
561561print <<EOF ;
562562 // End script hiding -->
563563 </script>
564- <script type="text/javascript" src="matrix_cpantesters.js?v=20150419 "></script>
564+ <script type="text/javascript" src="matrix_cpantesters.js?v=20250502 "></script>
565565EOF
566566if ($reports && USE_JQUERY_TABLESORTER) {
567567 print <<'EOF' ;
@@ -1890,6 +1890,11 @@ sub dist_links {
18901890 if ($app_mode != APP_MODE_NDJSONAPI) {
18911891 print <<EOF ;
18921892<li><a class="sml" href="https://fast2-matrix.cpantesters.org/?@{[ CGI::escapeHTML($q ->query_string) ]}">Matrix via ndjson API ("fast2")</a> <!--<span class="sml">(temporary!)</span>-->
1893+ EOF
1894+ }
1895+ if (1) {
1896+ print <<EOF ;
1897+ <li><script type="text/javascript">add_json_download_link("$dist ")</script> <!--<span class="sml">(temporary!)</span>-->
18931898EOF
18941899 }
18951900 print <<EOF ;
Original file line number Diff line number Diff line change @@ -171,3 +171,14 @@ function shift_reload_alternative() {
171171 elem . innerHTML = elem . innerHTML + ' or click <a href="javascript:window.location.reload(true)">here</a>' ;
172172 }
173173}
174+
175+ //////////////////////////////////////////////////////////////////////
176+
177+ function add_json_download_link ( dist ) {
178+ var u = "https://www.cpantesters.org" ;
179+ u += "/show" ;
180+ u += "/" ;
181+ u += dist ;
182+ u += ".json" ;
183+ document . write ( '<a class="sml" href="' + u + '">raw JSON data</a>' ) ;
184+ }
You can’t perform that action at this time.
0 commit comments