Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "use strict";
- var
- centralText = "RYAN",
- texts = ["ELELF", "NANAZU", "SKY-KUN", "SAM-NOT GAY", "EREN KUN :)", "CIEA-MY WAIFU", "ATURFHEE-GG", "VIVE-SAMA", "COOL-CHAN", "POGADZ-ANGEL-DREFF-CHCHAN-BARBIEE"];
- var container = document.createElement("div");
- (function(s) {
- s.position = "absolute";
- s.backgroundColor = "#EEEEEE";
- s.zIndex = 1000;
- s.left = "0";
- s.top = "0";
- s.width = "100%";
- s.height = "100%";
- s.overflow = "hidden";
- s.fontFamily = "sans-serif";
- })(container.style);
- var ctelm = document.createElement("div");
- ctelm.textContent = centralText;
- ctelm.className = "central_text";
- (function(s) {
- s.zIndex = 1001;
- s.fontSize = "80px";
- s.textAlign = "center";
- s.margin = "240px";
- s.transition = "transform 1s ease-in-out";
- s.fontWeight = "bold";
- })(ctelm.style);
- container.appendChild(ctelm);
- document.body.appendChild(container);
- var ctLoopToggle = true;
- function ctLoop() {
- ctLoopToggle = !ctLoopToggle;
- if(ctLoopToggle) {ctelm.style.transform = "rotate(30deg)";}
- else {ctelm.style.transform = "rotate(-30deg)";}
- setTimeout(ctLoop, 1000);
- }
- ctLoop();
- var ctLoopHue = 0;
- function ctLoopColor() {
- ctelm.style.color = "hsl(" + ctLoopHue + ", 100%, 50%)";
- ctLoopHue++;
- setTimeout(ctLoopColor, 20);
- }
- ctLoopColor();
- function makeText(text, delay, onRekt) {
- var elm = document.createElement("div");
- elm.className = "overlay_text";
- elm.style.position = "absolute";
- elm.style.left = (Math.random() * window.innerWidth) - 20 + "px";
- elm.style.top = (Math.random() * window.innerHeight) - 20 + "px";
- elm.style.color = "hsl(" + Math.floor(360 * Math.random()) + ", 100%, 75%)";
- elm.style.fontSize = Math.floor(20 + Math.random() * 20) + "px";
- elm.textContent = text;
- container.appendChild(elm);
- setTimeout(function() {
- container.removeChild(elm);
- onRekt();
- }, delay);
- }
- function textLoop() {
- makeText(texts[Math.floor(Math.random() * texts.length)], 4000, textLoop);
- }
- for(var i = 0; i < 25; i++) {setTimeout(textLoop, Math.random() * 4000);}
- var ytemb = document.createElement("div");
- ytemb.innerHTML =
- '<iframe width="560" height="315" src="//www.youtube.com/watch?v=8f9PSR-rs0k?autoplay=true" frameborder="0" allowfullscreen></iframe>';
- document.body.appendChild(ytemb);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement