Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Initial implementation
  • Loading branch information
lindsayevans committed Apr 23, 2012
0 parents commit af57e66
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
11 changes: 11 additions & 0 deletions index.html
@@ -0,0 +1,11 @@
<!doctype html>
<html lang="en">
<head>
<title>outline.js</title>
<script src="outline.js"></script>
</head>
<body>
<h1>outline.js</h1>
<p><a href="#">Test link</a></p>
</body>
</html>
15 changes: 15 additions & 0 deletions outline.js
@@ -0,0 +1,15 @@
(function(d){

var style_element = d.createElement('STYLE');
d.getElementsByTagName('HEAD')[0].appendChild(style_element);

d.onmousedown = function(){
style_element.innerHTML = 'a{outline:none}';
};

d.onkeydown = function(){
style_element.innerHTML = '';
};


})(document);

0 comments on commit af57e66

Please sign in to comment.