Skip to content

Commit

Permalink
Remove konami "ba" from the input buffer after successful activation.
Browse files Browse the repository at this point in the history
  • Loading branch information
chromakode committed Apr 1, 2010
1 parent daf3e3a commit a6babd1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions xkcd_cli.js
Expand Up @@ -579,12 +579,18 @@ $(document).ready(function() {
} else if (konamiCount == 4) {
$('#screen').css('background', 'black url(over9000.png) center no-repeat');
}

$('<div>')
.height('100%').width('100%')
.css({background:'white', position:'absolute', top:0, left:0})
.appendTo($('body'))
.show()
.fadeOut(1000);

if (Terminal.buffer.substring(Terminal.buffer.length-2) == 'ba') {
Terminal.buffer = Terminal.buffer.substring(0, Terminal.buffer.length-2);
Terminal.updateInputDisplay();
}
TerminalShell.sudo = true;
konamiCount += 1;
});
Expand Down

0 comments on commit a6babd1

Please sign in to comment.