Adding comments

This commit is contained in:
Lindsay Evans 2012-04-23 22:14:55 +10:00
parent af57e662a5
commit 70386fb139

View File

@ -1,8 +1,11 @@
// outline.js
// based on http://www.paciellogroup.com/blog/2012/04/how-to-remove-css-outlines-in-an-accessible-manner/
(function(d){
var style_element = d.createElement('STYLE');
d.getElementsByTagName('HEAD')[0].appendChild(style_element);
// Using mousedown instead of mouseover, so that previously focused elements don't lose focus ring on mouse move
d.onmousedown = function(){
style_element.innerHTML = 'a{outline:none}';
};