-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstage3.html
More file actions
125 lines (109 loc) · 3.24 KB
/
stage3.html
File metadata and controls
125 lines (109 loc) · 3.24 KB
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
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function startTimer(duration, display) {
var start = Date.now(),
diff,
minutes,
seconds;
function timer() {
// get the number of seconds that have elapsed since
// startTimer() was called
diff = duration - (((Date.now() - start) / 1000) | 0);
// does the same job as parseInt truncates the float
minutes = (diff / 60) | 0;
seconds = (diff % 60) | 0;
minutes = minutes < 10 ? "0" + minutes : minutes;
seconds = seconds < 10 ? "0" + seconds : seconds;
display.textContent = minutes + ":" + seconds;
if (diff <= 0) {
// add one second so that the count down starts at the full duration
// example 05:00 not 04:59
start = Date.now() + 1000;
}
};
// we don't want to wait a full second before the timer starts
timer();
setInterval(timer, 1000);
}
window.onload = function () {
var threeMinutes = 10 * 1,
display = document.querySelector('#time');
startTimer(threeMinutes, display);
};
</script>
<title>bot or not?</title>
<style>
img {
display: block;
margin-left: auto;
margin-right: auto;
}
body {
font-size: 20px;
color: black;
display: block;
justify-content: center;
align-items: center;
}
a {
text-decoration: none;
color:black;
}
.content{
display:block;
margin-top: 70px;
justify-content: center;
align-items: center;
}
.animated {
background-repeat: no-repeat;
-webkit-animation-duration: 40s;
animation-duration: 40s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}
@-webkit-keyframes fadeIn {
0% {opacity: 0;}
100% {opacity: 1;}
}
@keyframes fadeIn {
0% {opacity: 0;}
100% {opacity: 1;}
}
.fadeIn {
-webkit-animation-name: fadeIn;
animation-name: fadeIn;
}
</style>
</head>
<body>
<br><br><a href="botornot.html">
<img src="bot_or_not.png" alt="captcha that says bot or not" width="150" height="60" ></a>
<div class="content">
<center><div><span id="time"></span></div></center>
<div id = "animated-example" class = "animated fadeIn"><img width="25%" height="25%" src="unstop_sadden.png"></div>
<center>
<input id="text_a" type="text" />
<p id="answer"></p>
<button onclick="myFunction()">check</button>
<script>
function myFunction()
{
var a=document.getElementById("text_a").value;
if (a=="unstop sadden")
{
document.getElementById("answer").innerHTML="correct!<img src='http://www.gifs-paradise.com/animations/animated-gifs-flowers-249.gif'>";
}
else
{
document.getElementById("answer").innerHTML="oops!<img src='http://www.gifs-paradise.com/animations/animated-gifs-devils-23.gif'>";
}
}
</script>
<button onclick="window.location.href = 'stage4.html';">next</button>
</center>
</div>
</body>
</html>