Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Initial implementation
- Loading branch information
0 parents
commit af57e66
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); |