-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstage2.html
More file actions
120 lines (106 loc) · 3.08 KB
/
stage2.html
File metadata and controls
120 lines (106 loc) · 3.08 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
<!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;
}
div {
position: relative;
-webkit-animation-name: example; /* Safari 4.0 - 8.0 */
-webkit-animation-duration: 4s; /* Safari 4.0 - 8.0 */
animation-name: example;
animation-duration: 4s;
}
/* Safari 4.0 - 8.0 */
@-webkit-keyframes example {
0% { left:0px; top:0px;}
20% {left:100px; top:0px;}
40% {left:100px; top:100px;}
60% {left:-100px; top:100px;}
80% {left:-100px; top:0px;}
100% {left:0px; top:0px;}
}
</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><img width="25%" height="25%" src="cutoff_snacks.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=="cutoff snacks")
{
document.getElementById("answer").innerHTML="correct!<img width='5%' height'5%' src='http://www.gifs-paradise.com/animations/animated-gifs-dollz-441.gif'>";
}
else
{
document.getElementById("answer").innerHTML="oops!<img src='http://www.gifs-paradise.com/animations/animated-gifs-explosions-006.gif'>";
}
}
</script>
<button onclick="window.location.href = 'stage3.html';">next</button><br><br><br><br>
</center>
</div>
</body>
</html>