aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Benjamin Jones <bjones@galois.com>2013-11-04 15:23:12 -0800
committerGravatar Benjamin Jones <bjones@galois.com>2013-11-04 15:23:12 -0800
commit44907b62bd90edbd52811f73647bb6751d0c3b63 (patch)
tree2a05991aa81e51c8ebf5e3cdfc8a69f090db5568
parentf241200b5f19c9b389bfc4152751b0e509b991e7 (diff)
parent2d37f62eaf6c7051445b5873ba2a1b31ead0a6d4 (diff)
Merge branch 'master' of github.com:GaloisInc/FiveUI
-rw-r--r--guidelines/WCAG-1.0/conformance-A.json3
-rw-r--r--src/js/fiveui/injected/ui.js25
2 files changed, 24 insertions, 4 deletions
diff --git a/guidelines/WCAG-1.0/conformance-A.json b/guidelines/WCAG-1.0/conformance-A.json
index 551026c..e25f9b3 100644
--- a/guidelines/WCAG-1.0/conformance-A.json
+++ b/guidelines/WCAG-1.0/conformance-A.json
@@ -5,5 +5,8 @@
[ "guideline-1.js"
, "guideline-2.js"
, "guideline-3.js"
+ , "guideline-5.js"
+ , "guideline-6.js"
+ , "guideline-7.js"
]
}
diff --git a/src/js/fiveui/injected/ui.js b/src/js/fiveui/injected/ui.js
index 2da4226..eb22136 100644
--- a/src/js/fiveui/injected/ui.js
+++ b/src/js/fiveui/injected/ui.js
@@ -184,7 +184,7 @@
var ppos = this.$problems.position();
var spos = this.$stats.position();
- this.$problems.height(spos.top - ppos.top)
+ this.$problems.height(spos.top - ppos.top);
// notify the backend about the new height
this.port.emit('Size', {
@@ -425,15 +425,29 @@
var oldStyle = elt.attr('style');
core.maskRules(function() {
- elt.attr('style', 'background-color: rgba(255,0,0,0.3); background-image: none;');
- elt.addClass('uic-problem');
+ var newDiv = $('<div></div>');
+ newDiv.attr('id', 'hlDiv-'+prob.hash);
+ newDiv.offset(elt.offset());
+ newDiv.height(elt.height());
+ newDiv.width(elt.width());
+ newDiv.css({ 'position': 'absolute'
+ , 'background-color': '#FF0000'
+ , 'opacity' : '0.3'
+ , 'zIndex' : 10000
+ });
+ $('body').append(newDiv);
});
+// core.maskRules(function() {
+// elt.attr('style', 'background-color: rgba(255,0,0,0.3); background-image: none;');
+// elt.addClass('uic-problem');
+// });
+
// record the element for the future
core.highlighted[prob.hash] = {
highlighted: 1,
oldStyle: oldStyle,
- }
+ };
}
};
@@ -455,6 +469,9 @@
}
elt.removeClass('uic-problem');
+
+ // remove overlay divs:
+ $5('#hlDiv-'+prob.hash).remove();
});
delete core.highlighted[prob.hash];