This repository has been archived by the owner on Aug 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
loading.php
94 lines (79 loc) · 2.68 KB
/
loading.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
<?php
// To use this loading screen, use http://{DOMAIN}/?mapname=%m&steamid=%s
$development_mode = false;
$server_name = ($development_mode) ? "Example SteamID" : $_GET["steamid"];
$server_map = ($development_mode) ? "Example Mapname" : $_GET["mapname"];
$user_steamid = ($development_mode) ? "Example SteamID" : $_GET["steamid"];
$show_watermark = !$development_mode;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Garry's Mod Loading Screen</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,400;0,600;1,400&display=swap');
* {
margin: 0;
padding: 0;
font-family: 'Rubik', sans-serif;
}
body {
background: url("https://raw.githubusercontent.com/Banabyte/hosting-loadingscreen/master/assets/litteraly-a-tree.jpg") no-repeat center center fixed;
background-size: cover;
}
.content {
position: absolute;
width: 100vw;
height: 100vh;
background: rgba(17, 148, 240, 0.25);
backdrop-filter: blur(5px);
color: white;
padding: 2.5rem;
box-sizing: border-box;
}
.content #server_name {
font-weight: 600;
font-size: 2.5rem;
}
.content .welcome_to {
font-weight: 500;
font-size: 1.25rem;
}
.content .server_user_details span {
font-style: italic;
}
.content .watermark {
position: absolute;
right: 15px;
bottom: 15px;
font-size: 15px;
}
strong {
font-weight: 600;
font-style: normal;
}
</style>
</head>
<body>
<div class="content">
<p class="welcome_to">Welcome to...</p>
<h1 id="server_name">Garry's Mod Server</h1>
<p class="server_user_details"><strong>SteamID:</strong> <span><?php echo $user_steamid; ?></span>, <strong>Map:</strong> <span><?php echo $server_map; ?></span></p>
<?php if ($show_watermark) : ?>
<p class="watermark">hosted by banabyte.com</p>
<?php endif; ?>
</div>
<script>
function setName(n) {
const node = document.querySelector(`#server_name`);
node.innerText = n;
}
function GameDetails(servername, serverurl, mapname, maxplayers, steamid, gamemode, volume, language) {
setName(n);
}
</script>
</body>
</html>