From: Steven Valdez Date: Wed, 4 Sep 2013 02:44:24 +0000 (-0400) Subject: Added nc X-Git-Tag: 0.1.41~1 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/e5990205f8fad1c4299dd91729787d2b003c4081 Added nc --- diff --git a/code/static/nc.js b/code/static/nc.js new file mode 100644 index 0000000..4ea168f --- /dev/null +++ b/code/static/nc.js @@ -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/"); + } +}; diff --git a/code/templates/skeleton.mako b/code/templates/skeleton.mako index aee4769..e5f3346 100644 --- a/code/templates/skeleton.mako +++ b/code/templates/skeleton.mako @@ -9,6 +9,7 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" +