summaryrefslogtreecommitdiff
path: root/join.html
blob: e827a0e886c2386a901d38ca0c7357628b2eeac2 (plain)
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
<html>
    <link rel="stylesheet" type="text/css" href="style.css">
    <head>
        <h1>Winter Survival 2 <img src="./icon_snowflake.png"> Anarchy</h1>
        <id><img src="./icon.png" style="width:256;"></id>
    </head>
    <script type="text/javascript">
    /*
    	Called at the start, when the loading screen finishes loading all assets.

    	serverName- Server's name.
    		Convar: hostname
    		For exmaple: "Garry's Mod Server"
    	serverURL- URL for the loading screen.
    		Convar: sv_loadingurl
    		For example: "http://mywebsite.com/myloadingscreen.html"
    	mapName- The name of the map the server is playing.
    		For example: "cs_office"
    	maxPlayers- Maximum number of players for the server.
    		Convar: maxplayers
    	steamID- 64-bit, numeric Steam community ID of the client joining.
    		For example: 76561198012345678
    	gamemode- The gamemode the server is currently playing.
    		Convar: gamemode
    		For example: "deathrun"
    */
    function GameDetails( servername, serverurl, mapname, maxplayers, steamid, gamemode ) {
        document.getElementById("SName").innerText = servername;
        document.getElementById("SMap").innerText = mapname;
        document.getElementById("PId").innerText = steamid;
        document.getElementById("SGame").innerText = gamemode;
    }
    function DownloadingFile( fileName ) {
        document.getElementById("FLoad").innerText = fileName;
    }
    function SetFilesNeeded( needed ) {
        document.getElementById("FRem").innerText = needed + " remaining...";
    }
    </script>
    <id>
        <p id="SName">Alec's Otherwise</p>
        <br/>
        <p id="SMap">ws_abandon_night</p>
        <br/>
        <p id="PId"></p>
        <br/>
        <p id="SGame">Winter Survival 2 - Anarchy</p>
        <br/>
        <p>Downloading:</p>
        <p id="FLoad"></p>
        <p id="FRem"></p>
        <br/>
    </id>
    <!--
    <audio loop="true" autoplay="true">
        <source src="wsintro.wav" type="audio/wav">
    </audio>
    --!>
</html>