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.

213 lines
7.6 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
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. transform-style: preserve-3d;
  65. white-space: pre;
  66. }
  67. </style>
  68. <script src="https://code.jquery.com/jquery-1.11.3.js"></script>
  69. <script>
  70. function rn(min, max){
  71. return Math.floor(Math.random() * (max - min + 1) + min)
  72. }
  73. var c = [rn(0,255), rn(0,255), rn(0,255)],
  74. r = rn(0,2),
  75. direction = rn(0,1),
  76. letters,
  77. countLetter,
  78. thisLetter = 0;
  79. function colorizer(){
  80. var time = 1;
  81. now = $(letters[thisLetter]).html()
  82. if (c[r] > 0 && c[r] < 255){
  83. if(direction){
  84. c[r]++;
  85. }else{
  86. c[r]--;
  87. }
  88. }else{
  89. r = rn(0,2),
  90. direction = !direction;
  91. c[r] = c[r] >= 255 ? 250 : c[r]
  92. c[r] = c[r] <= 0 ? 1 : c[r]
  93. }
  94. $(letters[thisLetter]).html("|")
  95. if (now != " " && now != "░"){
  96. time = 50;
  97. //now = "█";
  98. $(letters[thisLetter]).css({color: "rgb("+c[0]+" ,"+c[1]+" ,"+c[2]+" )"})
  99. }else{
  100. //now = "░";
  101. $(letters[thisLetter]).css({color: "white"})
  102. }
  103. setTimeout(() => {
  104. $(letters[thisLetter]).html(now)
  105. if (thisLetter == countLetter){
  106. thisLetter = 0
  107. }else{
  108. thisLetter++
  109. }
  110. colorizer()
  111. }, time);
  112. }
  113. $(document).ready(function() {
  114. !(function ($doc, $win) {
  115. text = " "
  116. +" "
  117. +" `/+- -+/` "
  118. +" dMMMNy:` `:yNMMMd "
  119. +" /MMMMMMMMmddmMMMMMMMM/ "
  120. +" `NMMMMMMMMMMMMMMMMMMMMN. "
  121. +" yMMMMMMMMMMMMMMMMMMMMMMh "
  122. +" :MMMMMMMMMMMMMMMMMMMMMMMM/ "
  123. +" yddddddddddddddddddddddddy "
  124. +" -///::::////::::////:::////: "
  125. +" .MMMMMMMMMMMMMMMMMMMMMMMMMMMM: "
  126. +" :++++++dMMMMMMMMMMMMMMMMMMMMMMMMMMMMm++++++: "
  127. +" .------------------------------------------. "
  128. +" "
  129. +" yhys+/:-.`` ``.-:/+syhy "
  130. +" dMNyhdmNMMMMMMMMMMMMMMNmdhyNMd "
  131. +" dMMy `/yNMMmyymMMNy/` yMMd "
  132. +" -dMMdymMMds/. ./sdMMmydMMd- "
  133. +" ./++/- -/++/. "
  134. +" "
  135. var line = 1;
  136. var colums = 48;
  137. text.split("").map(function(letter, index) {
  138. if(index != colums){
  139. $("pre").append("<span id='span_"+line+"_"+index % colums+"' class='line_"+line+" col_"+index % colums+"'>"+letter+"</span>")
  140. }
  141. if(index % colums == 0 && index != 0){
  142. $("pre").append("<br>")
  143. line++
  144. }
  145. });
  146. letters = $("pre span");
  147. countLetter = letters.length
  148. colorizer()
  149. /* var screenWidth = $win.screen.width / 2,
  150. screenHeight = $win.screen.height / 2,
  151. $elems = $doc.getElementsByClassName("elem"),
  152. validPropertyPrefix = '',
  153. otherProperty = 'perspective(1000px)',
  154. elemStyle = $elems[0].style
  155. if(typeof elemStyle.webkitTransform == 'string') {
  156. validPropertyPrefix = 'webkitTransform';
  157. } else if (typeof elemStyle.MozTransform == 'string') {
  158. validPropertyPrefix = 'MozTransform'
  159. }
  160. $doc.addEventListener('mousemove', function (e) {
  161. var centroX = e.clientX - screenWidth,
  162. centroY = screenHeight - (e.clientY + 13),
  163. degX = centroX * 0.1,
  164. degY = centroY * 0.2,
  165. $elem
  166. for (var i = 0; i < $elems.length; i++) {
  167. $elem = $elems[i];
  168. $elem.style[validPropertyPrefix] = otherProperty + 'rotateY('+ degX +'deg) rotateX('+ degY +'deg)'
  169. };
  170. });*/
  171. })(document, window)
  172. });
  173. </script>
  174. </head>
  175. <body>
  176. <div class="wrapper elem" style="transform: perspective(600px) rotateY(0deg) rotateX(0deg);">
  177. <div class="bloc">
  178. <div class="content">
  179. <pre></pre>
  180. </div>
  181. </div>
  182. </div>
  183. </body>
  184. </html>