Compare commits

..

7 Commits
1.5.0 ... 1.6.1

Author SHA1 Message Date
Alex Kilgour
32a8ec55e1 Version 1.6.1 2016-01-26 16:00:27 +00:00
Alex Kilgour
0829482020 Merge pull request #92 from nature/keyboard-access
Keyboard access
2016-01-26 14:38:08 +00:00
Alex Kilgour
eb8f35779e revert spacing issue with public/js/site.js 2016-01-26 14:13:42 +00:00
Alex Kilgour
3cdbba00c1 Fix linting errors in the Javascript 2016-01-26 14:04:12 +00:00
Alex Kilgour
fd2dd62478 Add keyboard access for filters 2016-01-26 13:52:38 +00:00
Rowan Manning
baf73203e9 Version 1.6.0 2015-08-20 16:05:31 +01:00
Rowan Manning
87daa49638 Hide all graph data except for errors by default 2015-08-20 14:54:44 +01:00
6 changed files with 45 additions and 18 deletions

View File

@@ -28,7 +28,7 @@ module.exports = function (grunt) {
es3: false,
indent: 4,
latedef: false,
maxcomplexity: 4,
maxcomplexity: 6,
maxdepth: 2,
maxlen: 100,
maxparams: 4,

View File

@@ -3,7 +3,7 @@ pa11y-dashboard
pa11y-dashboard is a web interface to the [pa11y][pa11y] accessibility reporter; allowing you to focus on *fixing* issues rather than hunting them down.
**Current Version:** *1.5.0*
**Current Version:** *1.6.1*
**Build Status:** [![Build Status][travis-img]][travis]
**Node Version Support:** *0.10*

View File

@@ -1,6 +1,6 @@
{
"name": "pa11y-dashboard",
"version": "1.5.0",
"version": "1.6.1",
"private": true,
"description": "pa11y-dashboard is a visual web interface to the pa11y accessibility reporter",

View File

@@ -192,8 +192,8 @@ $(document).ready(function(){
'<div class="series-checkbox-container">' +
'<input type="checkbox"' +
'name="' + key + '" ' +
'checked="checked" ' +
'id="id' + key + '" ' +
'data-stat-type="' + val.label.toLowerCase() + '"' +
'/>' +
'<label for="id' + key + '">' +
'<span class="stat-type">' + val.label + '</span>' +
@@ -201,9 +201,11 @@ $(document).ready(function(){
'</div>' +
'</li>'
);
});
choiceContainer.find('input').click(plotAccordingToChoices);
choiceContainer.find('[data-stat-type=errors]').click();
function plotAccordingToChoices() {
var data = [];
@@ -286,4 +288,29 @@ $(document).ready(function(){
});
}
// Extend public/js/vendor/bootstrap/js/collapse.js
// Add keyboard control for filters
$.fn.collapse.Constructor.prototype.keydown = function (e) {
var $this = $(this);
var k = e.which || e.keyCode;
if (!/(13|32)/.test(k)) {
return;
}
if (k === 13 || k === 32) {
$this.click();
}
e.preventDefault();
e.stopPropagation();
};
$('[data-toggle="collapse"]').attr('role', 'button').attr('tabindex', 0);
$(document).on(
'keydown.collapse.data-api',
'[data-toggle="collapse"]',
$.fn.collapse.Constructor.prototype.keydown
);
});

12
public/js/site.min.js vendored

File diff suppressed because one or more lines are too long