-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
145 lines (129 loc) · 5.08 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:image" content="https://repository-images.githubusercontent.com/83430235/67f21880-9429-11e9-8f5b-b85ecbf9b6e4" />
<script src="https://imlolman.github.io/js/controller.js"></script>
<title>Don't Blink it</title>
<link href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
<script src="jquery.min.js"></script>
<link rel="stylesheet" href="style.css">
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-142979168-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', '{{ site.google_analytics }}');
</script>
</head>
<body>
<div id="modalbackground" style="position: fixed; top:0; height:100%; width:100%; z-index:10000; display:none; background-color: #7F7F7F; opacity: 0.5;"></div>
<h1>Don't Blink.</h1>
<p>Do You Know Who Made This Utility? Its
<font color="#e74c3c" size="+1">Lolman</font> baby!!</p><br>
<p id="info">Hitting Enter Will Get you A Next Number</p>
<center>
<center><input type="button" id=bttt onclick="rh()" class="btn fifth" value="Continue.."></center><br>
<div class="container" id='container'>
······
</div>
<div class="container" id='container-input'>
<input type="text" class="inputt" autofocus id="ip">
</div>
<div id='times'> 0 / 10
</div>
</center><br>
<div class="timer" id="tme">
Enter to Start
</div>
</body>
<script>
function rh() {
timer();
document.getElementById('bttt').setAttribute('onclick', 'sh()');
document.getElementById('bttt').setAttribute('Value', 'Start');
}
$(document).keypress(function(event) {
if (event.keyCode == 13) {
$('#bttt').click();
// validate(); doesn't need to be called from here
}
});
$("#bttt").click(function() {
$('html, body').animate({
scrollTop: $("#bttt").offset().top
}, 1000);
});
var t = 99;
var a = 10;
var ta = "";
pts = "-1";
var ra;
function errorg() {
document.getElementById('container').innerHTML = "You Loose. Try Again!!";
}
function wong() {
document.getElementById('container').innerHTML = "You Won. Well Done!!";
}
function sh() {
document.getElementById('bttt').setAttribute('Value', 'Next');
var ttyy = document.getElementById('ip').value;
if (document.getElementById('ip').value == ta) {
pts++;
document.getElementById('times').innerHTML = pts + " / 10";
ra = Math.floor((Math.random() * t) + a);
ta = ra;
show();
} else {
if (ta == "TimeOver") {
document.getElementById('container').innerHTML = "You Loose. Time's Over";
clearInterval(myvar);
} else {
clearInterval(myvar);
document.getElementById('container').innerHTML = "You Loose. It Was " + ta + "<BR><TT>You entered: " + ttyy + "</TT>";
document.getElementById('ip').setAttribute('style', 'display:none');
document.getElementById('bttt').setAttribute('onclick', 'errorg()')
}
}
}
var myvar;
function timer() {
var time = 60;
clearInterval(myvar);
document.getElementById('tme').innerHTML = time + "0s";
myvar = setInterval(function() {
time = time - 0.1;
document.getElementById('tme').innerHTML = time.toFixed(1) + "0s";
if (time.toFixed(1) == 0) {
clearInterval(myvar);
document.getElementById('tme').innerHTML = "00.0s";
ta = "TimeOver";
sh();
}
}, 100);
}
function show() {
document.getElementById('ip').value = "";
setTimeout(function() {
hide();
}, 500);
if(pts < 10){
document.getElementById('container').innerHTML = ra;
t = t * Math.floor((Math.random() * 4) + 2) + (Math.floor((Math.random() * 10) + 1) / 10);
a = a * Math.floor((Math.random() * 4) + 2) + (Math.floor((Math.random() * 10) + 1) / 10);
}
}
function hide() {
document.getElementById('container').innerHTML = "······";
if (pts >= 10) {
clearInterval(myvar);
document.getElementById('container').innerHTML = "You Won. Well Done!!";
document.getElementById('ip').setAttribute('style', 'display:none');
document.getElementById('bttt').setAttribute('onclick', 'wong()');
}
}
</script>
</html>