Created
November 30, 2016 20:58
-
-
Save ju1/f2f055a62aaf6296c134d07521832d0f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var els, i, len, title; | |
var konamiCode = '38,38,40,40,37,39,37,39,66,65'; | |
var keyPresses = []; | |
var checkKonami = function(e) { | |
keyPresses.push(e.keyCode); | |
if (keyPresses.slice(keyPresses.length-10).join() === konamiCode) { | |
runKonami(); | |
} | |
}; | |
var runKonami = function() { | |
var audio = new Audio("https://dl.dropboxusercontent.com/u/29335906/tutita.mp3"); audio.play(); | |
!function(t){function n(t){return Math.floor(Math.random()*t)}function o(o){var e=t.innerWidth-200,r=t.innerHeight-26;d.textContent=o,d.style.left=n(e)+"px",d.style.top=n(r)+"px",d.style.color=s[n(s.length)]}function e(){a=!0,c=setInterval(function(){r===l-1?r=0:r++,o(i[r])},1000)}var r=0,l=0,i=null,c=null,a=!1,d=document.createElement("div"),s=["#FF0000","#00FF00","#0000FF"],u=function(t){return"object"!=typeof t||void 0===t.length?console.error("Kon Kon kkkk Konsti tutitutita"):t.length<1?console.error("Konsti-tuti-tuti...oi"):(l=t.length,i=t,d.style.position="fixed",d.style.fontSize="40px",d.style.fontFamily='"Comic Sans MS"',d.style.zIndex=10000001,document.body.appendChild(d),void e())};u.prototype.stop=function(){a&&(a=!1,clearInterval(c))},t.Tutita=u}(window); | |
var tutita = new Tutita([ | |
'Konstituti', | |
'tuti tuti', | |
'tuti tuti', | |
'tuti ta', | |
'tuti taaa', | |
'tuti tuti tuti taaaa' | |
]); | |
var imgs = document.getElementsByTagName("img");for(var i=0, l=imgs.length;i<l;i++){imgs[i].src = "http://www.15min.lt/images/photos/616133/original/premjeras-algirdas-butkevicius-susitiko-su-seimo-pirmininke-loreta-grauziniene-52ce920674c0b.jpg";} | |
; | |
}; | |
document.addEventListener('keyup', checkKonami); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment