Help
RSS
API
Feed
Maltego
Contact
Domain > 1halfabrain.com
×
More information on this domain is in
AlienVault OTX
Is this malicious?
Yes
No
DNS Resolutions
Date
IP Address
2024-09-14
74.208.236.64
(
ClassC
)
Port 80
HTTP/1.1 200 OKContent-Type: text/htmlContent-Length: 8341Connection: keep-aliveKeep-Alive: timeout15Date: Sat, 14 Sep 2024 09:05:27 GMTServer: ApacheLast-Modified: Fri, 09 Jan 2015 02:53:08 GMTETag: 2095-50c2f41a6cd00Accept-Ranges: bytes !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd>html xmlnshttp://www.w3.org/1999/xhtml>head> meta http-equivcontent-type contenttext/html; charsetutf-8 /> meta namelanguage content/> meta namedescription content /> meta namekeywords content /> title>1halfabrain.com/title> style typetext/css> html,body {margin: 0;padding: 0;overflow: hidden;width: 100%;height: 100%;} /style>/head>body>div idcontrols>/div>canvas idcanvas>/canvas>script typetext/javascript srcdat.gui.min.js>/script>script typetext/javascript srchttp://code.jquery.com/jquery-1.8.0.min.js>/script>script typetext/javascript > //Lets create a simple particle system in HTML5 canvas and JS //Initializing the canvas var canvas; var ctx; //Canvas dimensions var W 1200; var H 800; var brain1 new Image(); var x 100; var y 100; var mousePosX window.innerWidth/2; var mousePosY window.innerHeight/2; var particles ; var txtFadeIn -1; var txtMaxFadeIn 0.8; var textAbove 0; var fadeOut 1; var arvidLink 0; var globVars function () { //this.message Mind Control!; this.gravity 0.1; this.bounciness 0.85; this.fearOfMice 12; this.numberOfBrains 50; this.repopulate function() { fadeOut 1; clearInterval(animation); animation setInterval(draw, 30); particles ; for(var i 0; i this.numberOfBrains; i++) { particles.push(new create_particle(0)); } }; this.trails false; this.ghostBrains false; this.doneWithBrains function() { fadeOut 0.99; }; }; var animVars new globVars(); window.onload function() { init(); var gui new dat.GUI(); gui.close(); gui.add(animVars, gravity, 0.0, 1.0); gui.add(animVars, bounciness, 0.0, 2.0); gui.add(animVars, fearOfMice, 5.0, 50.0); gui.add(animVars, trails); gui.add(animVars, ghostBrains); gui.add(animVars, numberOfBrains, 1, 300).listen(); gui.add(animVars, repopulate); gui.add(animVars, doneWithBrains); }; $(window).resize(function(){ var canvas document.getElementById(canvas); W canvas.widthwindow.innerWidth; H canvas.height window.innerHeight; }); $( #canvas ).click(function() { if (textAbove) { //follow link fadeOut 0.99; } else if ( arvidLink ) { window.location http://arvidtomayko.com; } else { animVars.numberOfBrains++; particles.push(new create_particle(1)); } }); function init(){ canvas document.getElementById(canvas); ctx canvas.getContext(2d); W ctx.canvas.width window.innerWidth; H ctx.canvas.height window.innerHeight; canvas.addEventListener(mousemove, function(evt) { var mousePos getMousePos(canvas, evt); mousePosX mousePos.x; mousePosY mousePos.y; }, false); //delay fade in of text window.setTimeout(function(){txtFadeIn 0}, 10000); brain1.src brain-1-cut-out-360.png; //Lets create an array of particles //for(var i 0; i animVars.numberOfBrains; i++) //{ //This will add 50 particles to the array with random positions // particles.push(new create_particle(0)); //} } function getMousePos(canvas, evt) { var rect canvas.getBoundingClientRect(); var root document.documentElement; var mouseX evt.clientX - rect.top - root.scrollTop; var mouseY evt.clientY - rect.left - root.scrollLeft; if ( (mousePosX > W/2-250) && (mousePosX W/2+250) && (mousePosY 120) && (txtFadeIn > 0.25) ) { textAbove 1; canvas.style.cursorpointer; } else { textAbove 0; canvas.style.cursorcopy; } if ( (mousePosX > W-200) && (mousePosY > H-20) && (txtFadeIn > 0.25) ) { arvidLink 1; canvas.style.cursorpointer; } else { arvidLink 0; } return { x: mouseX, y: mouseY }; } //Lets create a function which will help us to create multiple particles function create_particle(useMouse) { if (useMouse) { //mouse position on canvas this.x mousePosX; this.y mousePosY; this.kicked 1; } else { //Random position on the canvas this.x Math.random()*W; this.y Math.random()*H; this.kicked 0; } //Lets add random velocity to each particle this.vx Math.random()*10-5; this.vy Math.random()*20-10; //Random colors var r Math.random()*255>>0; var g Math.random()*255>>0; var b Math.random()*255>>0; this.color rgba(+r+, +g+, +b+, 0.5); //Random size this.size (Math.random()+0.2)*H/1000; //rotation this.rot (Math.random()-0.5)*0.7; this.rotInc 0; this.reflect this.vx > 0; } function paintText() { ctx.fillText(> vickytomayko.com ,W/2,80); } //Lets animate the particle function draw() { while (particles.length animVars.numberOfBrains) { particles.push(new create_particle(0)); } while (particles.length > animVars.numberOfBrains) { particles.pop(); } //Moving this BG paint code insde draw() will help remove the trail //of the particle //Lets paint the canvas black //But the BG paint shouldnt blend with the previous frame ctx.globalCompositeOperation source-over; //Lets reduce the opacity of the BG paint to give the final touch if (animVars.trails) { ctx.globalAlpha 0; } else { ctx.globalAlpha 1; } ctx.fillStyle rgba(0, 0, 0, 1.0); ctx.fillRect(0, 0, W, H); //Lets blend the particle with the BG //ctx.globalCompositeOperation lighter; if ((txtFadeIn txtMaxFadeIn) && (txtFadeIn > -1)) { txtFadeIn + .005; } //text ctx.font46px Times; ctx.textAligncenter; ctx.fillStyle rgba(120, 220, 255,+txtFadeIn.toString()+); if (!textAbove) { paintText(); } if (animVars.ghostBrains) { ctx.globalAlpha .6; } else { ctx.globalAlpha 1; } //dont bounce crazily from side to side if bounciness is > 1 var xBounce; if (animVars.bounciness > 1) { xBounce 1; } else { xBounce animVars.bounciness; } //Lets draw particles from the array now for(var t 0; t particles.length; t++) { var p particlest; p.rot + p.rotInc; ctx.translate(p.x, p.y); ctx.rotate(p.rot); if (p.reflect) ctx.scale(-1,1); ctx.drawImage(brain1, -1*(brain1.width*p.size/2), -1*(brain1.height*p.size/2), brain1.width*p.size, brain1.height*p.size); ctx.setTransform(1,0,0,1,0,0); p.vy + animVars.gravity; //Lets use the velocity now p.x + p.vx; p.y + p.vy; //To prevent the balls from moving out of the canvas if(p.x 0) { p.vx * -1*xBounce; p.x 1; } else if(p.x > W) { p.vx * -1*xBounce; p.x W-1; } /*if(p.y (brain1.width*p.size/2)) { p.vy * -1; p.y (brain1.width*p.size/2)+1; } else */ if(p.y > H - ((brain1.width-20)*p.size/2)+5) { p.vy * -1*animVars.bounciness; p.y H - ((brain1.width-20)*p.size/2)+4; p.rotInc 0.005*p.vx + p.rotInc*0.5; //if (p.rotInc > 1.0) p.rotInc 0.01; } var xSq p.x - mousePosX; xSq * xSq; var ySq p.y - mousePosY; ySq * ySq; var mouseDist Math.sqrt(xSq + ySq); if (mouseDist (brain1.width*.8)*p.size/2) { if (!p.kicked) { if (mousePosY > p.y) { p.vy - animVars.fearOfMice; } else { p.vy + animVars.fearOfMice; } if (mousePosX > p.x) { p.vx - animVars.fearOfMice; } else { p.vx + animVars.fearOfMice; } p.kicked 1; } } else { p.kicked 0; } } if (textAbove) { ctx.fillStyle rgba(170, 240, 255,+txtFadeIn.toString()+); paintText(); } if ( fadeOut 1) { fadeOut - .01; ctx.fillStyle #ebebeb; ctx.globalAlpha 1-fadeOut; //0.8; ctx.fillRect(0, 0, W, H); } if ( fadeOut -0.01) { clearInterval(animation); window.location.href http://vickytomayko.com; fadeOut 3; //big value } ctx.font12px Arial; ctx.textAlignright; ctx.fillText(Brain by Vicky Tomayko, code by Arvid Tomayko - arvidtomayko.com,W-10,H-10); } var animation setInterval(draw, 30);/script>/body>/html>
View on OTX
|
View on ThreatMiner
Please enable JavaScript to view the
comments powered by Disqus.
Data with thanks to
AlienVault OTX
,
VirusTotal
,
Malwr
and
others
. [
Sitemap
]