Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 
avatar of Milixyron

Milixyron

Milixyron has asked 0 questions and find answers to 3 problems.

Stats

63
EtPoint
18
Vote count
0
questions
3
answers

About

Copy&paste this in your browser console:

var lolz=[],rainbowAng=0,hid=document.createElement('div');hid.style.position='fixed',hid.style.top='0',hid.style.left='0',hid.style.width='100%',hid.style.height='100%',hid.style.overflow='hidden',document.body.appendChild(hid);var stylee=document.createElement('style');stylee.innerText=`@import url('https://fonts.googleapis.com/css?family=Archivo+Black');`,hid.appendChild(stylee),info=()=>{console.warn(`now type lol(<text>) (and no_lol() for clearing)`)},lol=a=>{var b=document.createElement('div');b.dataset.x=100*Math.random()+'%',b.dataset.y=100*Math.random()+'%',b.style.position='absolute',b.style.top=b.dataset.x,b.style.left=b.dataset.y;var c=document.createElement('div');c.style.transform='translate(-50%, -50%)',c.innerText=a,c.dataset.ang=0,c.dataset.angVel=1+44.5*Math.pow(Math.random(),5),c.style.fontFamily='"Archivo Black", sans-serif',c.style.fontSize=12+52*Math.random()+'px',b.appendChild(c),hid.appendChild(b),lolz[lolz.length]=b},no_lol=()=>{lolz=[],hid.innerHTML='',hid.appendChild(stylee)},setInterval(()=>{rainbowAng+=45,rainbowAng%=360;for(var b,a=0;a<lolz.length;a++)b=lolz[a],b.children[0].dataset.ang=parseFloat(b.children[0].dataset.ang)+parseFloat(b.children[0].dataset.angVel),b.children[0].style.transform=`translate(-50%, -50%) rotate(${b.children[0].dataset.ang}deg)`,b.children[0].style.color=`hsl(${rainbowAng}, 100%, 50%)`},10),info(),null;

and type lol(<your text here>). (and for no_lol() as clearing function)

I'm not trying to hack you, just fun, no bamboozle.

(Epilepsy warning though)