forked from Erik-Da-coder/Eaglercraft-launcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
71 lines (66 loc) · 2.33 KB
/
Copy pathscript.js
File metadata and controls
71 lines (66 loc) · 2.33 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
// Varibles
let version = document.getElementById("version");
let eagler152 = document.getElementById("eagler152");
let placeholder = document.getElementById("placeholder");
let eagler188 = document.getElementById("eagler188");
let eageroffline152 = document.getElementById("eagleroffline152");
let eagleroffline188 = document.getElementById("eagleroffline188");
let value = version.getAttribute("value");
let options = document.getElementsByClassName("options");
// Event Listeners
document.getElementById("152options").onchange = changeListener152;
document.getElementById("188options").onchange = changeListener188;
document.getElementById("version").onchange = changeListener;
function changeListener152() {
var value = this.value;
console.log(value);
if (value == "Precision") {
window.open("1.5/precise/index.html");
} else if (value == "resent") {
alert(
"This is currently not working, this is not a but, do not report this!\n- Sebastian-105"
);
} else if (value == "Vanilla") {
window.open("1.5/vanilla/index.html");
} else if (value == "placeholder152") {
alert("You must choose an option.\n- Sebastian-105");
} else if (value == "Ayuncraft") {
window.open("1.5/ayuncraft/index.html");
}else if (value == "oldfuture") {
window.open("1.5/future/");
}
}
function changeListener188() {
var value = this.value;
console.log(value);
if (value == "Vanilla188") {
window.open("1.8/vanilla/index.html");
} else if (value == "Resent188") {
window.open("1.8/resent/index.html");
} else if (value == "placeholder188") {
alert("You must choose an option.\n- Sebastian-105");
}else if (value == "ShadowClient") {
window.open("1.8/shadowclient/index.html");
}else if (value == "EaglerReborn") {
window.open("1.8/eaglerreborn");
}else if (value == "Shaders") {
window.open("1.8/shaders/");
}else if (value == "piclient") {
window.open("1.8/piclient");
}else if (value == "DragonX") {
window.open("1.8/dragonx/");
}
}
function changeListener() {
var value = this.value;
console.log(value);
if (value == "eagler152") {
$(".diva").fadeIn("slow");
} if (value == "eagler188") {
$(".dive").fadeIn("slow");
}if (value == "hackedclientsa") {
$(".divs").fadeIn("slow");
} if (value == "placeholder") {
alert("You must choose an option.\n- Sebastian-105");
}
}