-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathscript.js
More file actions
144 lines (133 loc) · 5.13 KB
/
Copy pathscript.js
File metadata and controls
144 lines (133 loc) · 5.13 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
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
let first = null;
let second = "https://discord.gg/";
let third = "TeamSpeak Link";
function copyText(text) {
if (text == "first") {
alert('Server is currently under development')
}
if (text == "second") {
var input = document.createElement('input');
input.setAttribute('value', second);
document.body.appendChild(input);
input.select();
var result = document.execCommand('copy');
document.body.removeChild(input)
return result;
}
if (text == "third") {
var input = document.createElement('input');
input.setAttribute('value', third);
document.body.appendChild(input);
input.select();
var result = document.execCommand('copy');
document.body.removeChild(input)
return result;
}
}
function openLink(value) {
if (value == "first") {
alert('Server is currently under development')
}
if (value == "second") {
window.location.href = "https://discord.gg/";
}
if (value == "third") {
window.location.href = "ts3server://";
}
if (value == "start") {
window.location.href = "index.html";
}
if (value == "about") {
window.location.href = "about.html";
}
if (value == "contact") {
window.location.href = "contact.html";
}
if (value == "apply") {
window.location.href = "apply.html";
}
if (value == "imprint") {
window.location.href = "imprint.html";
}
if (value == "partner") {
window.location.href = "partner.html";
}
if (value == "rules" || value == "whitelist") {
alert('Not Implemented yet!')
}
}
setTimeout(function() {
startTime();
}, 50);
function startTime() {
var today = new Date();
var h = today.getHours();
var m = today.getMinutes();
var s = today.getSeconds();
m = checkTime(m);
s = checkTime(s);
document.getElementsByClassName('sec1time')[0].innerHTML =
h + ":" + m + ":" + s;
var t = setTimeout(startTime, 500);
}
function checkTime(i) {
if (i < 10) { i = "0" + i };
return i;
}
function aboutSlide(value) {
if (value == 1) {
document.getElementsByClassName('intext')[0].style.transition = "all 1s";
document.getElementsByClassName('intext')[0].style.right = "0vw";
document.getElementsByClassName('about-title1')[0].style.borderBottom = "0.2vw solid rgb(60, 169, 24)";
document.getElementsByClassName('about-title2')[0].style.borderBottom = null;
document.getElementsByClassName('about-title3')[0].style.borderBottom = null;
document.getElementsByClassName('about-title4')[0].style.borderBottom = null;
}
if (value == 2) {
document.getElementsByClassName('intext')[0].style.transition = "all 1s";
document.getElementsByClassName('intext')[0].style.right = "40vw";
document.getElementsByClassName('about-title1')[0].style.borderBottom = null;
document.getElementsByClassName('about-title2')[0].style.borderBottom = "0.2vw solid rgb(60, 169, 24)";
document.getElementsByClassName('about-title3')[0].style.borderBottom = null;
document.getElementsByClassName('about-title4')[0].style.borderBottom = null;
}
if (value == 3) {
document.getElementsByClassName('intext')[0].style.transition = "all 1s";
document.getElementsByClassName('intext')[0].style.right = "80vw";
document.getElementsByClassName('about-title1')[0].style.borderBottom = null;
document.getElementsByClassName('about-title2')[0].style.borderBottom = null;
document.getElementsByClassName('about-title3')[0].style.borderBottom = "0.2vw solid rgb(60, 169, 24)";
document.getElementsByClassName('about-title4')[0].style.borderBottom = null;
}
if (value == 4) {
document.getElementsByClassName('intext')[0].style.transition = "all 1s";
document.getElementsByClassName('intext')[0].style.right = "120vw";
document.getElementsByClassName('about-title1')[0].style.borderBottom = null;
document.getElementsByClassName('about-title2')[0].style.borderBottom = null;
document.getElementsByClassName('about-title3')[0].style.borderBottom = null;
document.getElementsByClassName('about-title4')[0].style.borderBottom = "0.2vw solid rgb(60, 169, 24)";
}
}
function selectRang(value) {
console.log(value);
if (value == "Developer") {
document.getElementsByClassName('dev')[0].style.display = "block";
} else {
document.getElementsByClassName('dev')[0].style.display = "none";
}
if (value == "Supporter") {
document.getElementsByClassName('sup')[0].style.display = "block";
} else {
document.getElementsByClassName('sup')[0].style.display = "none";
}
if (value == "Concept") {
document.getElementsByClassName('kon')[0].style.display = "block";
} else {
document.getElementsByClassName('kon')[0].style.display = "none";
}
if (value == "others") {
document.getElementsByClassName('son')[0].style.display = "block";
} else {
document.getElementsByClassName('son')[0].style.display = "none";
}
}