forked from DVLP/LinkOfDeath
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
100 lines (92 loc) · 2.95 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>LinkOfDeath.com - when it will catch you it will kill you('r tab)</title>
<style>
body {
cursor: none;
font-family: sans-serif;
}
#link{
background: #f00;
color: #fff;
position:absolute;
font-size: 10px;
padding: 5px;
border-radius: 10px;
box-shadow: 0px 0px 15px #ffaaaa;
z-index: 5;
}
#you {
background: #000;
width: 20px;
height: 20px;
position:absolute;
border-radius: 10px;
box-shadow: 2px 2px 15px #ccc;
}
#score {
position:absolute;
top: 10px;
right: 10px;
font-size: 30px;
}
</style>
</head>
<body>
<div id="score"></div>
<div id="you"></div>
<a id="link" href="http://a/%%30%30">LINK OF DEATH<br> http://a/%%30%30</a>
<a href="https://github.com/DVLP/LinkOfDeath"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://camo.githubusercontent.com/82b228a3648bf44fc1163ef44c62fcc60081495e/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f6c6566745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_left_red_aa0000.png"></a>
</body>
</html>
<script>
var currX = 0;
var currY = 0;
var clientX = 0;
var clientY = 0;
var score = 0;
var difficulty = 100;
var you = document.getElementById('you');
var scoreEl = document.getElementById('score');
var link = document.getElementById('link');
document.addEventListener('mousemove', function (e) {
clientX = e.clientX + document.body.scrollLeft;
clientY = e.clientY + document.body.scrollTop;
});
setInterval(function () {
currX += (clientX - currX) / (2 * difficulty);
currY += (clientY - currY) / (2 * difficulty);
you.style.left = clientX + 'px';
you.style.top = clientY + 'px';
link.style.left = currX + 'px';
link.style.top = currY + 'px';
score++;
scoreEl.textContent = "Score:" + score;
var IsNotHardEnough = difficulty > 1.5;
if(IsNotHardEnough){
difficulty -= 0.05;
}else{
difficulty = 1.5;
}
if(currX > window.innerWidth){
currX = window.innerWidth;
}else if(currX < 0){
currX = 0;
}
if(currY < 0){
currY = 0;
}else if(currY > window.innerHeight){
currY = window.innerHeight;
}
}, 10);
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67882877-1', 'auto');
ga('send', 'pageview');
</script>