Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (22 sloc) 881 Bytes
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Example 2</title>
<script type="text/javascript" charset="utf-8" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">
</script>
<script type="text/javascript" charset="utf-8" src="../jquery.konami.js">
</script>
<script type="text/javascript" charset="utf-8">
$(document).konami({
code: ['left', 'right'],
callback: function() {
alert('コナミコマンド');
$(document.body).css({backgroundColor: 'black'});
$(document.body).append($('<h1>コナミコマンド - Konami!!!!!</h1>').css({color: 'white'}));
}
});
</script>
</head>
<body>
</body>
</html>