Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added egg of easter

  • Loading branch information...
commit b76821dccb570e81453ca7df5956e8efce09d57b 1 parent 984bb9c
@bentruyman bentruyman authored
View
BIN  assets/foo.mp3
Binary file not shown
View
BIN  assets/foo.ogg
Binary file not shown
View
35 certificate.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+
+<!--[if lt IE 9 ]><html lang="en" class="no-js shitty"><![endif]-->
+<!--[if (gte IE 9)|!(IE)]><!--><html lang="en" class="no-js"><!--<![endif]-->
+
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+
+ <title>W3Fools – A W3Schools Intervention</title>
+
+ <meta name="description" content="">
+ <meta name="author" content="">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+ <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Neucha">
+ <link rel="stylesheet" href="css/style.css">
+ <script src="js/libs/modernizr-1.6.min.js"></script>
+
+</head>
+<body id="certificate">
+ <header>
+ <h1 id="intervention"><b>W3Fools</b> Certified</h1>
+ </header>
+ <p>
+ This certifies that
+ <b>You</b>
+ are not a fool. Now go out there and use that noggin for great justice. Sucka.
+ </p>
+ <audio autoplay>
+ <source src="assets/foo.ogg" type="audio/ogg">
+ <source src="assets/foo.mp3" type="audio/mpeg">
+ </audio>
+</body>
+</html>
View
11 css/style.css
@@ -307,6 +307,17 @@ p + blockquote {
#toc { padding: 0.75em 0; }
+#certificate p {
+ margin: auto;
+ text-align: center;
+ width: 400px;
+}
+
+#certificate p b {
+ display: block;
+ font-size: 4em;
+ font-weight: bold;
+}
@media screen and (max-device-width: 480px) {
View
21 js/script.js
@@ -91,4 +91,25 @@
})
});
+
+ $(function () {
+ var keys = [ ],
+ kc = '38,38,40,40,37,39,37,39,66,65';
+
+ function keydown(e) {
+ keys.push(e.which);
+ if (keys.join(',').indexOf(kc) > -1) {
+ $(document).unbind('keydown', keydown);
+ var height = 600,
+ width = 800;
+ window.open('certificate.html', 'U DUN GOOFED',
+ 'height=' + height + ',\
+ width=' + width +',\
+ top=' + Number((window.outerHeight - height) / 2) + ',\
+ left=' + Number((window.outerWidth - width) / 2));
+ }
+ }
+
+ $(document).keydown(keydown);
+ });
})(jQuery);
Please sign in to comment.
Something went wrong with that request. Please try again.