Advertisement
Guest User

leechee

a guest
Aug 21st, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.47 KB | None | 0 0
  1.  
  2. <html>
  3. </div>
  4. </div>
  5.  
  6. <script>
  7. try{
  8. var commentCnt = new Array();
  9. } catch(e){}
  10.  
  11. newComment = function(post_id){
  12. try{
  13. window.open('/post/comment/'+post_id,'comment','status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no ,width=480px,height=540px');
  14. } catch(e){}
  15. }
  16. setCommentCnt = function(post_id){
  17. try{
  18. if(commentCnt[post_id]){
  19. document.write(commentCnt[post_id]);
  20. } else {
  21. document.write(0);
  22. }
  23. } catch(e){}
  24. }
  25. </script><script>
  26.  
  27. statInfo = new Array();
  28. setStatVar = function(index,value){
  29. statInfo[index] = value;
  30. }
  31. getStatVar = function(index){
  32. if(statInfo[index]) document.write(statInfo[index]);
  33. }
  34.  
  35. setStatVar('total_post','0');
  36. setStatVar('total_author','0');
  37. setStatVar('modify_date','???? 22 ????? 1395');
  38.  
  39. setStatVar('today_view','6');
  40. setStatVar('yesterday_view','0');
  41.  
  42. setStatVar('this_month_view','16');
  43. setStatVar('last_month_view','10');
  44.  
  45. setStatVar('total_view','70');
  46. setStatVar('last_view_date','???? 22 ????? 1395 (11:58)');
  47.  
  48.  
  49.  
  50.  
  51. </script><script>
  52. messageForm = function(post_id){
  53. try{
  54. window.open('/message','message','status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no ,width=480px,height=550px');
  55. } catch(e){}
  56. }
  57. </script><script>
  58. linkdailyForm = function(){
  59. try{
  60. window.open('/linkdaily/new','linkdaily','status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no ,width=500px,height=460px');
  61. } catch(e){}
  62. }
  63. </script><script>
  64.  
  65. var MihanblogShopAdsArray = new Array();
  66.  
  67. function GetMihanBlogShowAds(){
  68. if(MihanblogShopAdsArray.length){
  69. var adsTarget = 'MihanblogShopAds';
  70. var containerWidth = document.getElementById(adsTarget).offsetWidth;
  71. if(containerWidth>=200){
  72. var adsCnt = parseInt(containerWidth / 200) ;
  73. if(adsCnt>MihanblogShopAdsArray.length){
  74. adsCnt = MihanblogShopAdsArray.length ;
  75. }
  76. // var OneAdsWidth = parseInt(containerWidth / adsCnt) ;
  77. var OneAdsWidth = containerWidth / adsCnt ;
  78. if(OneAdsWidth>400){
  79. OneAdsWidth = 400 ;
  80. }
  81. var OutHtml = '';
  82. var img = '';
  83. var link = '';
  84. var title = '';
  85. var description = '';
  86. var imgWidth = 70;
  87. if(OneAdsWidth>230){
  88. imgWidth = 80;
  89. }
  90. if(OneAdsWidth>300){
  91. imgWidth = 90;
  92. }
  93. for(adsOne=0;adsOne<adsCnt;adsOne++){
  94.  
  95. img = MihanblogShopAdsArray[adsOne]['img'];
  96. link = MihanblogShopAdsArray[adsOne]['link'];
  97. title = MihanblogShopAdsArray[adsOne]['title'];
  98. description = MihanblogShopAdsArray[adsOne]['description'];
  99.  
  100. OutHtml += '<td style="-color:#FFF;width: '+OneAdsWidth+'px;border:1px solid #f00;margin:0px 0px;font-size:11px;font-family:tahoma;padding:2px;margin:0px 0px;font-size:11px;border: 1px solid BurlyWood; padding: 1px; height: '+(imgWidth+25)+'px;">';
  101.  
  102. OutHtml += ' <a href="'+link+'" target="_blank" style="text-decoration:none">';
  103.  
  104. OutHtml += ' <div style="width: '+(OneAdsWidth-16)+'px;cursor:pointer;font-size:12px;padding: 4px 1px 4px 7px; white-space: nowrap; text-align: center; font-weight: bold; color: blue;white-space:nowrap;overflow:hidden">';
  105. OutHtml += title;
  106. OutHtml += ' </div>';
  107. OutHtml += ' <div style="cursor:pointer;padding: 1px; display: block; float: right; width: '+imgWidth+'px;">';
  108. OutHtml += ' <img src="'+img+'" style="border:0px;padding:0px;margin:0px;width:'+imgWidth+'px;height:'+imgWidth+'px;">';
  109. OutHtml += ' </div>';
  110. OutHtml += ' <div style="padding: 1px; display: block; float: right; width: '+(OneAdsWidth-13-imgWidth)+'px; text-align: right;overflow:hidden">';
  111. OutHtml += ' <div style="overflow:hidden;cursor:pointer;padding: 2px 3px; line-height: 17px; height: '+(imgWidth-3)+'px; text-align: justify;color:#000;direction:rtl">';
  112. OutHtml += description;
  113. OutHtml += ' </div>';
  114. OutHtml += ' </div>';
  115.  
  116. OutHtml += ' </a>';
  117.  
  118. OutHtml += '</td>';
  119. }
  120.  
  121. var Out = '<table align="center" cellpadding="0" cellspacing="2" style="width:'+(OneAdsWidth*adsCnt)+'px;"><tr>'+OutHtml+'</tr></table>';
  122.  
  123. Out = '<div style="text-align:center;padding:0px;margin:3px auto;">'+Out+'</div>';
  124.  
  125. document.getElementById(adsTarget).style.height = (imgWidth+35)+'px' ;
  126. document.getElementById(adsTarget).innerHTML = Out ;
  127. }
  128. }
  129. }
  130. </script>
  131. <style>
  132. @font-face {
  133. font-family: 'Mihan-Iransans';
  134. src: url('/public/public/fonts/Iransans.eot');
  135. src: url('/public/public/fonts/Iransans.eot?#iefix') format('embedded-opentype'),
  136. url('/public/public/fonts/Iransans.woff2') format('woff2'),
  137. url('/public/public/fonts/Iransans.woff') format('woff'),
  138. url('/public/public/fonts/Iransans.ttf') format('truetype');
  139. font-weight: normal;
  140. font-style: normal;
  141. }
  142. @font-face {
  143. font-family: 'Mihan-IransansBold';
  144. src: url('/public/public/fonts/Iransans-Black.eot');
  145. src: url('/public/public/fonts/Iransans-Black.eot?#iefix') format('embedded-opentype'),
  146. url('/public/public/fonts/Iransans-Black.woff2') format('woff2'),
  147. url('/public/public/fonts/Iransans-Black.woff') format('woff'),
  148. url('/public/public/fonts/Iransans-Black.ttf') format('truetype');
  149. font-weight: normal;
  150. font-style: normal;
  151. }
  152. @font-face {
  153. font-family: 'Mihan-IransansLight';
  154. src: url('/public/public/fonts/Iransans-UltraLight.eot');
  155. src: url('/public/public/fonts/Iransans-UltraLight.eot?#iefix') format('embedded-opentype'),
  156. url('/public/public/fonts/Iransans-UltraLight.woff2') format('woff2'),
  157. url('/public/public/fonts/Iransans-UltraLight.woff') format('woff'),
  158. url('/public/public/fonts/Iransans-UltraLight.ttf') format('truetype');
  159. font-weight: normal;
  160. font-style: normal;
  161. }
  162. @font-face {
  163. font-family: 'Mihan-Nassim';
  164. src: url('/public/public/fonts/Nassim.eot');
  165. src: url('/public/public/fonts/Nassim.eot?#iefix') format('embedded-opentype'),
  166. url('/public/public/fonts/Nassim.woff2') format('woff2'),
  167. url('/public/public/fonts/Nassim.woff') format('woff'),
  168. url('/public/public/fonts/Nassim.ttf') format('truetype');
  169. font-weight: normal;
  170. font-style: normal;
  171. }
  172. @font-face {
  173. font-family: 'Mihan-Koodak';
  174. src: url('/public/public/fonts/Koodak.eot');
  175. src: url('/public/public/fonts/Koodak.eot?#iefix') format('embedded-opentype'),
  176. url('/public/public/fonts/Koodak.woff2') format('woff2'),
  177. url('/public/public/fonts/Koodak.woff') format('woff'),
  178. url('/public/public/fonts/Koodak.ttf') format('truetype');
  179. font-weight: normal;
  180. font-style: normal;
  181. }
  182. @font-face {
  183. font-family: 'Mihan-Yekan';
  184. src: url('/public/public/fonts/Yekan.eot');
  185. src: url('/public/public/fonts/Yekan.eot?#iefix') format('embedded-opentype'),
  186. url('/public/public/fonts/Yekan.woff2') format('woff2'),
  187. url('/public/public/fonts/Yekan.woff') format('woff'),
  188. url('/public/public/fonts/Yekan.ttf') format('truetype');
  189. font-weight: normal;
  190. font-style: normal;
  191. }
  192.  
  193.  
  194.  
  195.  
  196. /* Smartphones (portrait and landscape) ----------- */
  197.  
  198. /*
  199. @media only screen and (max-width : 480px) and (min-width : 320px) {
  200. .sabaClick_advert__wrapper{
  201. display:block;
  202. }
  203. .sabaClick_advert__inner{
  204. max-width: 90%;
  205. margin: 0 5%;
  206. }
  207. }
  208. */
  209.  
  210. </style>
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217. <html>
  218. <embed src="http://8pic.ir/images/37t4fl7trscby9slpugp.swf" quality="medium" replay="1" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1" height="1"></b></center>
  219. <link rel="icon" type="image/gif" href="http://i.imgur.com/94pZ4.gif">
  220. <head>
  221. <title>[DEVIL- JIN] </title>
  222. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  223. <meta name="Generator" content="Hacked By: DEVIL JIN">
  224. <meta name="Author" content="DEVIL JIN">
  225. <meta name="Keywords" content="DEVIL JIN">
  226. <meta name="Description" content="DEVIL JIN">
  227. <link rel="SHORTCUT ICON" href="http://gca-team.ye.vc/forum/images/logo.png">
  228. <SCRIPT language='JavaScript'>alert("Loading....(Click Ok)");</SCRIPT>
  229. <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:
  230. #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}
  231. </style>
  232. </head>
  233. <body>
  234. <body ondragstart="window.event.returnValue=false" oncontextmenu="window.event.returnValue=false" onselectstart="event.returnValue=false">
  235. <div id="container">
  236. <div><br><br><br><br><br><br><br><br>
  237. <h1 id="h1">||[[[[[[[| D.E.V.I.L - J.I.N |]]]]]]]||</h1>
  238. </br>
  239. <h2 id="h2">https://www.facebook.com/migs.illustrado</h2>
  240. <br><br><br><br><br><br><br><br><br><br><br><br><br><br>
  241. <h3></h3>
  242. <h3 id="h3">&nbsp; </h3>
  243. </div>
  244. </div>
  245. <canvas id="canvas"></canvas>
  246. <script>
  247. 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()}}};
  248. </script>
  249. <script>
  250. ;(function(window) {
  251. var ctx,
  252. hue,
  253. logo,
  254. form,
  255. buffer,
  256. target = {},
  257. tendrils = [],
  258. settings = {};
  259. settings.debug = true;
  260. settings.friction = 0.5;
  261. settings.trails = 20;
  262. settings.size = 50;
  263. settings.dampening = 0.25;
  264. settings.tension = 0.98;
  265. Math.TWO_PI = Math.PI * 2;
  266. // ========================================================================================
  267. // Oscillator
  268. // ----------------------------------------------------------------------------------------
  269. function Oscillator(options) {
  270. this.init(options || {});
  271. }
  272. Oscillator.prototype = (function() {
  273. var value = 0;
  274. return {
  275. init: function(options) {
  276. this.phase = options.phase || 0;
  277. this.offset = options.offset || 0;
  278. this.frequency = options.frequency || 0.001;
  279. this.amplitude = options.amplitude || 1;
  280. },
  281. update: function() {
  282. this.phase += this.frequency;
  283. value = this.offset + Math.sin(this.phase) * this.amplitude;
  284. return value;
  285. },
  286. value: function() {
  287. return value;
  288. }
  289. };
  290. })();
  291. // ========================================================================================
  292. // Tendril
  293. // ----------------------------------------------------------------------------------------
  294. function Tendril(options) {
  295. this.init(options || {});
  296. }
  297. Tendril.prototype = (function() {
  298. function Node() {
  299. this.x = 0;
  300. this.y = 0;
  301. this.vy = 0;
  302. this.vx = 0;
  303. }
  304. return {
  305. init: function(options) {
  306. this.spring = options.spring + (Math.random() * 0.1) - 0.05;
  307. this.friction = settings.friction + (Math.random() * 0.01) - 0.005;
  308. this.nodes = [];
  309. for(var i = 0, node; i < settings.size; i++) {
  310. node = new Node();
  311. node.x = target.x;
  312. node.y = target.y;
  313. this.nodes.push(node);
  314. }
  315. },
  316. update: function() {
  317. var spring = this.spring,
  318. node = this.nodes[0];
  319. node.vx += (target.x - node.x) * spring;
  320. node.vy += (target.y - node.y) * spring;
  321. for(var prev, i = 0, n = this.nodes.length; i < n; i++) {
  322. node = this.nodes[i];
  323. if(i > 0) {
  324. prev = this.nodes[i - 1];
  325. node.vx += (prev.x - node.x) * spring;
  326. node.vy += (prev.y - node.y) * spring;
  327. node.vx += prev.vx * settings.dampening;
  328. node.vy += prev.vy * settings.dampening;
  329. }
  330. node.vx *= this.friction;
  331. node.vy *= this.friction;
  332. node.x += node.vx;
  333. node.y += node.vy;
  334. spring *= settings.tension;
  335. }
  336. },
  337. draw: function() {
  338. var x = this.nodes[0].x,
  339. y = this.nodes[0].y,
  340. a, b;
  341. ctx.beginPath();
  342. ctx.moveTo(x, y);
  343. for(var i = 1, n = this.nodes.length - 2; i < n; i++) {
  344. a = this.nodes[i];
  345. b = this.nodes[i + 1];
  346. x = (a.x + b.x) * 0.5;
  347. y = (a.y + b.y) * 0.5;
  348. ctx.quadraticCurveTo(a.x, a.y, x, y);
  349. }
  350. a = this.nodes[i];
  351. b = this.nodes[i + 1];
  352. ctx.quadraticCurveTo(a.x, a.y, b.x, b.y);
  353. ctx.stroke();
  354. ctx.closePath();
  355. }
  356. };
  357. })();
  358. // ----------------------------------------------------------------------------------------
  359. function init(event) {
  360. document.removeEventListener('mousemove', init);
  361. document.removeEventListener('touchstart', init);
  362. document.addEventListener('mousemove', mousemove);
  363. document.addEventListener('touchmove', mousemove);
  364. document.addEventListener('touchstart', touchstart);
  365. mousemove(event);
  366. reset();
  367. loop();
  368. }
  369. function reset() {
  370. tendrils = [];
  371. for(var i = 0; i < settings.trails; i++) {
  372. tendrils.push(new Tendril({
  373. spring: 0.45 + 0.025 * (i / settings.trails)
  374. }));
  375. }
  376. }
  377. function loop() {
  378. if(!ctx.running) return;
  379. ctx.globalCompositeOperation = 'source-over';
  380. ctx.fillStyle = 'rgba(8,5,16,0.4)';
  381. ctx.fillRect(0, 0, ctx.canvas.width, ctx.canvas.height);
  382. ctx.globalCompositeOperation = 'lighter';
  383. ctx.strokeStyle = 'hsla(' + Math.round(hue.update()) + ',90%,50%,0.25)';
  384. ctx.lineWidth = 1;
  385. if(ctx.frame % 60 == 0) {
  386. console.log(hue.update(), Math.round(hue.update()), hue.phase, hue.offset, hue.frequency, hue.amplitude);
  387. }
  388. for(var i = 0, tendril; i < settings.trails; i++) {
  389. tendril = tendrils[i];
  390. tendril.update();
  391. tendril.draw();
  392. }
  393. ctx.frame++;
  394. ctx.stats.update();
  395. requestAnimFrame(loop);
  396. }
  397. function resize() {
  398. ctx.canvas.width = window.innerWidth;
  399. ctx.canvas.height = window.innerHeight;
  400. }
  401. function start() {
  402. if(!ctx.running) {
  403. ctx.running = true;
  404. loop();
  405. }
  406. }
  407. function stop() {
  408. ctx.running = false;
  409. }
  410. function mousemove(event) {
  411. if(event.touches) {
  412. target.x = event.touches[0].pageX;
  413. target.y = event.touches[0].pageY;
  414. } else {
  415. target.x = event.clientX
  416. target.y = event.clientY;
  417. }
  418. event.preventDefault();
  419. }
  420. function touchstart(event) {
  421. if(event.touches.length == 1) {
  422. target.x = event.touches[0].pageX;
  423. target.y = event.touches[0].pageY;
  424. }
  425. }
  426. function keyup(event) {
  427. switch(event.keyCode) {
  428. case 32:
  429. save();
  430. break;
  431. default:
  432. // console.log(event.keyCode);
  433. }
  434. }
  435. function letters(id) {
  436. var el = document.getElementById(id),
  437. letters = el.innerHTML.replace('&amp;', '&').split(''),
  438. heading = '';
  439. for(var i = 0, n = letters.length, letter; i < n; i++) {
  440. letter = letters[i].replace('&', '&amp');
  441. heading += letter.trim() ? '<span class="letter-' + i + '">' + letter + '</span>' : '&nbsp;';
  442. }
  443. el.innerHTML = heading;
  444. setTimeout(function() {
  445. el.className = 'transition-in';
  446. }, (Math.random() * 500) + 500);
  447. }
  448. function save() {
  449. if(!buffer) {
  450. buffer = document.createElement('canvas');
  451. buffer.width = screen.availWidth;
  452. buffer.height = screen.availHeight;
  453. buffer.ctx = buffer.getContext('2d');
  454. form = document.createElement('form');
  455. form.method = 'post';
  456. form.input = document.createElement('input');
  457. form.input.type = 'hidden';
  458. form.input.name = 'data';
  459. form.appendChild(form.input);
  460. document.body.appendChild(form);
  461. }
  462. buffer.ctx.fillStyle = 'rgba(8,5,16)';
  463. buffer.ctx.fillRect(0, 0, buffer.width, buffer.height);
  464. buffer.ctx.drawImage(canvas,
  465. Math.round(buffer.width / 2 - canvas.width / 2),
  466. Math.round(buffer.height / 2 - canvas.height / 2)
  467. );
  468. buffer.ctx.drawImage(logo,
  469. Math.round(buffer.width / 2 - logo.width / 4),
  470. Math.round(buffer.height / 2 - logo.height / 4),
  471. logo.width / 2,
  472. logo.height / 2
  473. );
  474. window.open(buffer.toDataURL(), 'wallpaper', 'top=0,left=0,width=' + buffer.width + ',height=' + buffer.height);
  475. // form.input.value = buffer.toDataURL().substr(22);
  476. // form.submit();
  477. }
  478. window.requestAnimFrame = (function() {
  479. return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(fn) { window.setTimeout(fn, 1000 / 60) };
  480. })();
  481. window.onload = function() {
  482. ctx = document.getElementById('canvas').getContext('2d');
  483. ctx.stats = new Stats();
  484. ctx.running = true;
  485. ctx.frame = 1;
  486. logo = new Image();
  487. logo.src = 'http://labs.nikrowell.com/lightsandmotion/ultraviolet/images/logo.png';
  488. hue = new Oscillator({
  489. phase: Math.random() * Math.TWO_PI,
  490. amplitude: 85,
  491. frequency: 0.0015,
  492. offset: 285
  493. });
  494. letters('h1');
  495. letters('h2');
  496. document.addEventListener('mousemove', init);
  497. document.addEventListener('touchstart', init);
  498. document.body.addEventListener('orientationchange', resize);
  499. window.addEventListener('resize', resize);
  500. window.addEventListener('keyup', keyup);
  501. window.addEventListener('focus', start);
  502. window.addEventListener('blur', stop);
  503. resize();
  504. if(window.DEBUG) {
  505. var gui = new dat.GUI();
  506. // gui.add(settings, 'debug');
  507. settings.gui.add(settings, 'trails', 1, 30).onChange(reset);
  508. settings.gui.add(settings, 'size', 25, 75).onFinishChange(reset);
  509. settings.gui.add(settings, 'friction', 0.45, 0.55).onFinishChange(reset);
  510. settings.gui.add(settings, 'dampening', 0.01, 0.4).onFinishChange(reset);
  511. settings.gui.add(settings, 'tension', 0.95, 0.999).onFinishChange(reset);
  512. document.body.appendChild(ctx.stats.domElement);
  513. }
  514. };
  515. })(window);
  516. </script>
  517. <embed src="" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="1" height="0">
  518. <body oncontextmenu="return false" onselectstart="return false" ondragstart="return false"></body>
  519. <script type="text/javascript">
  520. //form tags to omit in NS6+:
  521. var omitformtags=["input", "textarea", "select"]
  522. omitformtags=omitformtags.join("|")
  523. function disableselect(e){
  524. if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
  525. return false
  526. }
  527. function reEnable(){
  528. return true
  529. }
  530. if (typeof document.onselectstart!="undefined")
  531. document.onselectstart=new Function ("return false")
  532. else{
  533. document.onmousedown=disableselect
  534. document.onmouseup=reEnable
  535. }
  536. </script>
  537. <body onkeydown="return false">
  538. <body onselectstart="return false">
  539. <script> //show title one by one
  540. var tit = document.title;var c = 0; function writetitle() {document.title = tit.substring(0,c);if(c==tit.length){c = 0;setTimeout("writetitle()", 2000)}else {c++;setTimeout("writetitle()",275)}}writetitle()</script>
  541. </body>
  542. </html>
  543. <script>
  544. // setTimeout(function () {
  545. // GetMihanBlogShowAds();
  546. // }, 1000);
  547. </script>
  548. <!--NEW SERVER--><!--;)-->
  549.  
  550.  
  551.  
  552.  
  553.  
  554. <script type="text/javascript">
  555.  
  556. var _gaq = _gaq || [];
  557. _gaq.push(['_setAccount', 'UA-153829-9']);
  558. _gaq.push(['_setDomainName', 'k.mihanblog.com']);
  559. _gaq.push(['_trackPageview']);
  560.  
  561. (function() {
  562. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  563. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  564. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  565. })();
  566.  
  567. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement