Difference between revisions of "MediaWiki:Common.js"
From Sydapedia
Jump to navigationJump to searchGpfontaine (talk | contribs) m |
Gpfontaine (talk | contribs) m |
||
| Line 17: | Line 17: | ||
return; | return; | ||
//alert("30 Extra Lives!"); | //alert("30 Extra Lives!"); | ||
| − | location.href = "http://history.sydlexia. | + | location.href = "http://history.sydlexia.com/index.php?title=Sydlexia_Konami_Code"; |
} | } | ||
Revision as of 12:54, 24 July 2008
/* Any JavaScript here will be loaded for all users on every page load. */
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:MarkS/extraeditbuttons.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
/* ------------------------------- */
var konami_code = new Array(38, 38, 40, 40, 37, 39, 37, 39, 66, 65);
var konami_code_index = 0;
document.onkeydown = function(event) {
if (!event) event = window.event;
if (event.keyCode == konami_code[konami_code_index]) {
konami_code_index++;
if (konami_code_index != konami_code.length)
return;
//alert("30 Extra Lives!");
location.href = "http://history.sydlexia.com/index.php?title=Sydlexia_Konami_Code";
}
konami_code_index = 0;
}
/* -------------------------------- */