Advertisement
framp

paste on pathflow @ IBM conference

Oct 16th, 2013
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function lolcat(){
  2.   var colors = randomColor();
  3.   var css = "*:not(.framp){ background-color: " + colors[0] + " !important; color: " + colors[1] + " !important; }";
  4.   var style = document.createElement('style');
  5.   style.appendChild(document.createTextNode(css));
  6.   document.head.appendChild(style);
  7.   setTimeout(lolcat, 16);
  8. })();
  9.  
  10. function randomColor(){
  11.   var colors = [Math.random()*255<<0, Math.random()*255<<0, Math.random()*255 <<0];
  12.   var colorsInverted = colors.map(function(item){
  13.     return 255-item;
  14.   });
  15.   return ['rgb(' + colors.join(',') + ')', 'rgb(' + colorsInverted.join(',') + ')'];
  16. }
  17.  
  18. (function iliketomoveit(){
  19.  
  20.   jQuery('.frontpage-icons img').each(function(){
  21.     jQuery(this).css({position:" relative"});
  22.     jQuery(this).animate({top: Math.random()*100-50}, 50);
  23.   })
  24.   setTimeout(iliketomoveit, 50);
  25. })();
  26.  
  27. (function fumate(){
  28.   if (Math.random()>0.5){
  29.     var merda = jQuery('<div class="framp" style="position:fixed; top:0; left:0; width:100%; height:100%; background-color:#000; color: #fff; z-index:1000000; font-family:Arial; font-size:3000%; padding-top:500px; text-align:center">FUMATE</div>').appendTo(jQuery(document.body));
  30.     setTimeout(function(){
  31.       merda.remove();
  32.     }, 100)
  33.   }
  34.   setTimeout(fumate, 1000)
  35. })()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement