Advertisement
Aluf

Best chatango Profile

Jan 24th, 2015
547
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "use strict";
  2.  
  3. var
  4.     centralText = "RYAN",
  5.     texts = ["ELELF", "NANAZU", "SKY-KUN", "SAM-NOT GAY", "EREN KUN :)", "CIEA-MY WAIFU", "ATURFHEE-GG", "VIVE-SAMA", "COOL-CHAN", "POGADZ-ANGEL-DREFF-CHCHAN-BARBIEE"];
  6.  
  7. var container = document.createElement("div");
  8.  
  9. (function(s) {
  10.     s.position = "absolute";
  11.     s.backgroundColor = "#EEEEEE";
  12.     s.zIndex = 1000;
  13.     s.left = "0";
  14.     s.top = "0";
  15.     s.width = "100%";
  16.     s.height = "100%";
  17.     s.overflow = "hidden";
  18.     s.fontFamily = "sans-serif";
  19. })(container.style);
  20.  
  21. var ctelm = document.createElement("div");
  22. ctelm.textContent = centralText;
  23. ctelm.className = "central_text";
  24.  
  25. (function(s) {
  26.     s.zIndex = 1001;
  27.     s.fontSize = "80px";
  28.     s.textAlign = "center";
  29.     s.margin = "240px";
  30.     s.transition = "transform 1s ease-in-out";
  31.     s.fontWeight = "bold";
  32. })(ctelm.style);
  33.  
  34. container.appendChild(ctelm);
  35.  
  36. document.body.appendChild(container);
  37.  
  38. var ctLoopToggle = true;
  39. function ctLoop() {
  40.     ctLoopToggle = !ctLoopToggle;
  41.     if(ctLoopToggle) {ctelm.style.transform = "rotate(30deg)";}
  42.     else {ctelm.style.transform = "rotate(-30deg)";}
  43.     setTimeout(ctLoop, 1000);
  44. }
  45. ctLoop();
  46.  
  47. var ctLoopHue = 0;
  48. function ctLoopColor() {
  49.     ctelm.style.color = "hsl(" + ctLoopHue + ", 100%, 50%)";
  50.     ctLoopHue++;
  51.     setTimeout(ctLoopColor, 20);
  52. }
  53. ctLoopColor();
  54.  
  55. function makeText(text, delay, onRekt) {
  56.     var elm = document.createElement("div");
  57.     elm.className = "overlay_text";
  58.     elm.style.position = "absolute";
  59.     elm.style.left = (Math.random() * window.innerWidth) - 20 + "px";
  60.     elm.style.top = (Math.random() * window.innerHeight) - 20 + "px";
  61.     elm.style.color = "hsl(" + Math.floor(360 * Math.random()) + ", 100%, 75%)";
  62.     elm.style.fontSize = Math.floor(20 + Math.random() * 20) + "px";
  63.     elm.textContent = text;
  64.     container.appendChild(elm);
  65.     setTimeout(function() {
  66.         container.removeChild(elm);
  67.         onRekt();
  68.     }, delay);
  69. }
  70.  
  71. function textLoop() {
  72.     makeText(texts[Math.floor(Math.random() * texts.length)], 4000, textLoop);
  73. }
  74.  
  75. for(var i = 0; i < 25; i++) {setTimeout(textLoop, Math.random() * 4000);}
  76.  
  77. var ytemb = document.createElement("div");
  78. ytemb.innerHTML =
  79.     '<iframe width="560" height="315" src="//www.youtube.com/watch?v=8f9PSR-rs0k?autoplay=true" frameborder="0" allowfullscreen></iframe>';
  80. document.body.appendChild(ytemb);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement