This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
58 lines (53 loc) · 2.33 KB
/
main.js
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
/**
* Main JS for ad5001.eu
* (c) Ad5001 2017
* @author Ad5001
*/
window.switchLang = function(){
switch(location.hostname){
case "en.ad5001.eu":
location = "https://ad5001.eu";
break;
case "ad5001.eu":
location = "https://en.ad5001.eu";
break;
case "download.ad5001.eu":
case "api.ad5001.eu":
case "projects.ad5001.eu":
var pathname = location.pathname.substr(3);
location = "https://" + location.hostname + "/" + this.value + pathname;
break;
}
}
menus = document.getElementsByTagName("menu")[0].children[0].children;
menus[0].setAttribute("onclick", 'location = "' + menus[0].children[0].getAttribute("href") + '";');
menus[1].setAttribute("onclick", 'location = "' + menus[1].children[0].getAttribute("href") + '";');
menus[2].setAttribute("onclick", 'location = "' + menus[2].children[0].getAttribute("href") + '";');
menus[3].addEventListener("change", window.switchLang)
reviews = [
"DeathRaven359: Ok, everyone else has some real competition going on here. I'm pretty sure who is going to win here. This plugin is love. This Plugin is life. (Juices)",
"Flau: The BEST Troll Plugin i ever seen!!!! I like the troll: notABuilder so much. Thanks a lot (: (TrollPE)",
"SuperDude: One of the best! Works great with magic server so people can deal damage to people with good enchants! Thank you for making this plugin. (Critical)",
"GamingPilot: IT'S THE BEST PLUGIN !!!!! <333333333333333 (PlayerSelectors)",
"FlamingCreeper: The best tool when your type of PvP contains strategy. (AttackSpeed)",
"Hamooz0001: Awesome Your are Awesome Developer (Functions)",
"MineHints: Works great and looks very professional (BetterRaw)",
"ImagicalGamer: Awesome! (Status)",
"ziken: Perfect ! Hope u gonna add the streight effect ! Maybe à Superpower combined effect with résistance and streight ? (EffectsCommands)"
]
l = 0;
if(document.querySelector("#reviews") !== null) setInterval(function() {
$("#reviews").animate({
opacity: 0
}, 500, function() {
if (reviews[l + 1].indexOf(":") !== false) {
l++;
} else {
l = 0;
}
$("#reviews").html(reviews[l]);
$("#reviews").animate({
opacity: 1
}, 500)
})
}, 7000)