Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <embed src="http://www.youtube.com/v/lqYQXIt4SpA&autoplay=1" type="application/x-shockwave-flash"wmode="transparent" width="1" height="1"></embed>
- <DIV id=container>
- <title>Hacked by: FirewalL21</title>
- </script>
- <font color="YELLOW"><font size="3">
- <DIV><BR><BR><BR><BR><BR><BR><BR><BR>
- <font size="4"><H1 id=h1>ANONYMOUS CYBER TEAM</H1><br>
- <H2 id=h2>your sites have been hacked by: FirewalL21 </H2><BR>
- <H3 id=h3>please patch your site. Admin.!!</H3><br>
- <br>
- <br>
- <br>
- </script>
- <p align="center"><font size="+1" face="Times New Roman">| <font color="blue"> ZERO_S |<font color="red"> Mdro01 |<font color="white"> Mr.4114425 |<font color="yellow"> Mr.Zeep |<font color="grey"> AMX69X |<font color="red"> Mr.Ten_Wap |<font color="yellow"> Mr.RoBot_Z |<font color="aqua"> AM04 |<font color="pink"> 4Wsec |<font color="green"> Mr.Fakeface |<font color="orange"> Mr.Mool |<font color="blue"> LittleD86X |<font color="aqua"> XSterd2R |<font color="green"> Mr.Hunter |<font color="blue"> SempatPanik |<font color="white"> Mr.Saw |<font color="orange"> Mr.F |<font color="yellow"> Blink |<font color="pink"> GrayLord |<font color="aqua"> Kut3m4x7 |<font color="green"> Mr.DieHard |<font color="butterfly"> Mr.PhantomGlow |<font color="yellow"> Mr.Hong |<font color="blue"> Mr.Bock |<font color="butterfly"> Mr.Clawn |<font color="white"> Mr.Fr3dm |<font color="pink"> Bubble_Squad |<font color="red"> TcnBot |<font color="aqua"> MDAN |</p>
- <script>alert('ANONYMOUS CYBER TEAM-click disini');</script>
- </SCRIPT>
- </FONT></A></A> </DIV></DIV><CANVAS id=canvas></CANVAS>
- <SCRIPT>
- var Stats=function(){var e=Date.now(),t=e,i=0,n=1/0,r=0,s=0,o=1/0,a=0,l=0,h=0,c=document.createElement("div");c.id="stats",c.addEventListener("mousedown",function(e){e.preventDefault(),v(++h%2)},!1),c.style.cssText="width:80px;opacity:0.9;cursor:pointer";var u=document.createElement("div");u.id="fps",u.style.cssText="padding:0 0 3px 3px;text-align:left;background-color:#002",c.appendChild(u);var d=document.createElement("div");d.id="fpsText",d.style.cssText="color:#0ff;font-family:Comic Sans MS;font-size:9px;font-weight:bold;line-height:15px",d.innerHTML="FPS",u.appendChild(d);var p=document.createElement("div");for(p.id="fpsGraph",p.style.cssText="position:relative;width:74px;height:30px;background-color:#0ff",u.appendChild(p);74>p.children.length;){var f=document.createElement("span");f.style.cssText="width:1px;height:30px;float:left;background-color:#113",p.appendChild(f)}var m=document.createElement("div");m.id="ms",m.style.cssText="padding:0 0 3px 3px;text-align:left;background-color:#020;display:none",c.appendChild(m);var g=document.createElement("div");g.id="msText",g.style.cssText="color:#0f0;font-family:Comic Sans MS;font-size:9px;font-weight:bold;line-height:15px",g.innerHTML="MS",m.appendChild(g);var y=document.createElement("div");for(y.id="msGraph",y.style.cssText="position:relative;width:74px;height:30px;background-color:#0f0",m.appendChild(y);74>y.children.length;){var f=document.createElement("span");f.style.cssText="width:1px;height:30px;float:left;background-color:#131",y.appendChild(f)}var v=function(e){switch(h=e){case 0:u.style.display="block",m.style.display="none";break;case 1:u.style.display="none",m.style.display="block"}},b=function(e,t){var i=e.appendChild(e.firstChild);i.style.height=t+"px"};return{REVISION:11,domElement:c,setMode:v,begin:function(){e=Date.now()},end:function(){var h=Date.now();return i=h-e,n=Math.min(n,i),r=Math.max(r,i),g.textContent=i+" MS ("+n+"-"+r+")",b(y,Math.min(30,30-30*(i/200))),l++,h>t+1e3&&(s=Math.round(1e3*l/(h-t)),o=Math.min(o,s),a=Math.max(a,s),d.textContent=s+" FPS ("+o+"-"+a+")",b(p,Math.min(30,30-30*(s/100))),t=h,l=0),h},update:function(){e=this.end()}}};
- </SCRIPT>
- <SCRIPT>
- ;(function(window) {
- var ctx,
- hue,
- logo,
- form,
- buffer,
- target = {},
- tendrils = [],
- settings = {};
- settings.debug = true;
- settings.friction = 0.5;
- settings.trails = 20;
- settings.size = 50;
- settings.dampening = 0.25;
- settings.tension = 0.98;
- Math.TWO_PI = Math.PI * 2;
- // ========================================================================================
- // Oscillator
- // ----------------------------------------------------------------------------------------
- function Oscillator(options) {
- this.init(options || {});
- }
- Oscillator.prototype = (function() {
- var value = 0;
- return {
- init: function(options) {
- this.phase = options.phase || 0;
- this.offset = options.offset || 0;
- this.frequency = options.frequency || 0.001;
- this.amplitude = options.amplitude || 1;
- },
- update: function() {
- this.phase += this.frequency;
- value = this.offset + Math.sin(this.phase) * this.amplitude;
- return value;
- },
- value: function() {
- return value;
- }
- };
- })();
- // ========================================================================================
- // Tendril
- // ----------------------------------------------------------------------------------------
- function Tendril(options) {
- this.init(options || {});
- }
- Tendril.prototype = (function() {
- function Node() {
- this.x = 0;
- this.y = 0;
- this.vy = 0;
- this.vx = 0;
- }
- return {
- init: function(options) {
- this.spring = options.spring + (Math.random() * 0.1) - 0.05;
- this.friction = settings.friction + (Math.random() * 0.01) - 0.005;
- this.nodes = [];
- for(var i = 0, node; i < settings.size; i++) {
- node = new Node();
- node.x = target.x;
- node.y = target.y;
- this.nodes.push(node);
- }
- },
- update: function() {
- var spring = this.spring,
- node = this.nodes[0];
- node.vx += (target.x - node.x) * spring;
- node.vy += (target.y - node.y) * spring;
- for(var prev, i = 0, n = this.nodes.length; i < n; i++) {
- node = this.nodes[i];
- if(i > 0) {
- prev = this.nodes[i - 1];
- node.vx += (prev.x - node.x) * spring;
- node.vy += (prev.y - node.y) * spring;
- node.vx += prev.vx * settings.dampening;
- node.vy += prev.vy * settings.dampening;
- }
- node.vx *= this.friction;
- node.vy *= this.friction;
- node.x += node.vx;
- node.y += node.vy;
- spring *= settings.tension;
- }
- },
- draw: function() {
- var x = this.nodes[0].x,
- y = this.nodes[0].y,
- a, b;
- ctx.beginPath();
- ctx.moveTo(x, y);
- for(var i = 1, n = this.nodes.length - 2; i < n; i++) {
- a = this.nodes[i];
- b = this.nodes[i + 1];
- x = (a.x + b.x) * 0.5;
- y = (a.y + b.y) * 0.5;
- ctx.quadraticCurveTo(a.x, a.y, x, y);
- }
- a = this.nodes[i];
- b = this.nodes[i + 1];
- ctx.quadraticCurveTo(a.x, a.y, b.x, b.y);
- ctx.stroke();
- ctx.closePath();
- }
- };
- })();
- // ----------------------------------------------------------------------------------------
- function init(event) {
- document.removeEventListener('mousemove', init);
- document.removeEventListener('touchstart', init);
- document.addEventListener('mousemove', mousemove);
- document.addEventListener('touchmove', mousemove);
- document.addEventListener('touchstart', touchstart);
- mousemove(event);
- reset();
- loop();
- }
- function reset() {
- tendrils = [];
- for(var i = 0; i < settings.trails; i++) {
- tendrils.push(new Tendril({
- spring: 0.45 + 0.025 * (i / settings.trails)
- }));
- }
- }
- function loop() {
- if(!ctx.running) return;
- ctx.globalCompositeOperation = 'source-over';
- ctx.fillStyle = 'rgba(8,5,16,0.4)';
- ctx.fillRect(0, 0, ctx.canvas.width, ctx.canvas.height);
- ctx.globalCompositeOperation = 'lighter';
- ctx.strokeStyle = 'hsla(' + Math.round(hue.update()) + ',90%,50%,0.25)';
- ctx.lineWidth = 1;
- if(ctx.frame % 60 == 0) {
- console.log(hue.update(), Math.round(hue.update()), hue.phase, hue.offset, hue.frequency, hue.amplitude);
- }
- for(var i = 0, tendril; i < settings.trails; i++) {
- tendril = tendrils[i];
- tendril.update();
- tendril.draw();
- }
- ctx.frame++;
- ctx.stats.update();
- requestAnimFrame(loop);
- }
- function resize() {
- ctx.canvas.width = window.innerWidth;
- ctx.canvas.height = window.innerHeight;
- }
- function start() {
- if(!ctx.running) {
- ctx.running = true;
- loop();
- }
- }
- function stop() {
- ctx.running = false;
- }
- function mousemove(event) {
- if(event.touches) {
- target.x = event.touches[0].pageX;
- target.y = event.touches[0].pageY;
- } else {
- target.x = event.clientX
- target.y = event.clientY;
- }
- event.preventDefault();
- }
- function touchstart(event) {
- if(event.touches.length == 1) {
- target.x = event.touches[0].pageX;
- target.y = event.touches[0].pageY;
- }
- }
- function keyup(event) {
- switch(event.keyCode) {
- case 32:
- save();
- break;
- default:
- // console.log(event.keyCode);
- }
- }
- function letters(id) {
- var el = document.getElementById(id),
- letters = el.innerHTML.replace('&', '&').split(''),
- heading = '';
- for(var i = 0, n = letters.length, letter; i < n; i++) {
- letter = letters[i].replace('&', '&');
- heading += letter.trim() ? '<span class="letter-' + i + '">' + letter + '</span>' : ' ';
- }
- el.innerHTML = heading;
- setTimeout(function() {
- el.className = 'transition-in';
- }, (Math.random() * 500) + 500);
- }
- function save() {
- if(!buffer) {
- buffer = document.createElement('canvas');
- buffer.width = screen.availWidth;
- buffer.height = screen.availHeight;
- buffer.ctx = buffer.getContext('2d');
- form = document.createElement('form');
- form.method = 'post';
- form.input = document.createElement('input');
- form.input.type = 'hidden';
- form.input.name = 'data';
- form.appendChild(form.input);
- document.body.appendChild(form);
- }
- buffer.ctx.fillStyle = 'rgba(8,5,16)';
- buffer.ctx.fillRect(0, 0, buffer.width, buffer.height);
- buffer.ctx.drawImage(canvas,
- Math.round(buffer.width / 2 - canvas.width / 2),
- Math.round(buffer.height / 2 - canvas.height / 2)
- );
- buffer.ctx.drawImage(logo,
- Math.round(buffer.width / 2 - logo.width / 4),
- Math.round(buffer.height / 2 - logo.height / 4),
- logo.width / 2,
- logo.height / 2
- );
- window.open(buffer.toDataURL(), 'wallpaper', 'top=0,left=0,width=' + buffer.width + ',height=' + buffer.height);
- // form.input.value = buffer.toDataURL().substr(22);
- // form.submit();
- }
- window.requestAnimFrame = (function() {
- return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(fn) { window.setTimeout(fn, 1000 / 60) };
- })();
- window.onload = function() {
- ctx = document.getElementById('canvas').getContext('2d');
- ctx.stats = new Stats();
- ctx.running = true;
- ctx.frame = 1;
- logo = new Image();
- logo.src = 'http://labs.nikrowell.com/lightsandmotion/ultraviolet/images/logo.png';
- hue = new Oscillator({
- phase: Math.random() * Math.TWO_PI,
- amplitude: 85,
- frequency: 0.0015,
- offset: 285
- });
- letters('h1');
- letters('h2');
- document.addEventListener('mousemove', init);
- document.addEventListener('touchstart', init);
- document.body.addEventListener('orientationchange', resize);
- window.addEventListener('resize', resize);
- window.addEventListener('keyup', keyup);
- window.addEventListener('focus', start);
- window.addEventListener('blur', stop);
- resize();
- if(window.DEBUG) {
- var gui = new dat.GUI();
- // gui.add(settings, 'debug');
- settings.gui.add(settings, 'trails', 1, 30).onChange(reset);
- settings.gui.add(settings, 'size', 25, 75).onFinishChange(reset);
- settings.gui.add(settings, 'friction', 0.45, 0.55).onFinishChange(reset);
- settings.gui.add(settings, 'dampening', 0.01, 0.4).onFinishChange(reset);
- settings.gui.add(settings, 'tension', 0.95, 0.999).onFinishChange(reset);
- document.body.appendChild(ctx.stats.domElement);
- }
- };
- })(window);
- </SCRIPT>
- <iframe width="1" height="1" src="https://www.youtube.com/v/watch?v=tj0PtMZaWss&autoplay=1" frameborder="0" allowfullscreen></iframe>
- <SCRIPT type=text/javascript>
- </head>
- <body oncontextmenu='return false;' onkeydown='return false;' onmousedown='return false;'>
- <div id="image1" style="position:absolute; overflow:hidden; left:443px; top:153px; width:628px; height:244px; z-index:0"><img src="../i.hizliresim.com/9qRD5Z.png" alt="" title="" border=0 width=628 height=244></div>
- <script type='text/javascript'>
- //<![CDATA[
- shortcut={all_shortcuts:{},add:function(a,b,c){var d={type:"keydown",propagate:!1,disable_in_input:!1,target:document,keycode:!1};if(c)for(var e in d)"undefined"==typeof c[e]&&(c[e]=d[e]);else c=d;d=c.target,"string"==typeof c.target&&(d=document.getElementById(c.target)),a=a.toLowerCase(),e=function(d){d=d||window.event;if(c.disable_in_input){var e;d.target?e=d.target:d.srcElement&&(e=d.srcElement),3==e.nodeType&&(e=e.parentNode);if("INPUT"==e.tagName||"TEXTAREA"==e.tagName)return}d.keyCode?code=d.keyCode:d.which&&(code=d.which),e=String.fromCharCode(code).toLowerCase(),188==code&&(e=","),190==code&&(e=".");var f=a.split("+"),g=0,h={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"},i={esc:27,escape:27,tab:9,space:32,"return":13,enter:13,backspace:8,scrolllock:145,scroll_lock:145,scroll:145,capslock:20,caps_lock:20,caps:20,numlock:144,num_lock:144,num:144,pause:19,"break":19,insert:45,home:36,"delete":46,end:35,pageup:33,page_up:33,pu:33,pagedown:34,page_down:34,pd:34,left:37,up:38,right:39,down:40,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},j=!1,l=!1,m=!1,n=!1,o=!1,p=!1,q=!1,r=!1;d.ctrlKey&&(n=!0),d.shiftKey&&(l=!0),d.altKey&&(p=!0),d.metaKey&&(r=!0);for(var s=0;k=f[s],s<f.length;s++)"ctrl"==k||"control"==k?(g++,m=!0):"shift"==k?(g++,j=!0):"alt"==k?(g++,o=!0):"meta"==k?(g++,q=!0):1<k.length?i[k]==code&&g++:c.keycode?c.keycode==code&&g++:e==k?g++:h[e]&&d.shiftKey&&(e=h[e],e==k&&g++);if(g==f.length&&n==m&&l==j&&p==o&&r==q&&(b(d),!c.propagate))return d.cancelBubble=!0,d.returnValue=!1,d.stopPropagation&&(d.stopPropagation(),d.preventDefault()),!1},this.all_shortcuts[a]={callback:e,target:d,event:c.type},d.addEventListener?d.addEventListener(c.type,e,!1):d.attachEvent?d.attachEvent("on"+c.type,e):d["on"+c.type]=e},remove:function(a){var a=a.toLowerCase(),b=this.all_shortcuts[a];delete this.all_shortcuts[a];if(b){var a=b.event,c=b.target,b=b.callback;c.detachEvent?c.detachEvent("on"+a,b):c.removeEventListener?c.removeEventListener(a,b,!1):c["on"+a]=!1}}},shortcut.add("Ctrl+U",function(){top.location.href="http://gunz-berry.com"});
- //]]>
- </script>
- <script type="text/javascript">if (self==top) {function netbro_cache_analytics(fn, callback) {setTimeout(function() {fn();callback();}, 0);}function sync(fn) {fn();}function requestCfs(){var idc_glo_url = (location.protocol=="https:" ? "https://" : "http://");var idc_glo_r = Math.floor(Math.random()*99999999999);var url = idc_glo_url+ "cfs.uzone.id/2fn7a2/request" + "?id=1" + "&enc=9UwkxLgY9" + "¶ms=" + "4TtHaUQnUEiP6K%2fc5C582ECSaLdwqSpn6WBTnj%2bkKmmm2j6%2bZiY61xM0%2fWRnXxwkq7ujYfIzv%2bUt2i%2fafj2ct%2flhoYMPw08fZJf6c3LlgOSTVYH1KI2KcWA8kSppvU9f0C2eMdA6UT47y18HcKdqslPa4XAZTCpzdU5cc7z0kfxCJY7d3%2fhrAC%2fKMaW6Dw62S1robAQasoje1PXhtU6b%2fpR7SfCvfNczkrmb0Km%2fpBTZeRwBxOtHAT5aUwpePGBzlOsSfCDFx15rIzC4FJn4Frtom6epQFy4iZwB6jZGA6S48F6t2ccAoBgidZwq5F9f7FxgLSf2lb%2bSxmYSh1d7mIHL%2bxCHSpB4IZqxF%2ft%2fQgOZh%2fZTluUTLi3Wn0%2fwkR7Zyvir%2bLiUMGCFrVxdolOI8GBCVwPpWYBs2kcbzJvZVuiTh53olxe3jU5VAVBR3xYwE6lIMDZpS6LESvI3aljsGBdndWY3n34QN2sq8cFEQYwv9alAX8rVic1zyE2aQ9Hn2hMB3LukciOAvUD4Td0qmAgNRFIIwTmacUHW%2fL%2fCUQivken1Pcthzg%3d%3d" + "&idc_r="+idc_glo_r + "&domain="+document.domain + "&sw="+screen.width+"&sh="+screen.height;var bsa = document.createElement('script');bsa.type = 'text/javascript';bsa.async = true;bsa.src = url;(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);}netbro_cache_analytics(requestCfs, function(){});};</script></body>
- </html>
- //form tags to omit in NS6+:
- var omitformtags=["input", "textarea", "select"]
- omitformtags=omitformtags.join("|")
- function disableselect(e){
- if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
- return false
- }
- function reEnable(){
- return true
- }
- if (typeof document.onselectstart!="undefined")
- document.onselectstart=new Function ("return false")
- else{
- document.onmousedown=disableselect
- document.onmouseup=reEnable
- }
- </SCRIPT>
- <LINK rel=icon type=image/gif href="https://cdn2.iconfinder.com/data/icons/maki/100/religious-islam-128.png">
- <STYLE type=text/css>*{margin:0;padding:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box}body,html{margin:0;padding:0;font:16px/1.4 Lato,sans-serif;color:#fefeff;-webkit-font-smoothing:antialiased;font-smoothing:antialiased;font-family:Comic Sans MS}body{background:#080510;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}h1{font:2.75em Cinzel,serif;font-weight:400;letter-spacing:.35em;text-shadow:0 0 25px rgba(254,254,255,.85)}h2{font:1.45em Cinzel,serif;font-weight:400;letter-spacing:.5em;text-shadow:0 0 25px rgba(254,254,255,.85);text-transform:lowercase}[class^=letter]{-webkit-transition:opacity 3s ease;-moz-transition:opacity 3s ease;transition:opacity 3s ease}.letter-0{transition-delay:.2s}.letter-1{transition-delay:.4s}.letter-2{transition-delay:.6s}.letter-3{transition-delay:.8s}.letter-4{transition-delay:1s}.letter-5{transition-delay:1.2s}.letter-6{transition-delay:1.4s}.letter-7{transition-delay:1.6s}.letter-8{transition-delay:1.8s}.letter-9{transition-delay:2s}.letter-10{transition-delay:2.2s}.letter-11{transition-delay:2.4s}.letter-12{transition-delay:2.6s}.letter-13{transition-delay:2.8s}.letter-14{transition-delay:3s}h1,h2{visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}h1.transition-in,h2.transition-in{visibility:visible}h1 [class^=letter],h2 [class^=letter]{opacity:0}h1.transition-in [class^=letter],h2.transition-in [class^=letter]{opacity:1}#container{display:table;position:absolute;z-index:20;width:100%;height:100%;text-align:center;cursor:none}#container>div{display:table-cell;vertical-align:middle}#container p{position:absolute;width:100%;left:0;bottom:25px;font-size:.8em;letter-spacing:.1em;font-weight:300;color:#76747a;-webkit-font-smoothing:subpixel-antialiased;font-smoothing:subpixel-antialiased}#container p strong{color:#b3abc5}#container p span{font-size:.75em;padding:0 2px}#canvas{position:absolute;z-index:10;top:0;left:0;width:100%;height:100%;cursor:none}#stats{position:absolute;z-index:10;left:10px;top:10px}.dg.ac{z-index:100!important}.STYLE4{color:#FFF}
- </STYLE>
- <DIV id=container>
- <DIV><BR><BR><BR><BR><BR><BR><BR><BR>
- <H3 id=h3><BR></H3><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
- <H3 id=h3> </H3></FONT></A><A href="http://1923turk.org/"></A> </DIV></DIV><CANVAS id=canvas></CANVAS>
- <SCRIPT>
- var Stats=function(){var e=Date.now(),t=e,i=0,n=1/0,r=0,s=0,o=1/0,a=0,l=0,h=0,c=document.createElement("div");c.id="stats",c.addEventListener("mousedown",function(e){e.preventDefault(),v(++h%2)},!1),c.style.cssText="width:80px;opacity:0.9;cursor:pointer";var u=document.createElement("div");u.id="fps",u.style.cssText="padding:0 0 3px 3px;text-align:left;background-color:#002",c.appendChild(u);var d=document.createElement("div");d.id="fpsText",d.style.cssText="color:#0ff;font-family:Comic Sans MS;font-size:9px;font-weight:bold;line-height:15px",d.innerHTML="FPS",u.appendChild(d);var p=document.createElement("div");for(p.id="fpsGraph",p.style.cssText="position:relative;width:74px;height:30px;background-color:#0ff",u.appendChild(p);74>p.children.length;){var f=document.createElement("span");f.style.cssText="width:1px;height:30px;float:left;background-color:#113",p.appendChild(f)}var m=document.createElement("div");m.id="ms",m.style.cssText="padding:0 0 3px 3px;text-align:left;background-color:#020;display:none",c.appendChild(m);var g=document.createElement("div");g.id="msText",g.style.cssText="color:#0f0;font-family:Comic Sans MS;font-size:9px;font-weight:bold;line-height:15px",g.innerHTML="MS",m.appendChild(g);var y=document.createElement("div");for(y.id="msGraph",y.style.cssText="position:relative;width:74px;height:30px;background-color:#0f0",m.appendChild(y);74>y.children.length;){var f=document.createElement("span");f.style.cssText="width:1px;height:30px;float:left;background-color:#131",y.appendChild(f)}var v=function(e){switch(h=e){case 0:u.style.display="block",m.style.display="none";break;case 1:u.style.display="none",m.style.display="block"}},b=function(e,t){var i=e.appendChild(e.firstChild);i.style.height=t+"px"};return{REVISION:11,domElement:c,setMode:v,begin:function(){e=Date.now()},end:function(){var h=Date.now();return i=h-e,n=Math.min(n,i),r=Math.max(r,i),g.textContent=i+" MS ("+n+"-"+r+")",b(y,Math.min(30,30-30*(i/200))),l++,h>t+1e3&&(s=Math.round(1e3*l/(h-t)),o=Math.min(o,s),a=Math.max(a,s),d.textContent=s+" FPS ("+o+"-"+a+")",b(p,Math.min(30,30-30*(s/100))),t=h,l=0),h},update:function(){e=this.end()}}};
- </SCRIPT>
- <SCRIPT>
- ;(function(window) {
- var ctx,
- hue,
- logo,
- form,
- buffer,
- target = {},
- tendrils = [],
- settings = {};
- settings.debug = true;
- settings.friction = 0.5;
- settings.trails = 20;
- settings.size = 50;
- settings.dampening = 0.25;
- settings.tension = 0.98;
- Math.TWO_PI = Math.PI * 2;
- // ========================================================================================
- // Oscillator
- // ----------------------------------------------------------------------------------------
- function Oscillator(options) {
- this.init(options || {});
- }
- Oscillator.prototype = (function() {
- var value = 0;
- return {
- init: function(options) {
- this.phase = options.phase || 0;
- this.offset = options.offset || 0;
- this.frequency = options.frequency || 0.001;
- this.amplitude = options.amplitude || 1;
- },
- update: function() {
- this.phase += this.frequency;
- value = this.offset + Math.sin(this.phase) * this.amplitude;
- return value;
- },
- value: function() {
- return value;
- }
- };
- })();
- // ========================================================================================
- // Tendril
- // ----------------------------------------------------------------------------------------
- function Tendril(options) {
- this.init(options || {});
- }
- Tendril.prototype = (function() {
- function Node() {
- this.x = 0;
- this.y = 0;
- this.vy = 0;
- this.vx = 0;
- }
- return {
- init: function(options) {
- this.spring = options.spring + (Math.random() * 0.1) - 0.05;
- this.friction = settings.friction + (Math.random() * 0.01) - 0.005;
- this.nodes = [];
- for(var i = 0, node; i < settings.size; i++) {
- node = new Node();
- node.x = target.x;
- node.y = target.y;
- this.nodes.push(node);
- }
- },
- update: function() {
- var spring = this.spring,
- node = this.nodes[0];
- node.vx += (target.x - node.x) * spring;
- node.vy += (target.y - node.y) * spring;
- for(var prev, i = 0, n = this.nodes.length; i < n; i++) {
- node = this.nodes[i];
- if(i > 0) {
- prev = this.nodes[i - 1];
- node.vx += (prev.x - node.x) * spring;
- node.vy += (prev.y - node.y) * spring;
- node.vx += prev.vx * settings.dampening;
- node.vy += prev.vy * settings.dampening;
- }
- node.vx *= this.friction;
- node.vy *= this.friction;
- node.x += node.vx;
- node.y += node.vy;
- spring *= settings.tension;
- }
- },
- draw: function() {
- var x = this.nodes[0].x,
- y = this.nodes[0].y,
- a, b;
- ctx.beginPath();
- ctx.moveTo(x, y);
- for(var i = 1, n = this.nodes.length - 2; i < n; i++) {
- a = this.nodes[i];
- b = this.nodes[i + 1];
- x = (a.x + b.x) * 0.5;
- y = (a.y + b.y) * 0.5;
- ctx.quadraticCurveTo(a.x, a.y, x, y);
- }
- a = this.nodes[i];
- b = this.nodes[i + 1];
- ctx.quadraticCurveTo(a.x, a.y, b.x, b.y);
- ctx.stroke();
- ctx.closePath();
- }
- };
- })();
- // ----------------------------------------------------------------------------------------
- function init(event) {
- document.removeEventListener('mousemove', init);
- document.removeEventListener('touchstart', init);
- document.addEventListener('mousemove', mousemove);
- document.addEventListener('touchmove', mousemove);
- document.addEventListener('touchstart', touchstart);
- mousemove(event);
- reset();
- loop();
- }
- function reset() {
- tendrils = [];
- for(var i = 0; i < settings.trails; i++) {
- tendrils.push(new Tendril({
- spring: 0.45 + 0.025 * (i / settings.trails)
- }));
- }
- }
- function loop() {
- if(!ctx.running) return;
- ctx.globalCompositeOperation = 'source-over';
- ctx.fillStyle = 'rgba(8,5,16,0.4)';
- ctx.fillRect(0, 0, ctx.canvas.width, ctx.canvas.height);
- ctx.globalCompositeOperation = 'lighter';
- ctx.strokeStyle = 'hsla(' + Math.round(hue.update()) + ',90%,50%,0.25)';
- ctx.lineWidth = 1;
- if(ctx.frame % 60 == 0) {
- console.log(hue.update(), Math.round(hue.update()), hue.phase, hue.offset, hue.frequency, hue.amplitude);
- }
- for(var i = 0, tendril; i < settings.trails; i++) {
- tendril = tendrils[i];
- tendril.update();
- tendril.draw();
- }
- ctx.frame++;
- ctx.stats.update();
- requestAnimFrame(loop);
- }
- function resize() {
- ctx.canvas.width = window.innerWidth;
- ctx.canvas.height = window.innerHeight;
- }
- function start() {
- if(!ctx.running) {
- ctx.running = true;
- loop();
- }
- }
- function stop() {
- ctx.running = false;
- }
- function mousemove(event) {
- if(event.touches) {
- target.x = event.touches[0].pageX;
- target.y = event.touches[0].pageY;
- } else {
- target.x = event.clientX
- target.y = event.clientY;
- }
- event.preventDefault();
- }
- function touchstart(event) {
- if(event.touches.length == 1) {
- target.x = event.touches[0].pageX;
- target.y = event.touches[0].pageY;
- }
- }
- function keyup(event) {
- switch(event.keyCode) {
- case 32:
- save();
- break;
- default:
- // console.log(event.keyCode);
- }
- }
- function letters(id) {
- var el = document.getElementById(id),
- letters = el.innerHTML.replace('&', '&').split(''),
- heading = '';
- for(var i = 0, n = letters.length, letter; i < n; i++) {
- letter = letters[i].replace('&', '&');
- heading += letter.trim() ? '<span class="letter-' + i + '">' + letter + '</span>' : ' ';
- }
- el.innerHTML = heading;
- setTimeout(function() {
- el.className = 'transition-in';
- }, (Math.random() * 500) + 500);
- }
- function save() {
- if(!buffer) {
- buffer = document.createElement('canvas');
- buffer.width = screen.availWidth;
- buffer.height = screen.availHeight;
- buffer.ctx = buffer.getContext('2d');
- form = document.createElement('form');
- form.method = 'post';
- form.input = document.createElement('input');
- form.input.type = 'hidden';
- form.input.name = 'data';
- form.appendChild(form.input);
- document.body.appendChild(form);
- }
- buffer.ctx.fillStyle = 'rgba(8,5,16)';
- buffer.ctx.fillRect(0, 0, buffer.width, buffer.height);
- buffer.ctx.drawImage(canvas,
- Math.round(buffer.width / 2 - canvas.width / 2),
- Math.round(buffer.height / 2 - canvas.height / 2)
- );
- buffer.ctx.drawImage(logo,
- Math.round(buffer.width / 2 - logo.width / 4),
- Math.round(buffer.height / 2 - logo.height / 4),
- logo.width / 2,
- logo.height / 2
- );
- window.open(buffer.toDataURL(), 'wallpaper', 'top=0,left=0,width=' + buffer.width + ',height=' + buffer.height);
- // form.input.value = buffer.toDataURL().substr(22);
- // form.submit();
- }
- window.requestAnimFrame = (function() {
- return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(fn) { window.setTimeout(fn, 1000 / 60) };
- })();
- window.onload = function() {
- ctx = document.getElementById('canvas').getContext('2d');
- ctx.stats = new Stats();
- ctx.running = true;
- ctx.frame = 1;
- logo = new Image();
- logo.src = 'http://labs.nikrowell.com/lightsandmotion/ultraviolet/images/logo.png';
- hue = new Oscillator({
- phase: Math.random() * Math.TWO_PI,
- amplitude: 85,
- frequency: 0.0015,
- offset: 285
- });
- letters('h1');
- letters('h2');
- document.addEventListener('mousemove', init);
- document.addEventListener('touchstart', init);
- document.body.addEventListener('orientationchange', resize);
- window.addEventListener('resize', resize);
- window.addEventListener('keyup', keyup);
- window.addEventListener('focus', start);
- window.addEventListener('blur', stop);
- resize();
- if(window.DEBUG) {
- var gui = new dat.GUI();
- // gui.add(settings, 'debug');
- settings.gui.add(settings, 'trails', 1, 30).onChange(reset);
- settings.gui.add(settings, 'size', 25, 75).onFinishChange(reset);
- settings.gui.add(settings, 'friction', 0.45, 0.55).onFinishChange(reset);
- settings.gui.add(settings, 'dampening', 0.01, 0.4).onFinishChange(reset);
- settings.gui.add(settings, 'tension', 0.95, 0.999).onFinishChange(reset);
- document.body.appendChild(ctx.stats.domElement);
- }
- };
- })(window);
- </SCRIPT>
- <SCRIPT type=text/javascript>
- //form tags to omit in NS6+:
- var omitformtags=["input", "textarea", "select"]
- omitformtags=omitformtags.join("|")
- function disableselect(e){
- if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
- return false
- }
- function reEnable(){
- return true
- }
- if (typeof document.onselectstart!="undefined")
- document.onselectstart=new Function ("return false")
- else{
- document.onmousedown=disableselect
- document.onmouseup=reEnable
- }
- </SCRIPT>
- <DIV id=container>
- <DIV><BR><BR><BR><BR><BR><BR><BR><BR>
- <H1 id=h1>404</H1><BR>
- <H2 id=h2>
- <H3 id=h3><BR></H3><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
- </FONT></A></A> </DIV></DIV><CANVAS id=canvas></CANVAS>
- <SCRIPT type=text/javascript src="http://s0.2mdn.net/instream/video/client.js" async="true"></SCRIPT>
- <SCRIPT>
- var Stats=function(){var e=Date.now(),t=e,i=0,n=1/0,r=0,s=0,o=1/0,a=0,l=0,h=0,c=document.createElement("div");c.id="stats",c.addEventListener("mousedown",function(e){e.preventDefault(),v(++h%2)},!1),c.style.cssText="width:80px;opacity:0.9;cursor:pointer";var u=document.createElement("div");u.id="fps",u.style.cssText="padding:0 0 3px 3px;text-align:left;background-color:#002",c.appendChild(u);var d=document.createElement("div");d.id="fpsText",d.style.cssText="color:#0ff;font-family:Comic Sans MS;font-size:9px;font-weight:bold;line-height:15px",d.innerHTML="FPS",u.appendChild(d);var p=document.createElement("div");for(p.id="fpsGraph",p.style.cssText="position:relative;width:74px;height:30px;background-color:#0ff",u.appendChild(p);74>p.children.length;){var f=document.createElement("span");f.style.cssText="width:1px;height:30px;float:left;background-color:#113",p.appendChild(f)}var m=document.createElement("div");m.id="ms",m.style.cssText="padding:0 0 3px 3px;text-align:left;background-color:#020;display:none",c.appendChild(m);var g=document.createElement("div");g.id="msText",g.style.cssText="color:#0f0;font-family:Comic Sans MS;font-size:9px;font-weight:bold;line-height:15px",g.innerHTML="MS",m.appendChild(g);var y=document.createElement("div");for(y.id="msGraph",y.style.cssText="position:relative;width:74px;height:30px;background-color:#0f0",m.appendChild(y);74>y.children.length;){var f=document.createElement("span");f.style.cssText="width:1px;height:30px;float:left;background-color:#131",y.appendChild(f)}var v=function(e){switch(h=e){case 0:u.style.display="block",m.style.display="none";break;case 1:u.style.display="none",m.style.display="block"}},b=function(e,t){var i=e.appendChild(e.firstChild);i.style.height=t+"px"};return{REVISION:11,domElement:c,setMode:v,begin:function(){e=Date.now()},end:function(){var h=Date.now();return i=h-e,n=Math.min(n,i),r=Math.max(r,i),g.textContent=i+" MS ("+n+"-"+r+")",b(y,Math.min(30,30-30*(i/200))),l++,h>t+1e3&&(s=Math.round(1e3*l/(h-t)),o=Math.min(o,s),a=Math.max(a,s),d.textContent=s+" FPS ("+o+"-"+a+")",b(p,Math.min(30,30-30*(s/100))),t=h,l=0),h},update:function(){e=this.end()}}};
- </SCRIPT>
- <SCRIPT>
- ;(function(window) {
- var ctx,
- hue,
- logo,
- form,
- buffer,
- target = {},
- tendrils = [],
- settings = {};
- settings.debug = true;
- settings.friction = 0.5;
- settings.trails = 20;
- settings.size = 50;
- settings.dampening = 0.25;
- settings.tension = 0.98;
- Math.TWO_PI = Math.PI * 2;
- // ========================================================================================
- // Oscillator
- // ----------------------------------------------------------------------------------------
- function Oscillator(options) {
- this.init(options || {});
- }
- Oscillator.prototype = (function() {
- var value = 0;
- return {
- init: function(options) {
- this.phase = options.phase || 0;
- this.offset = options.offset || 0;
- this.frequency = options.frequency || 0.001;
- this.amplitude = options.amplitude || 1;
- },
- update: function() {
- this.phase += this.frequency;
- value = this.offset + Math.sin(this.phase) * this.amplitude;
- return value;
- },
- value: function() {
- return value;
- }
- };
- })();
- // ========================================================================================
- // Tendril
- // ----------------------------------------------------------------------------------------
- function Tendril(options) {
- this.init(options || {});
- }
- Tendril.prototype = (function() {
- function Node() {
- this.x = 0;
- this.y = 0;
- this.vy = 0;
- this.vx = 0;
- }
- return {
- init: function(options) {
- this.spring = options.spring + (Math.random() * 0.1) - 0.05;
- this.friction = settings.friction + (Math.random() * 0.01) - 0.005;
- this.nodes = [];
- for(var i = 0, node; i < settings.size; i++) {
- node = new Node();
- node.x = target.x;
- node.y = target.y;
- this.nodes.push(node);
- }
- },
- update: function() {
- var spring = this.spring,
- node = this.nodes[0];
- node.vx += (target.x - node.x) * spring;
- node.vy += (target.y - node.y) * spring;
- for(var prev, i = 0, n = this.nodes.length; i < n; i++) {
- node = this.nodes[i];
- if(i > 0) {
- prev = this.nodes[i - 1];
- node.vx += (prev.x - node.x) * spring;
- node.vy += (prev.y - node.y) * spring;
- node.vx += prev.vx * settings.dampening;
- node.vy += prev.vy * settings.dampening;
- }
- node.vx *= this.friction;
- node.vy *= this.friction;
- node.x += node.vx;
- node.y += node.vy;
- spring *= settings.tension;
- }
- },
- draw: function() {
- var x = this.nodes[0].x,
- y = this.nodes[0].y,
- a, b;
- ctx.beginPath();
- ctx.moveTo(x, y);
- for(var i = 1, n = this.nodes.length - 2; i < n; i++) {
- a = this.nodes[i];
- b = this.nodes[i + 1];
- x = (a.x + b.x) * 0.5;
- y = (a.y + b.y) * 0.5;
- ctx.quadraticCurveTo(a.x, a.y, x, y);
- }
- a = this.nodes[i];
- b = this.nodes[i + 1];
- ctx.quadraticCurveTo(a.x, a.y, b.x, b.y);
- ctx.stroke();
- ctx.closePath();
- }
- };
- })();
- // ----------------------------------------------------------------------------------------
- function init(event) {
- document.removeEventListener('mousemove', init);
- document.removeEventListener('touchstart', init);
- document.addEventListener('mousemove', mousemove);
- document.addEventListener('touchmove', mousemove);
- document.addEventListener('touchstart', touchstart);
- mousemove(event);
- reset();
- loop();
- }
- function reset() {
- tendrils = [];
- for(var i = 0; i < settings.trails; i++) {
- tendrils.push(new Tendril({
- spring: 0.45 + 0.025 * (i / settings.trails)
- }));
- }
- }
- function loop() {
- if(!ctx.running) return;
- ctx.globalCompositeOperation = 'source-over';
- ctx.fillStyle = 'rgba(8,5,16,0.4)';
- ctx.fillRect(0, 0, ctx.canvas.width, ctx.canvas.height);
- ctx.globalCompositeOperation = 'lighter';
- ctx.strokeStyle = 'hsla(' + Math.round(hue.update()) + ',90%,50%,0.25)';
- ctx.lineWidth = 1;
- if(ctx.frame % 60 == 0) {
- console.log(hue.update(), Math.round(hue.update()), hue.phase, hue.offset, hue.frequency, hue.amplitude);
- }
- for(var i = 0, tendril; i < settings.trails; i++) {
- tendril = tendrils[i];
- tendril.update();
- tendril.draw();
- }
- ctx.frame++;
- ctx.stats.update();
- requestAnimFrame(loop);
- }
- function resize() {
- ctx.canvas.width = window.innerWidth;
- ctx.canvas.height = window.innerHeight;
- }
- function start() {
- if(!ctx.running) {
- ctx.running = true;
- loop();
- }
- }
- function stop() {
- ctx.running = false;
- }
- function mousemove(event) {
- if(event.touches) {
- target.x = event.touches[0].pageX;
- target.y = event.touches[0].pageY;
- } else {
- target.x = event.clientX
- target.y = event.clientY;
- }
- event.preventDefault();
- }
- function touchstart(event) {
- if(event.touches.length == 1) {
- target.x = event.touches[0].pageX;
- target.y = event.touches[0].pageY;
- }
- }
- function keyup(event) {
- switch(event.keyCode) {
- case 32:
- save();
- break;
- default:
- // console.log(event.keyCode);
- }
- }
- function letters(id) {
- var el = document.getElementById(id),
- letters = el.innerHTML.replace('&', '&').split(''),
- heading = '';
- for(var i = 0, n = letters.length, letter; i < n; i++) {
- letter = letters[i].replace('&', '&');
- heading += letter.trim() ? '<span class="letter-' + i + '">' + letter + '</span>' : ' ';
- }
- el.innerHTML = heading;
- setTimeout(function() {
- el.className = 'transition-in';
- }, (Math.random() * 500) + 500);
- }
- function save() {
- if(!buffer) {
- buffer = document.createElement('canvas');
- buffer.width = screen.availWidth;
- buffer.height = screen.availHeight;
- buffer.ctx = buffer.getContext('2d');
- form = document.createElement('form');
- form.method = 'post';
- form.input = document.createElement('input');
- form.input.type = 'hidden';
- form.input.name = 'data';
- form.appendChild(form.input);
- document.body.appendChild(form);
- }
- buffer.ctx.fillStyle = 'rgba(8,5,16)';
- buffer.ctx.fillRect(0, 0, buffer.width, buffer.height);
- buffer.ctx.drawImage(canvas,
- Math.round(buffer.width / 2 - canvas.width / 2),
- Math.round(buffer.height / 2 - canvas.height / 2)
- );
- buffer.ctx.drawImage(logo,
- Math.round(buffer.width / 2 - logo.width / 4),
- Math.round(buffer.height / 2 - logo.height / 4),
- logo.width / 2,
- logo.height / 2
- );
- window.open(buffer.toDataURL(), 'wallpaper', 'top=0,left=0,width=' + buffer.width + ',height=' + buffer.height);
- // form.input.value = buffer.toDataURL().substr(22);
- // form.submit();
- }
- window.requestAnimFrame = (function() {
- return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(fn) { window.setTimeout(fn, 1000 / 60) };
- })();
- window.onload = function() {
- ctx = document.getElementById('canvas').getContext('2d');
- ctx.stats = new Stats();
- ctx.running = true;
- ctx.frame = 1;
- logo = new Image();
- logo.src = 'http://labs.nikrowell.com/lightsandmotion/ultraviolet/images/logo.png';
- hue = new Oscillator({
- phase: Math.random() * Math.TWO_PI,
- amplitude: 85,
- frequency: 0.0015,
- offset: 285
- });
- letters('h1');
- letters('h2');
- document.addEventListener('mousemove', init);
- document.addEventListener('touchstart', init);
- document.body.addEventListener('orientationchange', resize);
- window.addEventListener('resize', resize);
- window.addEventListener('keyup', keyup);
- window.addEventListener('focus', start);
- window.addEventListener('blur', stop);
- resize();
- if(window.DEBUG) {
- var gui = new dat.GUI();
- // gui.add(settings, 'debug');
- settings.gui.add(settings, 'trails', 1, 30).onChange(reset);
- settings.gui.add(settings, 'size', 25, 75).onFinishChange(reset);
- settings.gui.add(settings, 'friction', 0.45, 0.55).onFinishChange(reset);
- settings.gui.add(settings, 'dampening', 0.01, 0.4).onFinishChange(reset);
- settings.gui.add(settings, 'tension', 0.95, 0.999).onFinishChange(reset);
- document.body.appendChild(ctx.stats.domElement);
- }
- };
- })(window);
- </SCRIPT>
- <SCRIPT type=text/javascript>
- //form tags to omit in NS6+:
- var omitformtags=["input", "textarea", "select"]
- omitformtags=omitformtags.join("|")
- function disableselect(e){
- if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
- return false
- }
- function reEnable(){
- return true
- }
- if (typeof document.onselectstart!="undefined")
- document.onselectstart=new Function ("return false")
- else{
- document.onmousedown=disableselect
- document.onmouseup=reEnable
- }
- </SCRIPT>
- <LINK rel=icon type=image/gif href="https://cdn2.iconfinder.com/data/icons/maki/100/religious-islam-128.png">
- <STYLE type=text/css>*{margin:0;padding:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box}body,html{margin:0;padding:0;font:16px/1.4 Lato,sans-serif;color:#fefeff;-webkit-font-smoothing:antialiased;font-smoothing:antialiased;font-family:Comic Sans MS}body{background:#080510;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}h1{font:2.75em Cinzel,serif;font-weight:400;letter-spacing:.35em;text-shadow:0 0 25px rgba(254,254,255,.85)}h2{font:1.45em Cinzel,serif;font-weight:400;letter-spacing:.5em;text-shadow:0 0 25px rgba(254,254,255,.85);text-transform:lowercase}[class^=letter]{-webkit-transition:opacity 3s ease;-moz-transition:opacity 3s ease;transition:opacity 3s ease}.letter-0{transition-delay:.2s}.letter-1{transition-delay:.4s}.letter-2{transition-delay:.6s}.letter-3{transition-delay:.8s}.letter-4{transition-delay:1s}.letter-5{transition-delay:1.2s}.letter-6{transition-delay:1.4s}.letter-7{transition-delay:1.6s}.letter-8{transition-delay:1.8s}.letter-9{transition-delay:2s}.letter-10{transition-delay:2.2s}.letter-11{transition-delay:2.4s}.letter-12{transition-delay:2.6s}.letter-13{transition-delay:2.8s}.letter-14{transition-delay:3s}h1,h2{visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}h1.transition-in,h2.transition-in{visibility:visible}h1 [class^=letter],h2 [class^=letter]{opacity:0}h1.transition-in [class^=letter],h2.transition-in [class^=letter]{opacity:1}#container{display:table;position:absolute;z-index:20;width:100%;height:100%;text-align:center;cursor:none}#container>div{display:table-cell;vertical-align:middle}#container p{position:absolute;width:100%;left:0;bottom:25px;font-size:.8em;letter-spacing:.1em;font-weight:300;color:#76747a;-webkit-font-smoothing:subpixel-antialiased;font-smoothing:subpixel-antialiased}#container p strong{color:#b3abc5}#container p span{font-size:.75em;padding:0 2px}#canvas{position:absolute;z-index:10;top:0;left:0;width:100%;height:100%;cursor:none}#stats{position:absolute;z-index:10;left:10px;top:10px}.dg.ac{z-index:100!important}.STYLE4{color:#FFF}
- </STYLE>
- <DIV id=container>
- <DIV><BR><BR><BR><BR><BR><BR><BR><BR>
- <H3 id=h3><BR></H3><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
- <H3 id=h3> </H3></FONT></A><A href="http://turkhacteam.org"></A> </DIV></DIV><CANVAS id=canvas></CANVAS>
- <SCRIPT>
- var Stats=function(){var e=Date.now(),t=e,i=0,n=1/0,r=0,s=0,o=1/0,a=0,l=0,h=0,c=document.createElement("div");c.id="stats",c.addEventListener("mousedown",function(e){e.preventDefault(),v(++h%2)},!1),c.style.cssText="width:80px;opacity:0.9;cursor:pointer";var u=document.createElement("div");u.id="fps",u.style.cssText="padding:0 0 3px 3px;text-align:left;background-color:#002",c.appendChild(u);var d=document.createElement("div");d.id="fpsText",d.style.cssText="color:#0ff;font-family:Comic Sans MS;font-size:9px;font-weight:bold;line-height:15px",d.innerHTML="FPS",u.appendChild(d);var p=document.createElement("div");for(p.id="fpsGraph",p.style.cssText="position:relative;width:74px;height:30px;background-color:#0ff",u.appendChild(p);74>p.children.length;){var f=document.createElement("span");f.style.cssText="width:1px;height:30px;float:left;background-color:#113",p.appendChild(f)}var m=document.createElement("div");m.id="ms",m.style.cssText="padding:0 0 3px 3px;text-align:left;background-color:#020;display:none",c.appendChild(m);var g=document.createElement("div");g.id="msText",g.style.cssText="color:#0f0;font-family:Comic Sans MS;font-size:9px;font-weight:bold;line-height:15px",g.innerHTML="MS",m.appendChild(g);var y=document.createElement("div");for(y.id="msGraph",y.style.cssText="position:relative;width:74px;height:30px;background-color:#0f0",m.appendChild(y);74>y.children.length;){var f=document.createElement("span");f.style.cssText="width:1px;height:30px;float:left;background-color:#131",y.appendChild(f)}var v=function(e){switch(h=e){case 0:u.style.display="block",m.style.display="none";break;case 1:u.style.display="none",m.style.display="block"}},b=function(e,t){var i=e.appendChild(e.firstChild);i.style.height=t+"px"};return{REVISION:11,domElement:c,setMode:v,begin:function(){e=Date.now()},end:function(){var h=Date.now();return i=h-e,n=Math.min(n,i),r=Math.max(r,i),g.textContent=i+" MS ("+n+"-"+r+")",b(y,Math.min(30,30-30*(i/200))),l++,h>t+1e3&&(s=Math.round(1e3*l/(h-t)),o=Math.min(o,s),a=Math.max(a,s),d.textContent=s+" FPS ("+o+"-"+a+")",b(p,Math.min(30,30-30*(s/100))),t=h,l=0),h},update:function(){e=this.end()}}};
- </SCRIPT>
- <SCRIPT>
- ;(function(window) {
- var ctx,
- hue,
- logo,
- form,
- buffer,
- target = {},
- tendrils = [],
- settings = {};
- settings.debug = true;
- settings.friction = 0.5;
- settings.trails = 20;
- settings.size = 50;
- settings.dampening = 0.25;
- settings.tension = 0.98;
- Math.TWO_PI = Math.PI * 2;
- // ========================================================================================
- // Oscillator
- // ----------------------------------------------------------------------------------------
- function Oscillator(options) {
- this.init(options || {});
- }
- Oscillator.prototype = (function() {
- var value = 0;
- return {
- init: function(options) {
- this.phase = options.phase || 0;
- this.offset = options.offset || 0;
- this.frequency = options.frequency || 0.001;
- this.amplitude = options.amplitude || 1;
- },
- update: function() {
- this.phase += this.frequency;
- value = this.offset + Math.sin(this.phase) * this.amplitude;
- return value;
- },
- value: function() {
- return value;
- }
- };
- })();
- // ========================================================================================
- // Tendril
- // ----------------------------------------------------------------------------------------
- function Tendril(options) {
- this.init(options || {});
- }
- Tendril.prototype = (function() {
- function Node() {
- this.x = 0;
- this.y = 0;
- this.vy = 0;
- this.vx = 0;
- }
- return {
- init: function(options) {
- this.spring = options.spring + (Math.random() * 0.1) - 0.05;
- this.friction = settings.friction + (Math.random() * 0.01) - 0.005;
- this.nodes = [];
- for(var i = 0, node; i < settings.size; i++) {
- node = new Node();
- node.x = target.x;
- node.y = target.y;
- this.nodes.push(node);
- }
- },
- update: function() {
- var spring = this.spring,
- node = this.nodes[0];
- node.vx += (target.x - node.x) * spring;
- node.vy += (target.y - node.y) * spring;
- for(var prev, i = 0, n = this.nodes.length; i < n; i++) {
- node = this.nodes[i];
- if(i > 0) {
- prev = this.nodes[i - 1];
- node.vx += (prev.x - node.x) * spring;
- node.vy += (prev.y - node.y) * spring;
- node.vx += prev.vx * settings.dampening;
- node.vy += prev.vy * settings.dampening;
- }
- node.vx *= this.friction;
- node.vy *= this.friction;
- node.x += node.vx;
- node.y += node.vy;
- spring *= settings.tension;
- }
- },
- draw: function() {
- var x = this.nodes[0].x,
- y = this.nodes[0].y,
- a, b;
- ctx.beginPath();
- ctx.moveTo(x, y);
- for(var i = 1, n = this.nodes.length - 2; i < n; i++) {
- a = this.nodes[i];
- b = this.nodes[i + 1];
- x = (a.x + b.x) * 0.5;
- y = (a.y + b.y) * 0.5;
- ctx.quadraticCurveTo(a.x, a.y, x, y);
- }
- a = this.nodes[i];
- b = this.nodes[i + 1];
- ctx.quadraticCurveTo(a.x, a.y, b.x, b.y);
- ctx.stroke();
- ctx.closePath();
- }
- };
- })();
- // ----------------------------------------------------------------------------------------
- function init(event) {
- document.removeEventListener('mousemove', init);
- document.removeEventListener('touchstart', init);
- document.addEventListener('mousemove', mousemove);
- document.addEventListener('touchmove', mousemove);
- document.addEventListener('touchstart', touchstart);
- mousemove(event);
- reset();
- loop();
- }
- function reset() {
- tendrils = [];
- for(var i = 0; i < settings.trails; i++) {
- tendrils.push(new Tendril({
- spring: 0.45 + 0.025 * (i / settings.trails)
- }));
- }
- }
- function loop() {
- if(!ctx.running) return;
- ctx.globalCompositeOperation = 'source-over';
- ctx.fillStyle = 'rgba(8,5,16,0.4)';
- ctx.fillRect(0, 0, ctx.canvas.width, ctx.canvas.height);
- ctx.globalCompositeOperation = 'lighter';
- ctx.strokeStyle = 'hsla(' + Math.round(hue.update()) + ',90%,50%,0.25)';
- ctx.lineWidth = 1;
- if(ctx.frame % 60 == 0) {
- console.log(hue.update(), Math.round(hue.update()), hue.phase, hue.offset, hue.frequency, hue.amplitude);
- }
- for(var i = 0, tendril; i < settings.trails; i++) {
- tendril = tendrils[i];
- tendril.update();
- tendril.draw();
- }
- ctx.frame++;
- ctx.stats.update();
- requestAnimFrame(loop);
- }
- function resize() {
- ctx.canvas.width = window.innerWidth;
- ctx.canvas.height = window.innerHeight;
- }
- function start() {
- if(!ctx.running) {
- ctx.running = true;
- loop();
- }
- }
- function stop() {
- ctx.running = false;
- }
- function mousemove(event) {
- if(event.touches) {
- target.x = event.touches[0].pageX;
- target.y = event.touches[0].pageY;
- } else {
- target.x = event.clientX
- target.y = event.clientY;
- }
- event.preventDefault();
- }
- function touchstart(event) {
- if(event.touches.length == 1) {
- target.x = event.touches[0].pageX;
- target.y = event.touches[0].pageY;
- }
- }
- function keyup(event) {
- switch(event.keyCode) {
- case 32:
- save();
- break;
- default:
- // console.log(event.keyCode);
- }
- }
- function letters(id) {
- var el = document.getElementById(id),
- letters = el.innerHTML.replace('&', '&').split(''),
- heading = '';
- for(var i = 0, n = letters.length, letter; i < n; i++) {
- letter = letters[i].replace('&', '&');
- heading += letter.trim() ? '<span class="letter-' + i + '">' + letter + '</span>' : ' ';
- }
- el.innerHTML = heading;
- setTimeout(function() {
- el.className = 'transition-in';
- }, (Math.random() * 500) + 500);
- }
- function save() {
- if(!buffer) {
- buffer = document.createElement('canvas');
- buffer.width = screen.availWidth;
- buffer.height = screen.availHeight;
- buffer.ctx = buffer.getContext('2d');
- form = document.createElement('form');
- form.method = 'post';
- form.input = document.createElement('input');
- form.input.type = 'hidden';
- form.input.name = 'data';
- form.appendChild(form.input);
- document.body.appendChild(form);
- }
- buffer.ctx.fillStyle = 'rgba(8,5,16)';
- buffer.ctx.fillRect(0, 0, buffer.width, buffer.height);
- buffer.ctx.drawImage(canvas,
- Math.round(buffer.width / 2 - canvas.width / 2),
- Math.round(buffer.height / 2 - canvas.height / 2)
- );
- buffer.ctx.drawImage(logo,
- Math.round(buffer.width / 2 - logo.width / 4),
- Math.round(buffer.height / 2 - logo.height / 4),
- logo.width / 2,
- logo.height / 2
- );
- window.open(buffer.toDataURL(), 'wallpaper', 'top=0,left=0,width=' + buffer.width + ',height=' + buffer.height);
- // form.input.value = buffer.toDataURL().substr(22);
- // form.submit();
- }
- window.requestAnimFrame = (function() {
- return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(fn) { window.setTimeout(fn, 1000 / 60) };
- })();
- window.onload = function() {
- ctx = document.getElementById('canvas').getContext('2d');
- ctx.stats = new Stats();
- ctx.running = true;
- ctx.frame = 1;
- logo = new Image();
- logo.src = 'http://labs.nikrowell.com/lightsandmotion/ultraviolet/images/logo.png';
- hue = new Oscillator({
- phase: Math.random() * Math.TWO_PI,
- amplitude: 85,
- frequency: 0.0015,
- offset: 285
- });
- letters('h1');
- letters('h2');
- document.addEventListener('mousemove', init);
- document.addEventListener('touchstart', init);
- document.body.addEventListener('orientationchange', resize);
- window.addEventListener('resize', resize);
- window.addEventListener('keyup', keyup);
- window.addEventListener('focus', start);
- window.addEventListener('blur', stop);
- resize();
- if(window.DEBUG) {
- var gui = new dat.GUI();
- // gui.add(settings, 'debug');
- settings.gui.add(settings, 'trails', 1, 30).onChange(reset);
- settings.gui.add(settings, 'size', 25, 75).onFinishChange(reset);
- settings.gui.add(settings, 'friction', 0.45, 0.55).onFinishChange(reset);
- settings.gui.add(settings, 'dampening', 0.01, 0.4).onFinishChange(reset);
- settings.gui.add(settings, 'tension', 0.95, 0.999).onFinishChange(reset);
- document.body.appendChild(ctx.stats.domElement);
- }
- };
- })(window);
- </SCRIPT>
- <SCRIPT type=text/javascript>
- //form tags to omit in NS6+:
- var omitformtags=["input", "textarea", "select"]
- omitformtags=omitformtags.join("|")
- function disableselect(e){
- if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
- return false
- }
- function reEnable(){
- return true
- }
- if (typeof document.onselectstart!="undefined")
- document.onselectstart=new Function ("return false")
- else{
- document.onmousedown=disableselect
- document.onmouseup=reEnable
- }
- <html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement