Skip to content

Commit 79a1dc0

Browse files
committed
Added hidden double rainbow reference; added title
1 parent fd0a1b2 commit 79a1dc0

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

index.html

+26-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
66

7-
<title>Untitled</title>
7+
<title>Spoon-Knife</title>
88
<style type="text/css">
99
* {
1010
margin:0px;
@@ -23,8 +23,29 @@
2323
margin: 50px auto;
2424
font: 30px Monaco,"Courier New","DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace;
2525
}
26+
#rainbow-message {
27+
position: absolute;
28+
right: 10px;
29+
top: 10px;
30+
box-shadow: -5px 10px 15px gray;
31+
-moz-box-shadow: -5px 10px 15px gray;
32+
font-family: sans-serif;
33+
}
2634

2735
</style>
36+
<script type="text/javascript">
37+
var keyCodes=new Array(10);
38+
var pattern=[38,38,40,40,37,39,37,39,66,65];
39+
function keydownHandler(e){
40+
keyCodes.shift();
41+
keyCodes.push(e.keyCode);
42+
if(keyCodes.every(function(element, index, array){return element===pattern[index];})){
43+
document.getElementById("rainbow-message").style.display="";
44+
}
45+
}
46+
window.onkeydown=keydownHandler;
47+
</script>
48+
2849
</head>
2950

3051
<body>
@@ -34,6 +55,9 @@
3455
<p>
3556
Fork me? No, fork you!
3657
</p>
37-
58+
<div id="rainbow-message" style="display:none">
59+
Double repositories all the way across the sky!<br/>
60+
<a href="http://help.github.com/fork-a-repo/">What does it mean?</a>
61+
</div>
3862
</body>
3963
</html>

0 commit comments

Comments
 (0)