Spaces:
Running
Running
Update index.html
Browse files- index.html +44 -19
index.html
CHANGED
|
@@ -1,19 +1,44 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
<script>
|
| 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', () => {
|
| 35 |
+
if (index < code.length) {
|
| 36 |
+
screen.textContent += code[index++];
|
| 37 |
+
screen.scrollTop = screen.scrollHeight;
|
| 38 |
+
}
|
| 39 |
+
});
|
| 40 |
+
</script>
|
| 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>
|