aiscroll commited on
Commit
bb1d799
·
verified ·
1 Parent(s): 734ecb4

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +44 -19
index.html CHANGED
@@ -1,19 +1,44 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <title>How HackerTyper.app Works</title>
6
+ <style>
7
+ body { font-family: Arial, sans-serif; padding: 2rem; background: #f9f9f9; color: #333; }
8
+ pre { background: #eee; padding: 1rem; overflow-x: auto; border-radius: 5px; }
9
+ a { color: #0077cc; text-decoration: none; }
10
+ a:hover { text-decoration: underline; }
11
+ #screen {
12
+ font-family: monospace;
13
+ background: #000;
14
+ color: #0f0;
15
+ padding: 1rem;
16
+ height: 200px;
17
+ overflow-y: auto;
18
+ border-radius: 5px;
19
+ white-space: pre-wrap;
20
+ }
21
+ </style>
22
+ </head>
23
+ <body>
24
+ <h1>How HackerTyper.app Works</h1>
25
+ <p>This site simulates hacker-style typing where any key press outputs code on screen.</p>
26
+ <h2>Simple HackerTyper Demo</h2>
27
+ <div id="screen"></div>
28
+ <pre>
29
+ &lt;script&gt;
30
+ const screen = document.getElementById('screen');
31
+ const code = "console.log('Hello Hacker!');\nfunction test() { return true; }\n";
32
+ let index = 0;
33
+
34
+ document.addEventListener('keydown', () =&gt; {
35
+ if (index &lt; code.length) {
36
+ screen.textContent += code[index++];
37
+ screen.scrollTop = screen.scrollHeight;
38
+ }
39
+ });
40
+ &lt;/script&gt;
41
+ </pre>
42
+ <p>Try the real thing at <a href="https://hackertyper.app" target="_blank" rel="noopener noreferrer">hackertyper.app</a></p>
43
+ </body>
44
+ </html>