hatBanner
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

202 lines
6.9 KiB

5 years ago
5 years ago
5 years ago
  1. <html>
  2. <head>
  3. <meta charset="ISO-8859-1">
  4. <style>
  5. /* CREDITS TO DESKTOPOGRAPHY FOR IMAGE USED */
  6. @import url(https://fonts.googleapis.com/css?family=Josefin+Slab:400,700);
  7. * {
  8. margin:0;
  9. padding:0;
  10. list-style:none;
  11. text-decoration:none;
  12. box-sizing:border-box;
  13. font-family: "Courier New", Courier, monospace;
  14. }
  15. html, body{
  16. width:100%;
  17. height:100%;
  18. display: flex;
  19. }
  20. body {
  21. padding:40px;
  22. background: black;
  23. overflow: hidden;
  24. }
  25. .wrapper {
  26. transform-style: preserve-3d;
  27. margin: 0 auto;
  28. width:250px;
  29. height:400px;
  30. top: 0;left: 0;right: 0;bottom: 0;
  31. margin: auto;
  32. }
  33. .wrapper:after {
  34. top: 100%;
  35. left: 0;
  36. z-index: -1;
  37. display: block;
  38. content: '';
  39. height: 22px;
  40. width: 100%;
  41. }
  42. .bloc {
  43. display: flex;
  44. justify-content: center;
  45. }
  46. .content {
  47. filter: blur(1px);
  48. -webkit-filter: blur(1px);
  49. transform: translateZ(80px) scale(1);
  50. -webkit-transform: translateZ(80px) scale(1);
  51. height: 370px;
  52. width: 460px;
  53. margin:auto;
  54. top: 0px;
  55. right: 0px;
  56. bottom: 0px;
  57. left: 0px;
  58. padding:20px;
  59. padding-top:0px;
  60. color: black;
  61. z-index: 3;
  62. }
  63. pre span {
  64. white-space: pre;
  65. }
  66. </style>
  67. <script src="https://code.jquery.com/jquery-1.11.3.js"></script>
  68. <script>
  69. function rn(min, max){
  70. return Math.floor(Math.random() * (max - min + 1) + min);
  71. }
  72. var r = rn(0,255),
  73. g = rn(0,255),
  74. b = rn(0,255),
  75. letters,
  76. countLetter,
  77. thisLetter = 0;
  78. function colorizer(){
  79. var time = 0 ;
  80. $(letters[thisLetter]).css({color: "rgb("+r+","+g+","+b+")"})
  81. if (r < 256){
  82. r++;
  83. }else{
  84. if (g < 256){
  85. g++;
  86. }else{
  87. if (b < 256){
  88. b++;
  89. }else{
  90. r = rn(0,255),
  91. g = rn(0,255),
  92. b = rn(0,255);
  93. }
  94. }
  95. }
  96. if ($(letters[thisLetter]).html() != " "){
  97. time = 50;
  98. }
  99. setTimeout(() => {
  100. if (thisLetter == countLetter){
  101. thisLetter = 0;
  102. }else{
  103. thisLetter++;
  104. }
  105. colorizer();
  106. }, time);
  107. }
  108. $(document).ready(function() {
  109. !(function ($doc, $win) {
  110. text = ""
  111. +" `/+- -+/` "
  112. +" dMMMNy:` `:yNMMMd "
  113. +" /MMMMMMMMmddmMMMMMMMM/ "
  114. +" `NMMMMMMMMMMMMMMMMMMMMN. "
  115. +" yMMMMMMMMMMMMMMMMMMMMMMh "
  116. +" :MMMMMMMMMMMMMMMMMMMMMMMM/ "
  117. +" yddddddddddddddddddddddddy "
  118. +" -///::::////::::////:::////: "
  119. +" .MMMMMMMMMMMMMMMMMMMMMMMMMMMM: "
  120. +":++++++dMMMMMMMMMMMMMMMMMMMMMMMMMMMMm++++++:"
  121. +".------------------------------------------."
  122. +" "
  123. +" yhys+/:-.`` ``.-:/+syhy "
  124. +" dMNyhdmNMMMMMMMMMMMMMMNmdhyNMd "
  125. +" dMMy `/yNMMmyymMMNy/` yMMd "
  126. +" -dMMdymMMds/. ./sdMMmydMMd- "
  127. +" ./++/- -/++/. "
  128. var line = 1;
  129. text.split("").map(function(letter, index) {
  130. $("pre").append("<span id='span_"+line+"_"+index % 44+"' class='line_"+line+" col_"+index % 44+"'>"+letter+"</span>");
  131. if(index % 44 == 0 && index != 0){
  132. $("pre").append("<br>");
  133. line++;
  134. }
  135. });
  136. letters = $("pre span");
  137. countLetter = letters.length;
  138. colorizer();
  139. /*
  140. var screenWidth = $win.screen.width / 2,
  141. screenHeight = $win.screen.height / 2,
  142. $elems = $doc.getElementsByClassName("elem"),
  143. validPropertyPrefix = '',
  144. otherProperty = 'perspective(1000px)',
  145. elemStyle = $elems[0].style;
  146. if(typeof elemStyle.webkitTransform == 'string') {
  147. validPropertyPrefix = 'webkitTransform';
  148. } else if (typeof elemStyle.MozTransform == 'string') {
  149. validPropertyPrefix = 'MozTransform';
  150. }
  151. $doc.addEventListener('mousemove', function (e) {
  152. var centroX = e.clientX - screenWidth,
  153. centroY = screenHeight - (e.clientY + 13),
  154. degX = centroX * 0.1,
  155. degY = centroY * 0.2,
  156. $elem
  157. for (var i = 0; i < $elems.length; i++) {
  158. $elem = $elems[i];
  159. $elem.style[validPropertyPrefix] = otherProperty + 'rotateY('+ degX +'deg) rotateX('+ degY +'deg)';
  160. };
  161. });*/
  162. })(document, window);
  163. });
  164. </script>
  165. </head>
  166. <body>
  167. <div class="wrapper elem" style="transform: perspective(600px) rotateY(0deg) rotateX(0deg);">
  168. <div class="bloc">
  169. <div class="content content1">
  170. <pre></pre>
  171. </div>
  172. </div>
  173. </div>
  174. </body>
  175. </html>