-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·46 lines (37 loc) · 976 Bytes
/
index.html
File metadata and controls
executable file
·46 lines (37 loc) · 976 Bytes
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
<html>
<head>
<title>NCIS.JS</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
</head>
<body>
<style type="text/css">
body {
background-color: black;
color: green;
font-family: monospace;
padding: 30%;
}
</style>
<h1>Can you hack fast enough!??! Click to find out!</h1>
<script type="text/javascript">
var number = 50;
var delay = 500;
function getRandom(min, max) {
return Math.random() * (max - min) + min;
}
function ncis(){
for(i=0; i<number; i++){
var winWidth = getRandom(300, 900);
var winHeight = getRandom(300, 700);
newWindow = window.open("ncis-window.html", "_blank",'PopUp','scrollbars=0,menubar=0');
newWindow.resizeTo(winWidth, winHeight);
newWindow.moveTo(getRandom(0, 1000),getRandom(0,500));
console.log('fired');
}
}
$("body").on("click", function(){
ncis();
});
</script>
</body>
</html>