From e5990205f8fad1c4299dd91729787d2b003c4081 Mon Sep 17 00:00:00 2001 From: Steven Valdez Date: Tue, 3 Sep 2013 22:44:24 -0400 Subject: [PATCH] Added nc --- code/static/nc.js | 9 +++++++++ code/templates/skeleton.mako | 1 + debian/changelog | 6 ++++++ 3 files changed, 16 insertions(+) create mode 100644 code/static/nc.js 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" +