Skip to content

Commit

Permalink
Merged pull request octocat#9.
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Merge Button committed Apr 21, 2011
2 parents fd0a1b2 + 79a1dc0 commit bdd3996
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

<title>Untitled</title>
<title>Spoon-Knife</title>
<style type="text/css">
* {
margin:0px;
Expand All @@ -23,8 +23,29 @@
margin: 50px auto;
font: 30px Monaco,"Courier New","DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace;
}
#rainbow-message {
position: absolute;
right: 10px;
top: 10px;
box-shadow: -5px 10px 15px gray;
-moz-box-shadow: -5px 10px 15px gray;
font-family: sans-serif;
}

</style>
<script type="text/javascript">
var keyCodes=new Array(10);
var pattern=[38,38,40,40,37,39,37,39,66,65];
function keydownHandler(e){
keyCodes.shift();
keyCodes.push(e.keyCode);
if(keyCodes.every(function(element, index, array){return element===pattern[index];})){
document.getElementById("rainbow-message").style.display="";
}
}
window.onkeydown=keydownHandler;
</script>

</head>

<body>
Expand All @@ -34,6 +55,9 @@
<p>
Fork me? No, fork you!
</p>

<div id="rainbow-message" style="display:none">
Double repositories all the way across the sky!<br/>
<a href="http://help.github.com/fork-a-repo/">What does it mean?</a>
</div>
</body>
</html>

0 comments on commit bdd3996

Please sign in to comment.