defango

http://canium.org/asset/6782r813f87wtf8731.js

Jan 19th, 2019
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. setInterval("glitch()", 5000);
  2. dolo = true;
  3. function glitch(){
  4.   setTimeout("glitchanim()", 200);
  5.   setTimeout("glitchanim()", 300);
  6.   setTimeout("glitchanim()", 400);
  7.   setTimeout("glitchanim()", 500);
  8.   setTimeout("glitchanim()", 700);
  9.   setTimeout("glitchanim()", 800);
  10.   setTimeout("glitchanim()", 900);
  11.   setTimeout("glitchanim()", 1000);
  12.   setTimeout("glitchanim()", 1100);
  13.   setTimeout("glitchanim()", 1200);
  14.   setTimeout('document.getElementById("caniumlogo").style  = "visibility:show;"; document.getElementById("caniumlogo").style  = "transform: scale(1,1);";', 1200);
  15.  
  16. }
  17.  
  18. function glitchanim(){
  19.   if(Math.round((Math.random() * 1) + 0) === 0){
  20.   document.getElementById("caniumlogo").style  = "transform: scale(" + getRandomArbitrary(0, 1)+"," + getRandomArbitrary(0, 1) + ");";
  21.   }else {
  22.   if(dolo){
  23.     document.getElementById("caniumlogo").style  = "visibility:hidden;";
  24.     dolo = false;
  25.   } else {
  26.     document.getElementById("caniumlogo").style  = "visibility:show;";
  27.     dolo = true;
  28.   }
  29.   }
  30. }
  31.  
  32. function getRandomArbitrary(min, max) {
  33.     return Math.random() * (max - min) + min;
  34. }
Add Comment
Please, Sign In to add comment