forked from sachinkumar911/MockMasters-Frontend
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
41 lines (40 loc) · 1.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="./src/assets/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MockMasters</title>
</head>
<body oncontextmenu="return false">
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
<script>
document.onkeydown = (e) => {
if (e.key == "F12") {
e.preventDefault();
console.log(e.key);
}
if (e.ctrlKey && e.shiftKey && (e.key == "I" || e.key == "i")) {
e.preventDefault();
console.log(e.key);
}
if (e.ctrlKey && e.shiftKey && (e.key == "C" || e.key == "c")) {
e.preventDefault();
console.log(e.key);
}
if (e.ctrlKey && e.shiftKey && (e.key == "J" || e.key == "j")) {
e.preventDefault();
console.log(e.key);
}
if (e.ctrlKey && (e.key == "u" || e.key == "U")) {
e.preventDefault();
console.log(e.key);
}
};
document.addEventListener("contextmenu", function (e) {
e.preventDefault();
});
</script>
</html>