thez3r0

Deface

Jan 21st, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 12.85 KB | None | 0 0
  1.  
  2.  
  3. <!DOCTYPE html><html>
  4. <head>
  5. <title>HAPPY BIRTHDAY 3litha</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  7. <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}
  8. </style>
  9. </head>
  10. <body>
  11. <body ondragstart="window.event.returnValue=false" oncontextmenu="window.event.returnValue=false" onselectstart="event.returnValue=false">
  12. <div id="container">
  13. <div><br><br><br><br>
  14. <h1 id="h1">HAPPIE BIRTHDAY THREELITHA </h1>
  15. </br>
  16. <h2 id="h2">MAY YOUR DREAMS COME TRUE</h2>
  17. <h3 id="h3"><br></h3>
  18. <br><br><br><br><br><br><br><br>
  19. <p class="style14" align="center"> <font color="#ffffff" face="courier new" size="3">WISHES :</font><marquee scrolldelay="20" scrollamount="6" direction="left" behavior="scroll" width="50%">
  20. <font color="#ff0000" face="Tahoma" size="3"> SPECIAL DAY, SPECIAL PERSON AND SPECIAL CELEBRATION.MAY ALL YOUR DREAMS AND DESIRES COME TRUE.WISHING U A MANY MORE HAPPY RETURNS OF THE DAY  </font></marquee><br></p><p align="center">
  21. </div>
  22. </div>
  23. <canvas id="canvas"></canvas>
  24. <script>
  25. 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()}}};
  26. </script>
  27. <script>
  28. ;(function(window) {
  29. var ctx,
  30. hue,
  31. logo,
  32. form,
  33. buffer,
  34. target = {},
  35. tendrils = [],
  36. settings = {};
  37. settings.debug = true;
  38. settings.friction = 0.5;
  39. settings.trails = 20;
  40. settings.size = 50;
  41. settings.dampening = 0.25;
  42. settings.tension = 0.98;
  43. Math.TWO_PI = Math.PI * 2;
  44. // ========================================================================================
  45. // Oscillator
  46. // ----------------------------------------------------------------------------------------
  47. function Oscillator(options) {
  48. this.init(options || {});
  49. }
  50. Oscillator.prototype = (function() {
  51. var value = 0;
  52. return {
  53. init: function(options) {
  54. this.phase = options.phase || 0;
  55. this.offset = options.offset || 0;
  56. this.frequency = options.frequency || 0.001;
  57. this.amplitude = options.amplitude || 1;
  58. },
  59. update: function() {
  60. this.phase += this.frequency;
  61. value = this.offset + Math.sin(this.phase) * this.amplitude;
  62. return value;
  63. },
  64. value: function() {
  65. return value;
  66. }
  67. };
  68. })();
  69. // ========================================================================================
  70. // Tendril
  71. // ----------------------------------------------------------------------------------------
  72. function Tendril(options) {
  73. this.init(options || {});
  74. }
  75. Tendril.prototype = (function() {
  76. function Node() {
  77. this.x = 0;
  78. this.y = 0;
  79. this.vy = 0;
  80. this.vx = 0;
  81. }
  82. return {
  83. init: function(options) {
  84. this.spring = options.spring + (Math.random() * 0.1) - 0.05;
  85. this.friction = settings.friction + (Math.random() * 0.01) - 0.005;
  86. this.nodes = [];
  87. for(var i = 0, node; i < settings.size; i++) {
  88. node = new Node();
  89. node.x = target.x;
  90. node.y = target.y;
  91. this.nodes.push(node);
  92. }
  93. },
  94. update: function() {
  95. var spring = this.spring,
  96. node = this.nodes[0];
  97. node.vx += (target.x - node.x) * spring;
  98. node.vy += (target.y - node.y) * spring;
  99. for(var prev, i = 0, n = this.nodes.length; i < n; i++) {
  100. node = this.nodes[i];
  101. if(i > 0) {
  102. prev = this.nodes[i - 1];
  103. node.vx += (prev.x - node.x) * spring;
  104. node.vy += (prev.y - node.y) * spring;
  105. node.vx += prev.vx * settings.dampening;
  106. node.vy += prev.vy * settings.dampening;
  107. }
  108. node.vx *= this.friction;
  109. node.vy *= this.friction;
  110. node.x += node.vx;
  111. node.y += node.vy;
  112. spring *= settings.tension;
  113. }
  114. },
  115. draw: function() {
  116. var x = this.nodes[0].x,
  117. y = this.nodes[0].y,
  118. a, b;
  119. ctx.beginPath();
  120. ctx.moveTo(x, y);
  121. for(var i = 1, n = this.nodes.length - 2; i < n; i++) {
  122. a = this.nodes[i];
  123. b = this.nodes[i + 1];
  124. x = (a.x + b.x) * 0.5;
  125. y = (a.y + b.y) * 0.5;
  126. ctx.quadraticCurveTo(a.x, a.y, x, y);
  127. }
  128. a = this.nodes[i];
  129. b = this.nodes[i + 1];
  130. ctx.quadraticCurveTo(a.x, a.y, b.x, b.y);
  131. ctx.stroke();
  132. ctx.closePath();
  133. }
  134. };
  135. })();
  136. // ----------------------------------------------------------------------------------------
  137. function init(event) {
  138. document.removeEventListener('mousemove', init);
  139. document.removeEventListener('touchstart', init);
  140. document.addEventListener('mousemove', mousemove);
  141. document.addEventListener('touchmove', mousemove);
  142. document.addEventListener('touchstart', touchstart);
  143. mousemove(event);
  144. reset();
  145. loop();
  146. }
  147. function reset() {
  148. tendrils = [];
  149. for(var i = 0; i < settings.trails; i++) {
  150. tendrils.push(new Tendril({
  151. spring: 0.45 + 0.025 * (i / settings.trails)
  152. }));
  153. }
  154. }
  155. function loop() {
  156. if(!ctx.running) return;
  157. ctx.globalCompositeOperation = 'source-over';
  158. ctx.fillStyle = 'rgba(8,5,16,0.4)';
  159. ctx.fillRect(0, 0, ctx.canvas.width, ctx.canvas.height);
  160. ctx.globalCompositeOperation = 'lighter';
  161. ctx.strokeStyle = 'hsla(' + Math.round(hue.update()) + ',90%,50%,0.25)';
  162. ctx.lineWidth = 1;
  163. if(ctx.frame % 60 == 0) {
  164. console.log(hue.update(), Math.round(hue.update()), hue.phase, hue.offset, hue.frequency, hue.amplitude);
  165. }
  166. for(var i = 0, tendril; i < settings.trails; i++) {
  167. tendril = tendrils[i];
  168. tendril.update();
  169. tendril.draw();
  170. }
  171. ctx.frame++;
  172. ctx.stats.update();
  173. requestAnimFrame(loop);
  174. }
  175. function resize() {
  176. ctx.canvas.width = window.innerWidth;
  177. ctx.canvas.height = window.innerHeight;
  178. }
  179. function start() {
  180. if(!ctx.running) {
  181. ctx.running = true;
  182. loop();
  183. }
  184. }
  185. function stop() {
  186. ctx.running = false;
  187. }
  188. function mousemove(event) {
  189. if(event.touches) {
  190. target.x = event.touches[0].pageX;
  191. target.y = event.touches[0].pageY;
  192. } else {
  193. target.x = event.clientX
  194. target.y = event.clientY;
  195. }
  196. event.preventDefault();
  197. }
  198. function touchstart(event) {
  199. if(event.touches.length == 1) {
  200. target.x = event.touches[0].pageX;
  201. target.y = event.touches[0].pageY;
  202. }
  203. }
  204. function keyup(event) {
  205. switch(event.keyCode) {
  206. case 32:
  207. save();
  208. break;
  209. default:
  210. // console.log(event.keyCode);
  211. }
  212. }
  213. function letters(id) {
  214. var el = document.getElementById(id),
  215. letters = el.innerHTML.replace('&amp;', '&').split(''),
  216. heading = '';
  217. for(var i = 0, n = letters.length, letter; i < n; i++) {
  218. letter = letters[i].replace('&', '&amp');
  219. heading += letter.trim() ? '<span class="letter-' + i + '">' + letter + '</span>' : '&nbsp;';
  220. }
  221. el.innerHTML = heading;
  222. setTimeout(function() {
  223. el.className = 'transition-in';
  224. }, (Math.random() * 500) + 500);
  225. }
  226. function save() {
  227. if(!buffer) {
  228. buffer = document.createElement('canvas');
  229. buffer.width = screen.availWidth;
  230. buffer.height = screen.availHeight;
  231. buffer.ctx = buffer.getContext('2d');
  232. form = document.createElement('form');
  233. form.method = 'post';
  234. form.input = document.createElement('input');
  235. form.input.type = 'hidden';
  236. form.input.name = 'data';
  237. form.appendChild(form.input);
  238. document.body.appendChild(form);
  239. }
  240. buffer.ctx.fillStyle = 'rgba(8,5,16)';
  241. buffer.ctx.fillRect(0, 0, buffer.width, buffer.height);
  242. buffer.ctx.drawImage(canvas,
  243. Math.round(buffer.width / 2 - canvas.width / 2),
  244. Math.round(buffer.height / 2 - canvas.height / 2)
  245. );
  246. buffer.ctx.drawImage(logo,
  247. Math.round(buffer.width / 2 - logo.width / 4),
  248. Math.round(buffer.height / 2 - logo.height / 4),
  249. logo.width / 2,
  250. logo.height / 2
  251. );
  252. window.open(buffer.toDataURL(), 'wallpaper', 'top=0,left=0,width=' + buffer.width + ',height=' + buffer.height);
  253. // form.input.value = buffer.toDataURL().substr(22);
  254. // form.submit();
  255. }
  256. window.requestAnimFrame = (function() {
  257. return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(fn) { window.setTimeout(fn, 1000 / 60) };
  258. })();
  259. window.onload = function() {
  260. ctx = document.getElementById('canvas').getContext('2d');
  261. ctx.stats = new Stats();
  262. ctx.running = true;
  263. ctx.frame = 1;
  264. logo = new Image();
  265. logo.src = 'http://labs.nikrowell.com/lightsandmotion/ultraviolet/images/logo.png';
  266. hue = new Oscillator({
  267. phase: Math.random() * Math.TWO_PI,
  268. amplitude: 85,
  269. frequency: 0.0015,
  270. offset: 285
  271. });
  272. letters('h1');
  273. letters('h2');
  274. document.addEventListener('mousemove', init);
  275. document.addEventListener('touchstart', init);
  276. document.body.addEventListener('orientationchange', resize);
  277. window.addEventListener('resize', resize);
  278. window.addEventListener('keyup', keyup);
  279. window.addEventListener('focus', start);
  280. window.addEventListener('blur', stop);
  281. resize();
  282. if(window.DEBUG) {
  283. var gui = new dat.GUI();
  284. // gui.add(settings, 'debug');
  285. settings.gui.add(settings, 'trails', 1, 30).onChange(reset);
  286. settings.gui.add(settings, 'size', 25, 75).onFinishChange(reset);
  287. settings.gui.add(settings, 'friction', 0.45, 0.55).onFinishChange(reset);
  288. settings.gui.add(settings, 'dampening', 0.01, 0.4).onFinishChange(reset);
  289. settings.gui.add(settings, 'tension', 0.95, 0.999).onFinishChange(reset);
  290. document.body.appendChild(ctx.stats.domElement);
  291. }
  292. };
  293. })(window);
  294. </script>
  295.  
  296. <embed src="https://www.youtube.com/v/6bWqYeSBhdc?fs=1&hl=nl_NL&autoplay=1" type="application/x-shockwave-flash" wmode="transparent" width="1" height="1"></embed>
  297. </body>
  298. </html>
Add Comment
Please, Sign In to add comment