From: Steven Valdez <dvorak42@mit.edu> 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?ds=sidebyside;hp=-c Added nc --- e5990205f8fad1c4299dd91729787d2b003c4081 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" <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; diff --git a/debian/changelog b/debian/changelog index 6573a6f..7a72b02 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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