-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
382 lines (365 loc) · 15.7 KB
/
index.html
File metadata and controls
382 lines (365 loc) · 15.7 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
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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>R1Delta - Custom Servers for Titanfall 1</title>
<link rel="icon" type="image/png" href="logo.png" />
<meta property="og:keywords" content="dedicated, mod, modding, modification, multiplayer, server, source, titanfall">
<meta property="og:title" content="R1Delta">
<meta property="og:site_name" content="R1Delta">
<meta property="og:description" content="Custom server framework for Titanfall 1 that allows hosting dedicated servers and loading mods.">
<meta property="og:type" content="website">
<meta property="og:image" content="https://r1delta.net/logo.png">
<meta property="og:image:alt" content="R1Delta Logo">
<meta property="og:url" content="https://r1delta.net/">
<meta property="og:color" content=#8B2D2D;>
<meta name="theme-color" content=#8B2D2D;>
<meta property="og:keywords" content="dedicated, mod, modding, modification, multiplayer, server, source, titanfall">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* ok ok i will make have an underline then :( */
a {
color: inherit;
text-decoration: underline;
/* requires a modern browser */
text-underline-offset: from-font;
text-decoration-thickness: 2px;
text-decoration-color: rgba(255, 255, 255, 0.3);
text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
transition: text-shadow 0.3s ease, text-decoration-color 0.25s ease;
}
a:hover,
a:focus {
text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
text-decoration-color: rgba(255, 255, 255, 0.3);
}
a:hover svg,
a:focus svg {
filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
}
a:visited,
a:active {
color: inherit;
}
body {
background-color: #0a0a0a;
color: #f5f5f5;
height: 100vh;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.video-background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1;
opacity: 0;
filter: blur(10px) brightness(0.35);
transition: opacity 2.15s ease-in-out;
}
.content {
text-align: center;
z-index: 1;
opacity: 0;
transform: translateY(20px);
transition: opacity 1.65s ease, transform 1.28s ease;
max-width: 800px;
padding: 20px;
}
.logo {
margin-bottom: 20px;
width: 150px;
height: 150px;
}
h1 {
font-size: 4rem;
margin-bottom: 10px;
color: #8B2D2D;
text-shadow: 0 0 10px rgba(139, 45, 45, 0.5);
}
.subtitle {
font-size: 1.2rem;
margin-bottom: 40px;
max-width: 600px;
margin-left: auto;
margin-right: auto;
line-height: 1.6;
}
.buttons {
display: flex;
justify-content: center;
gap: 20px;
margin-bottom: 40px;
flex-wrap: wrap;
}
.btn {
padding: 12px 30px;
border: none;
border-radius: 5px;
font-size: 1rem;
font-weight: bold;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
text-decoration: none;
display: inline-flex;
align-items: center;
justify-content: center;
/* we gotta AA these buttons, man! */
backface-visibility: hidden;
outline: 1px solid transparent;
/* this should force aa to happen on chromium */
transform: translateZ(0);
/* we can force gpu rendering (+aa) by doing a transform here - on most browsers at least */
/* don't ask me how, but it *seems* to make the button corners more smooth */
}
.btn:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.btn-download {
background-color: #8B2D2D;
color: white;
}
.btn-servers {
background-color: #4b4545;
color: white;
}
.btn-discord {
background-color: #55557f;
color: white;
}
.footer {
position: fixed;
bottom: 22px;
text-align: center;
font-size: 0.8rem;
color: rgba(255, 255, 255, 0.5);
width: 100%;
padding: 0 20px;
}
.loading {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #0a0a0a;
display: flex;
justify-content: center;
align-items: center;
z-index: 100;
transition: opacity 1s ease;
}
.loading span {
width: 10px;
height: 10px;
margin: 0 5px;
border-radius: 50%;
background: #8B2D2D;
animation: loader 1.1s infinite ease-in-out;
}
.loading span:nth-child(2) {
animation-delay: 0.12s;
}
.loading span:nth-child(3) {
animation-delay: 0.28s;
}
@keyframes loader {
0%, 100% { transform: scale(0.5); opacity: 0.5; }
50% { transform: scale(1); opacity: 1; }
}
.jiggle {
animation: jiggle 1.5s infinite;
will-change: transform;
transform-origin: center;
backface-visibility: initial;
}
@keyframes jiggle {
0% {
transform: rotate(-2deg);
}
50% {
transform: rotate(2deg);
}
100% {
transform: rotate(-2deg);
}
}
/* for the new buttons */
.btn svg, .btn i {
margin-right: 6px;
vertical-align: middle;
}
/* stuff */
.countdown {
font-family: monospace;
font-size: 16px;
text-align: center;
background-color: #000;
color: #8B2D2D;
padding: 12px;
border-radius: 5px;
display: inline-block;
letter-spacing: 2px;
box-shadow: 0 0 10px #8B2D2D;
}
</style>
</head>
<body>
<div class="loading" id="loading">
<span></span>
<span></span>
<span></span>
</div>
<video id="video-background" class="video-background" preload="auto" muted autoplay playsinline>
<source src="menu_act01.webm" type="video/webm">
</video>
<div class="content" id="content">
<img src="logo.png" class="logo" alt="R1Delta Logo">
<h1>R1Delta</h1>
<div id="playercount" style="display:none"></div>
<p style="padding-top: 1em;" class="subtitle"><a href="https://github.com/r1delta">Open source</a>, custom server framework for Titanfall 1 that allows hosting dedicated servers and loading mods.</p><br>
<div class="buttons">
<a href="https://github.com/r1delta/r1delta/releases/latest/download/R1DeltaSetup.exe" class="btn btn-download">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="7 10 12 15 17 10"></polyline>
<line x1="12" y1="15" x2="12" y2="3"></line>
</svg>
Download
</a>
<a href="https://titanfall.k0.tel/" class="btn btn-servers">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="2" y="2" width="20" height="8" rx="2" ry="2"></rect>
<rect x="2" y="14" width="20" height="8" rx="2" ry="2"></rect>
<line x1="6" y1="6" x2="6.01" y2="6"></line>
<line x1="6" y1="18" x2="6.01" y2="18"></line>
</svg>
Servers
</a>
<a href="https://discord.r1delta.net/" class="btn btn-discord">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor">
<path d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.419 0 1.334-.956 2.419-2.157 2.419zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.419 0 1.334-.946 2.419-2.157 2.419z"></path>
</svg>
Discord
</a>
</div>
<div class="countdown" id="countdown"></div>
<script>
function updateCountdown() {
const targetDate = new Date('May 2, 2025 17:30:00 GMT-0400');
const disableDate = new Date(targetDate);
disableDate.setDate(disableDate.getDate() + 7);
const now = new Date();
if (now >= disableDate) {
document.getElementById('countdown').style.display = 'none';
return;
}
if (now >= targetDate) {
document.getElementById('countdown').innerHTML = "WE'RE LIVE";
document.getElementById('countdown').style.color = '#ff0';
document.getElementById('countdown').style.boxShadow = '0 0 15px rgba(255, 255, 0, 0.7)';
return;
}
const difference = targetDate - now;
const days = Math.floor(difference / (1000 * 60 * 60 * 24));
const hours = Math.floor((difference % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
const minutes = Math.floor((difference % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((difference % (1000 * 60)) / 1000);
const milliseconds = Math.floor((difference % 1000) / 10);
const formattedDays = String(days).padStart(2, '0');
const formattedHours = String(hours).padStart(2, '0');
const formattedMinutes = String(minutes).padStart(2, '0');
const formattedSeconds = String(seconds).padStart(2, '0');
const formattedMilliseconds = String(milliseconds).padStart(2, '0');
document.getElementById('countdown').innerHTML =
`${formattedDays}:${formattedHours}:${formattedMinutes}:${formattedSeconds}:${formattedMilliseconds}`;
}
updateCountdown();
const countdownInterval = setInterval(updateCountdown, 10);
window.addEventListener('beforeunload', function() {
clearInterval(countdownInterval);
});
</script>
</div>
<div class="footer">
<p>R1Delta is not affiliated with, endorsed by, or connected to Respawn Entertainment, Electronic Arts, or any of their subsidiaries. Titanfall is a trademark of Respawn Entertainment.</p>
<br>
<div class="analytics">
<a href="https://dashboard.simpleanalytics.com/r1delta.net?utm_source=r1delta.net&utm_content=badge&affiliate=pokuw" referrerpolicy="origin" target="_blank">
<img src="https://simpleanalyticsbadges.com/r1delta.net?logo=8B2D2D&text=rgba(255,255,255,.8)&background=151b1c" alt="100% privacy friendly"
style="image-rendering: auto; width: 128px;"><br>
<h6>sponsored by Simple Analytics - 100% privacy friendly analytics!</h6>
</a>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const video = document.getElementById('video-background');
const content = document.getElementById('content');
const loading = document.getElementById('loading');
video.src = "menu_act01.webm"; /* >:) */
function attemptPlay() {
video.play().catch(e => {
console.log("Autoplay prevented");
});
}
function checkVideoReady() {
if (video.readyState >= 3) {
video.loop = true;
attemptPlay();
setTimeout(() => {
video.style.opacity = '1';
setTimeout(() => {
content.style.opacity = '1';
content.style.transform = 'translateY(0)';
loading.style.opacity = '0';
setTimeout(() => {
loading.style.display = 'none';
}, 1000);
}, 650);
}, 450);
} else {
setTimeout(checkVideoReady, 250);
}
}
document.addEventListener('click', attemptPlay, { once: true });
document.addEventListener('keydown', attemptPlay, { once: true });
document.addEventListener('touchstart', attemptPlay, { once: true });
video.addEventListener('loadeddata', checkVideoReady);
checkVideoReady();
});
/* very cool player count - using proxy to "fix" cors */
document.addEventListener('DOMContentLoaded', () => {
fetch('https://titanfall.k0.tel/playercount/')
.then(res => res.json())
.then(servers => {
let total = 0;
servers.forEach(server => {
total += (server.players || []).length;
});
if (total > 9) {
const el = document.getElementById('playercount');
el.textContent = total === 1 ? '1 player online' : `${total} players online`;
// don't need to show 1 anymoe but lets call it "legacy code"
el.style.display = 'block';
}
});
});
</script>
<!-- privacy friendly statistics -->
<script data-collect-dnt="true" async src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
<noscript><img src="https://queue.simpleanalyticscdn.com/noscript.gif?collect-dnt=true" alt="" referrerpolicy="no-referrer-when-downgrade"/></noscript>
</body>
</html>