-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathios.html
155 lines (151 loc) · 3.25 KB
/
ios.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
146
147
148
149
150
151
152
153
154
155
<!DOCTYPE html>
<html>
<head>
<meta name="Description" content="Experience the true power of being a goat." />
<link rel='icon' href='https://drive.google.com/thumbnail?id=14fjWZMk4PP7TsBcIogQSFXGZBB70FTgt' type='image/png'/ >
<title>Goat Simulator 2D</title>
<style>
#myVideo {
position: absolute;
top: 0px;
left: 0px;
height: 100%;
pointer-events: none;
}
myVideo::-webkit-media-controls {
display:none !important;
}
#div {
text-align: center;
}
#goat {
position: absolute;
bottom: 5%;
left: 7%;
}
#jump {
position: absolute;
top: 0px;
right: 0px;
width: 50%;
height: 15%;
background: lightgrey;
color: black;
border: none;
opacity: 0.5;
font-size: 40px;
}
#play {
position: absolute;
top: 0px;
left: 0px;
width: 50%;
height: 15%;
background: lightgrey;
color: black;
border: none;
opacity: 0.5;
font-size: 40px;
}
#main {
visibility: hidden;
}
#lgoat {
position: absolute;
top: 100px;
font-size: 30px;
font-weight: bold;
font-family: verdana;
left: 0px;
width: 100%;
text-align: center;
}
#loader {
position: absolute;
top: 50%;
left: 2.5%;
width: 95%;
border: none;
height: 40px;
background: grey;
border-radius: 20px;
animation-name: goat;
animation-duration: 2.7s;
animation-iteration-count: 1;
}
@keyframes goat {
0% {width: 0%;}
100% {width: 95%;}
}
#percent {
position: absolute;
bottom: 50px;
left: 0px;
width: 100%;
text-align: center;
font-size: 25px;
color: grey;
pointer-events: none;
font-family: arial;
}
</style>
</head>
<div id="main">
<body onload="setTimeout(speed, 20000); setTimeout(loading, 3000); setTimeout(double, 40000);">
<video muted id="myVideo" loop>
<source src="https://drive.google.com/uc?authuser=0&id=1B7TkaRDhkNgxIOhg0BNaLo4G9Yzqwsq2&export=download" type="video/mp4">
Your goat has gone missing.
</video>
<img id="goat" src="https://drive.google.com/thumbnail?id=14fjWZMk4PP7TsBcIogQSFXGZBB70FTgt" alt="Sorry the goat is not available right now.">
<button id="jump" onclick="jump(); setTimeout(gravity, 800);" onmousedown="jclick()" onmouseup="jhover()">Jump</button>
<button id="play" onclick="myFunction();" onmousedown="pclick()" onmouseup="phover()">Run</button>
</div>
<div id="ldiv">
<p id="lgoat">Goat Simulator 2D</p>
<button id="loader"></button>
<p id="percent">Finding your goat...</p>
</div>
<script>
var video = document.getElementById("myVideo");
var btn = document.getElementById("play");
video.playbackRate = 0.5;
function myFunction() {
if (video.paused) {
video.play();
btn.innerHTML = "Stop";
} else {
video.pause();
btn.innerHTML = "Run";
}
}
function jump() {
document.getElementById("goat").style.bottom = "20%";
}
function gravity() {
document.getElementById("goat").style.bottom = "5%";
}
function jclick() {
document.getElementById("jump").style.color = "white";
}
function jhover() {
document.getElementById("jump").style.color = "black";
}
function pclick() {
document.getElementById("play").style.color = "white";
}
function phover() {
document.getElementById("play").style.color = "black";
}
function speed() {
document.getElementById("myVideo").playbackrate = 1.0;
}
function loading() {
document.getElementById("ldiv").style.visibility = "hidden";
document.getElementById("main").style.visibility = "visible";
}
function double() {
document.getElementById("myVideo").playbackrate = 1.5;
}
</script>
</body>
</html>