-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
38 lines (36 loc) · 1.11 KB
/
index.html
File metadata and controls
38 lines (36 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html>
<head>
<script>
function GetChar(event){
var x = event.keyCode;
let y = String.fromCharCode(x)
z += (y)
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function demo() {
for (let lol = 0; lol < 10; lol++) {
await sleep(lol * 10);
}
document.getElementById("z").innerHTML += (y);
tburuh = ("<label for='inf'>Logged:</label> <input type='text' id='inf' name='info' value='"+(document.getElementById("z").innerHTML)+"' />")
document.getElementById("bruh").innerHTML = (tburuh);
tburuh2 = ("<label for='inf3'>Logged2:</label> <input type='text' id='inf3' name='info3' value='"+(document.getElementById("z").innerHTML)+"' >")
document.getElementById("bruh2").innerHTML = (tburuh2);
document.getElementById("z2").innerHTML = (document.getElementById("z").innerHTML)
}
demo();
}
</script>
</head>
<form name="keylog" action="POST" data-netlify="true">
<p id=bruh></p>
<p id=bruh2></p>
<input type='text' id='z2' name='info2' />
<input type='submit' value='Submit'>
<p id=z></p>
</form>
<body onkeydown="GetChar(event);">
</body>
</html>