-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
60 lines (55 loc) · 1.98 KB
/
index.html
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login form</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="contact-container">
<div class="right">
<h1 class="title">Sign Into Account</h1>
<img class="logo" src="images/logo.png" alt="">
<div class="form-container">
<div class="username">
<img class="icon email-icon" src="icons/email.svg" alt="">
<input type="email" class="user-input" placeholder="E-Mail">
</div>
<div class="password">
<img class="icon password-icon" src="icons/password lock.svg" alt="">
<input type="password" class="pass-input" placeholder="Password">
</div>
<div class="keepme">
<input type="checkbox" checked="true">
Keep Me Logged In
</div>
<button type="submit">Go !</button>
<a href="#" class="link">Forgot Password</a>
</div>
</div>
</div>
<script>
document.addEventListener("contextmenu", (event) => event.preventDefault());
document.onkeydown = function (e) {
// disable F12 key
if (e.keyCode == 123) {
return false;
}
// disable I key
if (e.ctrlKey && e.shiftKey && e.keyCode == 73) {
return false;
}
// disable J key
if (e.ctrlKey && e.shiftKey && e.keyCode == 74) {
return false;
}
// disable U key
if (e.ctrlKey && e.keyCode == 85) {
return false;
}
};
</script>
</body>
</html>