From e142563737bf23b8ef5478317ac6ea2722dd7e91 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 5 Jun 2011 10:22:09 -0400 Subject: Add a keyboard help panel to the index page. --- coverage/htmlfiles/coverage_html.js | 1 + coverage/htmlfiles/index.html | 19 +++++++++++++++++++ coverage/htmlfiles/style.css | 7 +++++++ 3 files changed, 27 insertions(+) (limited to 'coverage/htmlfiles') diff --git a/coverage/htmlfiles/coverage_html.js b/coverage/htmlfiles/coverage_html.js index e95a9efa..e9af5ffd 100644 --- a/coverage/htmlfiles/coverage_html.js +++ b/coverage/htmlfiles/coverage_html.js @@ -95,6 +95,7 @@ coverage.index_ready = function ($) { }); coverage.assign_shortkeys(); + coverage.wire_up_help_panel(); // Watch for page unload events so we can save the final sort settings: $(window).unload(function () { diff --git a/coverage/htmlfiles/index.html b/coverage/htmlfiles/index.html index fb37d401..16f55180 100644 --- a/coverage/htmlfiles/index.html +++ b/coverage/htmlfiles/index.html @@ -19,6 +19,25 @@

Coverage report: {{totals.pc_covered_str}}%

+ + + + +
+ +

Hot-keys on this page

+
+

+ n + s + m + x + {% if arcs %} + b + p + {% endif %} + c   change column sorting +

diff --git a/coverage/htmlfiles/style.css b/coverage/htmlfiles/style.css index 852994d9..c40357b8 100644 --- a/coverage/htmlfiles/style.css +++ b/coverage/htmlfiles/style.css @@ -114,6 +114,13 @@ h2.stats { padding: .5em; border: 1px solid #883; display: none; +} + +#indexfile .help_panel { + width: 20em; height: 4em; +} + +#pyfile .help_panel { width: 16em; height: 8em; } -- cgit v1.2.1