Adding hidden effects to your site using the Konami code

This page shows you how to add the 'Cornify' effect to a Drupal webpage. This is based on an example given by Paul Irish. When someone enters the Konami code, the page will start to fill with pictures of cartoon unicorns.

The first thing you need to do is have the following .js file somewhere on your site

Add cornify.js to your Drupal page by adding somewhere in the body:
    <?php drupal_add_js('/js/cornify.js'); ?> [Drupal 5.x]
Change the file path as required for your site. That's it! To use the above code on a site that doesn't run on Drupal, simply add the same JS file as you would do normally. Save the page and try entering the konami code:

↑ ↑ ↓ ↓ ← → ← → B A Try it now. I've added it to this page

NOTE: This is only an example and the current code takes images from the CORNIFY.COM website. You should be looking to learn how cornify.js works and re-write it to take images from your own site.

OK OK. Entering the konami code on this page actually rick rolls you. BUT The instructions above really do exactly what I have said they do with unicorns. If you want my rickrolling konami file, download www.danpearce.co.uk/js/konami2.js. You wont need cornify.js.

wWwGIIvymQTfZT

ZIclUhwxPsvJQb

QvtEfpBvAHnypq

FnHdOsfpuXaBJeH

cheap cialis

wPboyxRekleijOV

ytcetFTTGRbznGCf

clomid

hUaMyTawRHEzcyn

qSICViHixOUgmsNld

EFZvVuEkBeAlN

HEmWRiIhHDqpOSYiAl


Warning: INSERT command denied to user 'revjbr_dan'@'10.0.0.14' for table 'watchdog' query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>INSERT command denied to user &amp;#039;revjbr_dan&amp;#039;@&amp;#039;10.0.0.14&amp;#039; for table &amp;#039;sessions&amp;#039;\nquery: INSERT INTO sessions (sid, uid, cache, hostname, session, timestamp) VALUES (&amp;#039;ddb0d1b775a514423cffba4a5961468e&amp;#039;, 0, 0, &amp;#039;38.107.179.239&amp;#039;, &amp;#039;&amp;#039;, 1328688403)</em> in <em>/home/www/danpearce.co.uk/includes/database.mysql.inc</em> on line <em>172</em>.', 2, '', 'http://www.danpearce.co.uk/konami', '', '38.107.179.239', 1328688403) in /home/www/danpearce.co.uk/includes/database.mysql.inc on line 172