mirror of
https://github.com/lindsayevans/outline.js.git
synced 2024-09-11 20:47:06 +03:00
Adding comments
This commit is contained in:
parent
af57e662a5
commit
70386fb139
@ -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}';
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user