-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
205 lines (171 loc) · 6.06 KB
/
index.php
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
<!DOCTYPE html>
<html>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<style type="text/css">
.body,html {
background :#060a27 url("http://static.websimages.com/static/finchTemplates/backgrounds/textures/4.png") center top repeat;
}
.body {
text-align: center;
}
.reminder{
width: 70%;
margin: 20px 15%;
font-size: 2.2em
}
h1 {
text-align: center;
}
h1,h2,h3 {
color:white;
}
</style>
<?php
//Variables iniciales.
$currLang = ($_GET["lang"]!="") ? $_GET["lang"] : "es" ;
$frases = array (
"es"=>array (
"Mas mulas",
"Crea mas constructores",
"Inyecta larvas",
"Usa Cronobust",
"Entrena mas marins"
),
"en"=>array (
"Calldown mule",
"Build more workers",
"Inject larva",
"Chronoboost time",
"More marines, Bomber style"
),
"de"=>array (
"mehr Maultiere",
"Arbeiter bekommen mehr",
"Inject Larve",
"Chronobust Zeit",
"Trainieren Mehr Marines, Bomber-Stil"
)
);
?>
<script type="text/javascript">
$( document ).ready(function() {
var faster = 0.725;
var interMule = null;
$("#btn-mule").click(function() {
var rep = 90000*faster;
if (interMule) {
$(this).removeClass("btn-success");
$(this).addClass("btn-danger");
clearInterval(interMule);
interMule = null;
} else {
interMule = setInterval(function () {
$("#mule").trigger("play")
}, rep);
$(this).removeClass("btn-danger");
$(this).addClass("btn-success");
}
});
var interWorker = null;
$("#btn-worker").click(function() {
var rep = 17000*faster;
if (interWorker) {
$(this).removeClass("btn-success");
$(this).addClass("btn-danger");
clearInterval(interWorker);
interWorker = null;
} else {
$(this).removeClass("btn-danger");
$(this).addClass("btn-success");
interWorker = setInterval(function () {
$("#worker").trigger("play")
}, rep);
}
});
var interLarva = null;
$("#btn-larva").click(function() {
var rep = 45000*faster;
if (interLarva) {
$(this).removeClass("btn-success");
$(this).addClass("btn-danger");
clearInterval(interLarva);
interLarva = null;
} else {
$(this).removeClass("btn-danger");
$(this).addClass("btn-success");
interLarva = setInterval(function () {
$("#larva").trigger("play")
}, rep);
}
});
var interChrono = null;
$("#btn-chrono").click(function() {
var rep = 45000*faster;
if (interChrono) {
$(this).removeClass("btn-success");
$(this).addClass("btn-danger");
clearInterval(interChrono);
interChrono = null;
} else {
$(this).removeClass("btn-danger");
$(this).addClass("btn-success");
interChrono = setInterval(function () {
$("#chrono").trigger("play")
}, rep);
}
});
var interMarines = null;
$("#btn-marines").click(function() {
var rep = 25000*faster;
if (interMarines) {
$(this).removeClass("btn-success");
$(this).addClass("btn-danger");
clearInterval(interMarines);
interMarines = null;
} else {
$(this).removeClass("btn-danger");
$(this).addClass("btn-success");
interMarines = setInterval(function () {
$("#marines").trigger("play")
}, rep);
}
});
$("#lang-select option[value=<?php echo $currLang; ?>]").attr("selected", "selected");
$("#lang-select").change(function () {
window.location.href = "/?lang="+$("#lang-select option:selected").val();
});
});
</script>
<div class="body">
<select id="lang-select">
<option value="es">Espańol</option>
<option value="en">English</option>
<option value="de">Deutsch</option>
</select>
<h1>Manten tu economía saludable!</h1>
<h3>Activa las unidades en las que quieres ayuda para macrear mientras juegas y listo. Recibirás aviso cada vez que puedas/debas hacer alguna de las acciones activas, GLHF.</h3>
<audio id="worker">
<source src="audio.php?t=<?php echo $frases[$currLang][1]?>&lang=<?php echo $currLang; ?>" type="audio/mpeg">
</audio>
<audio id="larva">
<source src="audio.php?t=<?php echo $frases[$currLang][2]?>&lang=<?php echo $currLang; ?>" type="audio/mpeg">
</audio>
<audio id="mule">
<source src="audio.php?t=<?php echo $frases[$currLang][0]?>&lang=<?php echo $currLang; ?>" type="audio/mpeg">
</audio>
<audio id="chrono">
<source src="audio.php?t=<?php echo $frases[$currLang][3]?>&lang=<?php echo $currLang; ?>" type="audio/mpeg">
</audio>
<audio id="marines">
<source src="audio.php?t=<?php echo $frases[$currLang][4]?>&lang=<?php echo $currLang; ?>" type="audio/mpeg">
</audio>
<button voice="Calldown mule" repeat="1000" valor="E.M.U.L.E" target="mule" type="button" class="btn btn-danger reminder" id="btn-mule"><img src="img/Calldown_mule.gif" style="margin:5px 15px 5px 5px;"/>Calldown E.M.U.L.E</button>
<button voice="Build worker" repeat="17000" valor="Workers" target="worker" type="button" class="btn btn-danger reminder" id="btn-worker"><img src="img/Gather.png" style="margin:5px 15px 5px 5px;"/>Build Workers</button>
<button voice="Inject larva" repeat="4000" valor="Larvas" target="larva" type="button" class="btn btn-danger reminder" id="btn-larva"><img src="img/Spawn_larva.gif" style="margin:5px 15px 5px 5px;"/>Inject Larva</button>
<button voice="Chronoboost time" repeat="5000" valor="Chronoboost" target="chrono" type="button" class="btn btn-danger reminder" id="btn-chrono"><img src="img/62px-Chrono_boost.png" style="margin:5px 15px 5px 5px;"/>Chronoboost</button>
<h2>Tambien puedes activar los siguientes recordatorios</h2>
<button voice="More marines" repeat="25000" valor="Marines" target="marines" type="button" class="btn btn-danger reminder" id="btn-marines"><img src="img/60px-Combat_Shield.png" style="margin:5px 15px 5px 5px;"/>Marines</button>
</div>
</html>