Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>DXHR Hack Writing</title>
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="robots" content="noindex" />
  7. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  8.  
  9. <style>
  10. body {
  11. padding: 2% 5%;
  12. background: #111;
  13. color: #fefefe;
  14. font-family: monospace;
  15. font-size: 1.5em;
  16. }
  17. p {
  18. display: none;
  19. padding-left: 30px;
  20. line-height: .8;
  21. }
  22. h1,h2,h3,h4,h5,h6 { color: #ad8633; }
  23. </style>
  24.  
  25. </head>
  26. <body>
  27. <h1>DXHR Hack Writing</h1>
  28. <p>Hot Sex Fuck</p>
  29. <p>Gay Super Cocks</p>
  30. <p>Prime Man Meat</p>
  31. <p>Steve Szczepkowski</p>
  32. <p>Martin Dubeau</p>
  33. <p>Jean-François Methot</p>
  34. <p>Eric Bellefeuille</p>
  35.  
  36. <!-- Scripts -->
  37. <script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
  38. <script>
  39.  
  40. hackWriting( $('h1').text(), $('h1') );
  41. function next() {
  42. var p = $('p:hidden:first');
  43. setTimeout(function(){ p.show(); },1);
  44. hackWriting( p.text(), p, next );
  45. }
  46. next();
  47.  
  48. function hackWriting(text,el,callback,speed,lead) {
  49. callback = callback || function(){};
  50. speed = speed || 50;
  51. lead = lead || 4;
  52.  
  53. var haxorChars = ['$','%','&','@','!','?','/','{','}','#','=','\\'],
  54. output=[],
  55. nHash=1,
  56. hash=[],
  57. letters=[];
  58.  
  59. for (var i=0;i<text.length+lead;i++)
  60. type(i);
  61.  
  62. function type(i) {
  63.  
  64. setTimeout(function() {
  65. if (i>lead-1) {
  66. i=i-lead;
  67. nHash--;
  68. letters.push( text.charAt(i) );
  69. }
  70. if (i>=text.length-lead-1) nHash=nHash-1;
  71.  
  72. hash=[];
  73. nHash++;
  74. for (var j=0;j<nHash;j++)
  75. hash.push( haxorChars[ Rnd(0,haxorChars.length) ] );
  76.  
  77. output = letters.concat(hash);
  78. el.text( output.join('') );
  79.  
  80. if (i==text.length-1) callback();
  81.  
  82. }, i*speed);
  83.  
  84. }
  85. function Rnd(min, max) {
  86. return Math.floor(Math.random() * (max - min)) + min;
  87. }
  88.  
  89. }
  90.  
  91. </script>
  92. </body>
  93. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement