-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout.html
215 lines (211 loc) · 6.46 KB
/
about.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
<!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'/ >
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Zen+Dots&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">
<title id="t">The Ultimate Goat Simulator</title>
<style>
* {
font-family: 'Zen Dots', cursive;
color: #282828;
}
body {
background: #64d12e;
}
#logo {
width: 30%;
}
#logo:hover {
animation-name: jump;
animation-duration: 2.0s;
animation-iteration-count: 1;
}
@keyframes jump {
0% {transform: translate(0px, 0px);}
50% {transform: translate(0px, -100px);}
100% {transform: translate(0px, 0px);}
}
#center {
position: absolute;
top: 30px;
left: 10%;
width: 80%;
text-align: center;
font-size: 4vw;
}
.button {
height: 40px;
font-size: 25px;
background: transparent;
border: 2px solid black;
border-radius: 8px;
}
.button:hover {
border: 2px solid white;
color: white;
cursor: pointer;
animation-name: fade;
animation-duration: 0.6s;
animation-iteration-count: 1;
}
@keyframes fade {
0% {border: 2px solid black; color: black;}
100% {border: 2px solid white; color: white;}
}
#language {
position: absolute;
top: 10px;
right: 10px;
width: 40px;
background: transparent;
border: 2px solid black;
border-radius: 8px;
padding: 5px;
cursor: pointer;
}
#langauge:hover {
opacity: 0.7;
}
#settings {
position: absolute;
z-index: 1;
top: 52px;
right: 10px;
width: 150px;
height: 105px;
border-radius: 8px;
border: none;
background: white;
visibility: hidden;
}
.s {
width: 100%;
height: 35px;
background: transparent;
color: black;
border: none;
font-size: 17px;
}
.s:hover {
bakcground: lightgrey;
color: grey;
cursor: pointer;
}
#ios {
position: absolute;
top: 0px;
height: 15%;
left: 30%;
width: 25%;
border: none;
background: #ffc000;
visibility: hidden;
}
#noios {
position: absolute;
top: 0px;
height: 15%;
right: 30%;
width: 15%;
border: none;
background: grey;
visibility: hidden;
}
#closeNotice {
background: #ffc000;
colot: black;
text-decoration: none;
border-radius: 1px;
padding: 5px;
}
</style>
<body id="body" onload="pickColor()">
<p id="notice" style="font-family:14px">This page has been updated. <a href="home">Learn more</a> <a onclick="document.getElementById('notice').remove();" href="#" title="Close" id="closeNotice">Close</a></p>
<p id="center">
<img src="https://drive.google.com/thumbnail?id=14fjWZMk4PP7TsBcIogQSFXGZBB70FTgt" id="logo"><br>
<span id="title">Ultimate Goat Simulator</span><br><br>
<a href="https://lb123658.github.io/goat" id="a-old">
<button class="button" id="old" title="Play the original goat simulator">Original</button></a>
<a href="https://lb123658.github.io/goat/app" id="a-new">
<button class="button" id="new" title="Play the new goat simulator">New version</button></a>
</p>
<button id="language" onmouseover="show()" onmouseout="hide()"><span class="material-icons">translate</span></button>
<div id="settings" onmouseover="show()" onmouseout="hide()">
<button class="s" onclick="en()">English</button>
<button class="s" onclick="es()">Español</button>
<button class="s" onclick="pl()">Polski</button>
</div>
<a href="https://lb123658.github.io/goat/ios">
<button id="ios" onclick="closeIos()">Try phone version</button></a>
<button id="noios" onclick="closeIos()">No thanks</button>
<script>
function show() {
document.getElementById("settings").style.visibility = "visible";
}
function hide() {
document.getElementById("settings").style.visibility = "hidden";
}
function es() {
document.getElementById("title").innerHTML = "Ultimo Simulador de Cabro";
document.getElementById("old").title = "Jugar la versión original";
document.getElementById("new").innerHTML = "Nueva versión";
document.getElementById("a-new").href = "https://lb123658.github.io/goat/app?l=es";
document.getElementById("a-old").href = "https://lb123658.github.io/goat?l=es";
document.getElementById("new").title = "Jugar la versíon nueva";
document.getElementById("t").innerHTML = "Simulador de Cabro";
window.location.search = "?l=es";
}
function pl() {
document.getElementById("title").innerHTML = "Gra kozy";
document.getElementById("old").title = "Graj stara wersja";
document.getElementById("new").title = "Graj nowa wesja";
document.getElementById("old").innerHTML = "Stara wersja";
document.getElementById("new").innerHTML = "Nowa wersja";
document.getElementById("a-new").href = "https://lb123658.github.io/goat/app?l=pl";
document.getElementById("a-old").href = "https://lb123658.github.io/goat?l=pl";
document.getElementById("t").innerHTML = "Gra kozy";
window.location.search = "?l=pl";
}
function en() {
window.location.search = "?l=en";
}
</script>
<script src="color.js"></script>
<script>
//language feature
if (window.location.search == "?l=es") {
document.getElementById("title").innerHTML = "Ultimo Simulador de Cabro";
document.getElementById("old").title = "Jugar la versión original";
document.getElementById("new").innerHTML = "Nueva versión";
document.getElementById("a-new").href = "https://lb123658.github.io/goat/app?l=es";
document.getElementById("a-old").href = "https://lb123658.github.io/goat?l=es";
document.getElementById("new").title = "Jugar la versíon nueva";
document.getElementById("t").innerHTML = "Simulador de Cabro";
} else if (window.location.search == "?l=pl") {
document.getElementById("title").innerHTML = "Gra kozy";
document.getElementById("old").title = "Graj stara wersja";
document.getElementById("new").title = "Graj nowa wersja";
document.getElementById("old").innerHTML = "Stara wersja";
document.getElementById("new").innerHTML = "Nowa wersja";
document.getElementById("a-old").href = "https://lb123658.github.io/goat?l=pl";
document.getElementById("a-new").href = "https://lb123658.github.io/goat/app?l=pl";
document.getElementById("t").innerHTML = "Gra kozy";
} else if (window.location.search == "") {
;
}
//mobile option
if (window.innerWidth < 500) {
document.getElementById("ios").style.visibility = "visible";
document.getElementById("noios").style.visibility = "visible";
}
function closeIos() {
document.getElementById("ios").style.visibility = "hidden";
document.getElementById("noios").style.visibility = "hidden";
}
</script>
</body>
</html>