Commit 21f2ef5e authored by Timothe Litt's avatar Timothe Litt
Browse files

Make statistics tables (in HTML view) togglable

The HTML view of the statistics channel creates
pages with many long tables.  These can be difficult
to navigate.

This commit adds a "show/hide" toggle to each
heading, which makes it easy to compress/expand
the view.
parent da2bc0a1
Pipeline #14602 passed with stages
in 49 minutes and 19 seconds
......@@ -21,6 +21,8 @@
var wid=0;
$('table.zones').each(function(i) { if( $(this).width() > wid ) wid = $(this).width(); return true; });
$('table.zones').css('min-width', wid );
$("h2+table,h3+table,h4+table").prev().append(' <a class="tabletoggle" href="#" style="font-size:small">Show/Hide</a>');
$(".tabletoggle").click(function(){ $(this).closest("h2,h3,h4").next().toggleClass("hidden"); return false;});
......@@ -90,6 +92,10 @@
font-size: 10pt;
display: none;
background-color: #f0f0f0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment