Skip to content

Instantly share code, notes, and snippets.

@monde
Created December 12, 2011 19:50
Show Gist options
  • Save monde/1468790 to your computer and use it in GitHub Desktop.
Save monde/1468790 to your computer and use it in GitHub Desktop.
Konami CSI Miami cheat code for www.hark.com
var keyCodes = [];
$(document).keydown(function(e){
keyCodes.push(e.keyCode);
if(keyCodes.toString().indexOf("38,38,40,40,37,39,37,39,66,65") >= 0){
console.log('Yeaaaaaah!');
$(document).unbind('keydown', arguments.callee);
var pid = 'pndmzxvqkl';
var container = $('#copyright');
$.getJSON('http://www.hark.com/clips/' + pid + '.json', function(data){
var audio = $('<audio>').attr({ 'src': data.url, 'preload': 'auto' });
container.empty().append(audio);
audio.get(0).play();
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment