Advertisement
crypt404

Untitled

Feb 22nd, 2024
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.15 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Hacker Style Frontend</title>
  7.  
  8. <style>
  9. /* Your existing styles */
  10. body {
  11. font-family: 'Courier New', Courier, monospace;
  12. background-color: #000;
  13. color: #0F0;
  14. margin: 0;
  15. padding: 0;
  16. overflow-x: hidden;
  17. }
  18.  
  19. header {
  20. text-align: center;
  21. padding: 20px 0;
  22. }
  23.  
  24. nav {
  25. text-align: center;
  26. margin-top: 20px;
  27. }
  28.  
  29. nav a {
  30. color: #0F0;
  31. text-decoration: none;
  32. padding: 10px 20px;
  33. border: 1px solid #0F0;
  34. margin: 0 5px;
  35. border-radius: 5px;
  36. transition: all 0.3s ease;
  37. }
  38.  
  39. nav a:hover {
  40. background-color: #0F0;
  41. color: #000;
  42. }
  43.  
  44. .container {
  45. max-width: 800px;
  46. margin: 20px auto;
  47. padding: 0 20px;
  48. }
  49.  
  50. .button {
  51. display: inline-block;
  52. background-color: #0F0;
  53. color: #000;
  54. padding: 10px 20px;
  55. border: none;
  56. border-radius: 5px;
  57. cursor: pointer;
  58. transition: all 0.3s ease;
  59. }
  60.  
  61. .button:hover {
  62. background-color: #000;
  63. color: #0F0;
  64. }
  65.  
  66. #dynamic-content {
  67. margin-top: 20px;
  68. }
  69.  
  70. /* Additional style for Particle.js container */
  71. #particles-js {
  72. position: fixed;
  73. width: 100%;
  74. height: 100%;
  75. background-color: #000;
  76. z-index: -1; /* Ensure it's behind other content */
  77. }
  78. </style>
  79. </head>
  80. <body>
  81.  
  82. <head>
  83. <link rel="stylesheet" type="text/css" href="styles.css">
  84. </head>
  85.  
  86. <!-- Particle.js container -->
  87. <div id="particles-js"></div>
  88.  
  89. <header>
  90. <img src="eleenlogo.png" alt="brandlogo" style="width:400px;height:150px;" style="margin-left: 400px;">
  91. </header>
  92.  
  93. <body>
  94. <div class="vertical-align">
  95. <!-- Person selector: this contains buttons for user to select whether to chat as John or Jane -->
  96. <div class="person-selector">
  97. </div>
  98. <div class="chat-container">
  99.  
  100.  
  101. <form class="chat-input-form">
  102. <input type="text" class="chat-input" required placeholder="Type here, John..." />
  103. <button type="submit" class="button send-button">Send</button>
  104. </form>
  105. <!-- Add a button for recording voice -->
  106. <button id="recordButton" class="button">Record Voice</button>
  107. </div>
  108. </div>
  109.  
  110. <script src="app.js"></script>
  111. <script>
  112. // Function to handle recording of voice
  113. function startRecording() {
  114. const recognition = new webkitSpeechRecognition();
  115. recognition.lang = 'en-US';
  116. recognition.start();
  117.  
  118. recognition.onresult = function(event) {
  119. const result = event.results[0][0].transcript;
  120. // Do something with the recorded voice input, for example:
  121. document.querySelector('.chat-input').value = result;
  122. }
  123.  
  124. recognition.onerror = function(event) {
  125. console.error(event.error);
  126. }
  127. }
  128.  
  129. // Event listener for the record button
  130. document.getElementById('recordButton').addEventListener('click', function() {
  131. startRecording();
  132. });
  133. </script>
  134. </body>
  135.  
  136.  
  137.  
  138. <!-- Include Particle.js library -->
  139. <script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
  140.  
  141. <!-- Include your JSON configuration file -->
  142. <script>
  143. // Configuration for Particle.js
  144. var particlesConfig = {
  145. "particles": {
  146. "number": {
  147. "value": 100,
  148. "density": {
  149. "enable": true,
  150. "value_area": 800
  151. }
  152. },
  153. "color": {
  154. "value": "#9acc14"
  155. },
  156. "shape": {
  157. "type": "circle",
  158. "stroke": {
  159. "width": 0,
  160. "color": "#000000"
  161. },
  162. "polygon": {
  163. "nb_sides": 5
  164. },
  165. "image": {
  166. "src": "img/github.svg",
  167. "width": 100,
  168. "height": 100
  169. }
  170. },
  171. "opacity": {
  172. "value": 0.5,
  173. "random": false,
  174. "anim": {
  175. "enable": false,
  176. "speed": 0.5,
  177. "opacity_min": 0.1,
  178. "sync": false
  179. }
  180. },
  181. "size": {
  182. "value": 1,
  183. "random": true,
  184. "anim": {
  185. "enable": false,
  186. "speed": 40,
  187. "size_min": 0.1,
  188. "sync": false
  189. }
  190. },
  191. "line_linked": {
  192. "enable": true,
  193. "distance": 150,
  194. "color": "#9acc14",
  195. "opacity": 0.4,
  196. "width": 1
  197. },
  198. "move": {
  199. "enable": true,
  200. "speed": 3,
  201. "direction": "right",
  202. "random": false,
  203. "straight": false,
  204. "out_mode": "out",
  205. "bounce": false,
  206. "attract": {
  207. "enable": false,
  208. "rotateX": 600,
  209. "rotateY": 1200
  210. }
  211. }
  212. },
  213. "interactivity": {
  214. "detect_on": "canvas",
  215. "events": {
  216. "onhover": {
  217. "enable": true,
  218. "mode": "repulse"
  219. },
  220. "onclick": {
  221. "enable": true,
  222. "mode": "push"
  223. },
  224. "resize": true
  225. },
  226. "modes": {
  227. "grab": {
  228. "distance": 10,
  229. "line_linked": {
  230. "opacity": 1
  231. }
  232. },
  233. "bubble": {
  234. "distance": 10,
  235. "size": 40,
  236. "duration": 2,
  237. "opacity": 8,
  238. "speed": 3
  239. },
  240. "repulse": {
  241. "distance": 100,
  242. "duration": 0.4
  243. },
  244. "push": {
  245. "particles_nb": 4
  246. },
  247. "remove": {
  248. "particles_nb": 2
  249. }
  250. }
  251. },
  252. "retina_detect": true
  253. };
  254.  
  255. // Initialize Particle.js with your configuration
  256. particlesJS('particles-js', particlesConfig);
  257. </script>
  258.  
  259. </body>
  260. </html>
  261.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement