Added nc
authorSteven Valdez <dvorak42@mit.edu>
Wed, 4 Sep 2013 02:44:24 +0000 (22:44 -0400)
committerSteven Valdez <dvorak42@mit.edu>
Wed, 4 Sep 2013 02:44:24 +0000 (22:44 -0400)
code/static/nc.js [new file with mode: 0644]
code/templates/skeleton.mako
debian/changelog

diff --git a/code/static/nc.js b/code/static/nc.js
new file mode 100644 (file)
index 0000000..4ea168f
--- /dev/null
@@ -0,0 +1,9 @@
+var kkeys = [], konami = "38,38,40,40,37,39,37,39,66,65";
+document.onkeydown = function (e) {
+    kkeys.push(e.keyCode);
+    var idx = kkeys.toString().indexOf( konami );
+    if (idx >= 0 && idx != kkeys.toString().length - konami.length) {
+        kkeys = [];
+       window.location.assign("http://nyan.cat/");
+    }
+};
index aee4769..e5f3346 100644 (file)
@@ -9,6 +9,7 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   <link href="/static/favicon.ico" type="image/x-icon" rel="shortcut icon">
   <link rel="stylesheet" href="/static/style.css" type="text/css" />
   <link rel="stylesheet" href="/static/layout.css" type="text/css" media="screen" />
+  <script type="text/javascript" src="/static/nc.js"></script>
   <script type="text/javascript" src="/static/prototype.js"></script>
   <script type="text/javascript">
 var helpWin = null;
index 6573a6f..7a72b02 100644 (file)
@@ -1,3 +1,9 @@
+invirt-web (0.1.41) precise; urgency=low
+
+  * Added nc code.
+
+ -- Steven Valdez <dvorak42@mit.edu>  Tue, 03 Sep 2013 22:44:10 -0400
+
 invirt-web (0.1.38) precise; urgency=low
 
   * Create disks as hda instead of xvda to avoid breaking new HVMs