-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path12.js
More file actions
27 lines (23 loc) · 806 Bytes
/
12.js
File metadata and controls
27 lines (23 loc) · 806 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
var distance = 10;
var counter = 0;
function onClick(){
counter += 1;
console.log("Clicked");
if(counter === 12){
window.location.replace("c51ce410c124a10e0db5e4b97fc2af39");
}
var btn = document.getElementById("btn");
btn.style.position = "relative";
btn.style.top = Math.floor((Math.random() * 500)) + "px";
btn.style.left = Math.floor((Math.random() * 400)) + "px";
}
var x = setInterval(function() {
document.getElementById("demo").innerHTML = "<span style ='color:red; font-size:20px;'>"+ "Time remaining: " + distance + "s" + "</span>";
distance -= 1;
if (distance < 0) {
window.location.replace("8f14e45fceea167a5a36dedd4bea2543");
}
}, 1000);
document.addEventListener("contextmenu", function (e) {
e.preventDefault();
});