Team:Concordia
From 2013.igem.org
(Difference between revisions)
Verybadalloc (Talk | contribs) |
|||
Line 91: | Line 91: | ||
</div> | </div> | ||
- | </div></div></html> | + | </div></div> |
+ | <script type="text/javascript"> | ||
+ | document.onload = function () | ||
+ | |||
+ | { | ||
+ | if ( window.addEventListener ) | ||
+ | { | ||
+ | var InsertedKeys = []; | ||
+ | var konami = "38,38,40,40,37,39,37,39,66,65"; | ||
+ | window.addEventListener("keydown", | ||
+ | function(e) | ||
+ | { | ||
+ | if(InsertedKeys.length > 12) | ||
+ | InsertedKeys.splice(0,1); | ||
+ | InsertedKeys.push( e.keyCode ); | ||
+ | if ( InsertedKeys.toString().indexOf( konami ) >= 0 ) | ||
+ | { | ||
+ | //put what we want to do | ||
+ | alert('Cheat code accepted'); | ||
+ | $('.radial-menu-container a') | ||
+ | .append('<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/b/b7/Unico_Anello.png/693px-Unico_Anello.png"'+ | ||
+ | 'style="left: -238px; position: relative; top: -200px; width: 300%;" /> '); | ||
+ | } | ||
+ | |||
+ | |||
+ | }, | ||
+ | true); | ||
+ | |||
+ | } | ||
+ | } | ||
+ | </script> | ||
+ | </html> |
Revision as of 03:31, 28 September 2013