-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstage9.html
More file actions
123 lines (111 loc) · 3.54 KB
/
stage9.html
File metadata and controls
123 lines (111 loc) · 3.54 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
<!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;
}
@-webkit-keyframes spaceboots {
0% { -webkit-transform: translate(2px, 1px) rotate(0deg); }
10% { -webkit-transform: translate(-1px, -2px) rotate(-1deg); }
20% { -webkit-transform: translate(-3px, 0px) rotate(1deg); }
30% { -webkit-transform: translate(0px, 2px) rotate(0deg); }
40% { -webkit-transform: translate(1px, -1px) rotate(1deg); }
50% { -webkit-transform: translate(-1px, 2px) rotate(-1deg); }
60% { -webkit-transform: translate(-3px, 1px) rotate(0deg); }
70% { -webkit-transform: translate(2px, 1px) rotate(-1deg); }
80% { -webkit-transform: translate(-1px, -1px) rotate(1deg); }
90% { -webkit-transform: translate(2px, 2px) rotate(0deg); }
100% { -webkit-transform: translate(1px, -2px) rotate(-1deg); }
}
.shake
{
-webkit-animation-name: spaceboots;
-webkit-animation-duration: 0.8s;
-webkit-transform-origin:50% 50%;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
}
</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>
<img width="25%" height="25%" src="uncaps_liquor.png">
<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=="uncaps liquor")
{
document.getElementById("answer").innerHTML="Correct!<img src='http://www.gifs-paradise.com/animations/animated-gifs-lobsters-002.gif'>";
}
else
{
document.getElementById("answer").innerHTML="Oops!<img src='http://www.gifs-paradise.com/animations/animated-gifs-skulls-64.gif'>";
}
}
</script>
<button onclick="window.location.href = 'stage10.html';">next</button>
</center>
</div>
</body>
</html>