-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
224 lines (217 loc) · 5.45 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title id="t">Goat Simulator</title>
<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'/ >
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-YQ9GK76117"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-YQ9GK76117');
</script>
<style>
#myVideo {
position: absolute;
top: 100px;
left: 50px;
width: 600px;
}
#play {
position: absolute;
top: 450px;
left: 50px;
width: 150px;
height: 50px;
font-size: 30px;
cursor: pointer;
border: none;
background: transparent;
border-radius: 15px;
}
#play:hover {
background: lightgrey;
}
#title {
font-family: arial;
font-size: 40px;
color: grey;
cursor: default;
font-weight: bold;
position: absolute;
top: 5px;
left: 5px;
}
#howTo {
font-family: arial;
font-size: 30px;
color: grey;
cursor: default;
font-weight: bold;
position: absolute;
left: 670px;
top: 100px;
}
#goat {
position: absolute;
top: 218px;
left: 200px;
width: 200px;
z-index: 1;
}
#jump {
position: absolute;
top: 450px;
left: 500px;
width: 150px;
height: 50px;
font-size: 30px;
cursor: pointer;
border: none;
background: transparent;
border-radius: 15px;
}
#jump:hover {
background: lightgrey;
}
#data {
position: absolute;
top: 120px;
left: 500px;
color: black;
font-family: courier new;
cursor: default;
z-index: 1;
font-size: 20px;
}
#setTwo {
visibility: hidden;
}
#loadingPhrase {
font-family: futura;
color: grey;
font-size: 50px;
cursor: default;
}
#loadGoat {
width: 300px;
}
.loadPart {
width: 20%;
height: 40px;
border: none;
background: lightgrey;
}
#a {
position: absolute;
top: 500px;
left: 0px;
}
#b {
position: absolute;
top: 500px;
left: 20%;
}
#c {
position: absolute;
top: 500px;
left: 40%;
}
#d {
position: absolute;
top: 500px;
left: 60%;
}
#loadPercent {
font-family: futura;
color: grey;
font-size: 30px;
cursor: default;
position: absolute;
left: 400px;
top: 300px;
}
a {
color: grey;
text-decoration: none;
cursor: pointer;
}
a:hover {
text-decoration: underline;
opacity: 0.7;
}
</style>
</head>
<body onload="setTimeout(loadA, 1000); setTimeout(loadB, 1500); setTimeout(loadC, 2000); setTimeout(loadD, 2500); setTimeout(finalLoad, 3600)">
<div id="setOne">
<p id="loadingPhrase">Ultimate Goat Simulator</p>
<img id="loadGoat" src="https://drive.google.com/thumbnail?id=14fjWZMk4PP7TsBcIogQSFXGZBB70FTgt" alt="Sorry the goat is not available right now." title="Hello, my name is Bob.">
<button class="loadPart" id="a"></button>
<button class="loadPart" id="b"></button>
<button class="loadPart" id="c"></button>
<button class="loadPart" id="d"></button>
<p id="loadPercent">Loading...</p>
</div>
<div id="setTwo">
<p id="title">Ultimate Goat Simulator</p>
<p id="howTo">How to play: control the goat and jump over the tree stumps and logs. <a href="about" id="link">Learn more</a></p>
<video muted id="myVideo" loop>
<source src="video.mp4" type="video/mp4">
It looks like this game is unavailable.
</video>
<button id="play" onclick="myFunction()">Play</button>
<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); highScore()">Jump</button>
</div>
<script>
// variables
var load = document.getElementById("loadPercent");
var loadPhrase = document.getElementById("loadingPhrase");
var title = document.getElementById("title");
var howTo = document.getElementById("howTo");
var about = document.getElementById("link");
var jump = document.getElementById("jump");
var play = document.getElementById("play");
var t = document.getElementById("t");
//languages
if (window.location.search == "?l=es") {
var scriptEs = document.createElement("SCRIPT");
scriptEs.src = "https://lb123658.github.io/goat/espanol-loading.js";
document.body.appendChild(scriptEs);
load.innerHTML = "Cargando...";
loadPhrase.innerHTML = "Ultimo Simulador de Cabro";
title.innerHTML = "Ultimo Simulador de Cabro";
howTo.innerHTML = "Cómo jugar: Controla el cabro y saltar cuando hay obstáculos.";
about.innerHTML = "Aprender más";
jump.innerHTML = "Saltar";
play.innerHTML = "Jugar";
t.innerHTML = "Ultimo Simulador de Cabro";
} else if (window.location.search == "") {
var scriptEn = document.createElement("SCRIPT");
scriptEn.src = "https://lb123658.github.io/goat/original-loading.js";
document.body.appendChild(scriptEn);
} else if (window.location.search == "?l=en") {
var scriptEn = document.createElement("SCRIPT");
scriptEn.src = "https://lb123658.github.io/goat/original-loading.js";
document.body.appendChild(scriptEn);
} else if (window.location.search == "?l=pl") {
var scriptPl = document.createElement("SCRIPT");
scriptPl.src = "https://lb123658.github.io/goat/polski-loading.js";
document.body.appendChild(scriptPl);
load.innerHTML = "Ładowanie...";
loadPhrase.innerHTML = "Gra kozy";
title.innerHTML = "Gra kozy";
howTo.innerHTML = "Jak grać: Pan jest kozą która potrzebuje biegać i skoczyć.";
about.innerHTML = "Uzc się więcej";
jump.innerHTML = "Skoczyć";
play.innerHTML = "Graj";
t.innerHTML = "Gra kozy";
} else if (window.location.search == "?l=") {
alert("Error: language not specified. Go to https://lb123658.github.io/goat instead");
}
</script>
</body>
</html>