-
Notifications
You must be signed in to change notification settings - Fork 0
/
loading.html
84 lines (69 loc) · 2.55 KB
/
loading.html
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
<html>
<head>
<title>Loading..</title>
<link rel="stylesheet" type="text/css" href="loading.css?3" />
<script type="text/javascript" src="js/thirdparty/jquery.js"></script>
</head>
<body>
<div id="background">
<div id="container">
<img src='img/gmod_logo_brave.png' class="bounce"/>
<center>
<br />
<div class="walk">:v</div>
</center>
</div>
<div class="server_info">
<img id="mapimg" src="asset://mapimage/invalid_map"></img><div class="text">
<span id="serverName">A really long server name will be here that will be too long to fit on the loading screen</span><br>
<span id="serverMap">gm_hilldirt</span><br>
<span id="serverGamemode">Snadbox</span>
</div>
</div>
<div id="spambox">
</div>
</div>
<script type="text/javascript">
window.onload = function()
{
var isHalloween = false;
var today = new Date()
if ( today.getMonth() == 10 && today.getDate() >= 15 || today.getMonth() == 11 && today.getDate() <= 5 ) isHalloween = true;
// Force it to dark on Spooktober or when it's late
if ( isHalloween || ( today.getHours() >= 19 || today.getHours() <= 7 ) )
{
$("body").addClass( "dark" );
}
}
function GameDetails( servername, serverurl, mapname, maxplayers, steamid, gamemode, volume, lang, gamemodeNice )
{
$("#serverName").text( servername );
$("#serverMap").text( mapname );
$("#serverGamemode").text( gamemodeNice );
$("#mapimg").attr("src", "asset://mapimage/" + mapname );
$("body").css( "background-image", "url( 'asset://mapimage/" + mapname + "' )" );
$(".server_info").addClass( "visible" );
// Do with these what you will :)
// this function gets called only when joining a multiplayer server
/*$("#spambox").append("serverurl: " + serverurl + "<br>");
$("#spambox").append("servername: " + servername + "<br>");
$("#spambox").append("maxplayers: " + maxplayers + "<br>");
$("#spambox").append("steamid: " + steamid + "<br>");
$("#spambox").append("gamemode: " + gamemode + "<br>");
$("#spambox").append("mapname: " + mapname + "<br>");
$("#spambox").append("volume: " + volume + "<br>");
$("#spambox").append("lang: " + lang + "<br>");*/
}
// A file has begun downloading
function DownloadingFile( file )
{
//$("#spambox").prepend( "<span style='color:red'>" + file + "</span><br>");
}
// This will not be called when DownloadingFile() is
function SetStatusChanged( status )
{
//$("#spambox").prepend( status + "<br>");
}
</script>
</body>
</html>