This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
167 lines (161 loc) · 7.34 KB
/
index.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
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
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Server Browser</title>
<!-- Includes -->
<script src="js/handlebars.min.js"></script>
<script src="js/jquery-1.11.3.min.js"></script>
<script src="js/jquery-ui.js"></script>
<!-- Bootstrap -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<script src="js/bootstrap.min.js"></script>
<!-- DataTables -->
<link rel="stylesheet" href="css/jquery.dataTables.min.css">
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/mousetrap.min.js"></script>
<!-- Sweet Alert -->
<script src="js/sweetalert.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/sweetalert.css">
<link rel="stylesheet" type="text/css" href="css/eldorito.css">
<!-- Gamepad support -->
<script src="js/gamepad.js"></script>
<!-- Eldorito Stuff -->
<script src="js/dewRcon.js"></script>
<script src="js/friendServer.js"></script>
<!-- Custom stuff -->
<script src="js/browser.js"></script>
<link rel="stylesheet" href="css/browser.css">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-72472081-1', 'auto');
ga('send', 'pageview');
</script>
<script>
var host = "scooterpsu.github.io";
if ((host == window.location.host) && (window.location.protocol != "http:"))
window.location.protocol = "http";
</script>
</head>
<body>
<h3 class="browserTitle">Server Browser</h3>
<h4 class="serverStats"><span class="playerCount">00 players</span> / <span class="serverCount">00 servers</span></h4>
<progress class="serverPool" value="0" max="100"></progress>
<button class="refresh" onclick="refreshTable();">Refresh</button>
<button class="quickMatch" onclick="quickMatch();">Quick Match</button>
<button class="closeButton" onclick="closeBrowser();">Close<img class="controllerButton" src="images/360_Back.png"></button>
<button class="togglePartyList" onClick="showPartyList();">Party</button>
<!--<div id="connectionStatus"></div>-->
<button class="howToServe" onclick="howToServe();">How To Host</button>
<table id="serverTable" class="display" width="100%"></table>
<div id="gamecard">
</div>
<div id="extBorder">
<div id="extBorder2">
</div>
</div>
<button class="browserSwitch feeltrain" onclick="switchBrowser('theFeelTrain');">Switch to theFeelTrain</button>
<button class="browserSwitch dewmenu" onclick="switchBrowser('DewMenu');">Switch to DewMenu</button>
<div id="partyBorder">
<div id="partyHeader">Party List<button class="addPartyMember" onClick="showOnline();">+</button><button class="toggleChat" onClick="showChat();">Chat</button></div>
<div id="allOnline"></div>
<div id="party">
</div>
</div>
<div id="chatBorder">
<div id="chatHeader">Party Chat<button class="closeChat" onClick="showChat();">X</button></div>
<div id="chat">
</div>
<form name="message" action="">
<input name="usermsg" type="text" autocomplete="off" id="messageBox" size="63" />
<input name="submitmsg" type="button" id="submitButton" value="Send" onclick="chatInput(this.form.messageBox.value)"/>
</form>
</div>
<script id="gameinfo-template" type="text/x-handlebars-template">
<div id="cardheaderborder">
<div id="cardheader">
<div id="title"><b>{{capitalize variantType}} on {{map}}</b></div>
<img id="mappic" src="images/maps/{{lowerCase mapFile}}.png" onError="mapMatch(this, '{{mapFile}}');">
<img id="varpic" src="images/gametypes/{{lowerCase variantType}}.png">
</div>
</div>
<div id="scoreboard">
{{#if passworded}}
<b>Private Game</b>
{{else}}
<div id="scoreBoardHeader">Scoreboard {{scoreBoardPlus}}</div>
<table class="statBreakdown" style="{{scoreBoardHidden}}">
<thead class="tableHeader">
<th>Name</th>
<th><center>Score</center></th>
<th><center>K</center></th>
<th><center>D</center></th>
<th><center>A</center></th>
</thead>
<tbody>
{{#eachByScore players}}
{{#if name}}
<tr>
<td class="statLines">{{trimString this.name 0 100}}</td>
<td class="statLines"><center>{{score}}</center></td>
<td class="statLines"><center>{{kills}}</center></td>
<td class="statLines"><center>{{deaths}}</center></td>
<td class="statLines"><center>{{assists}}</center></td>
</tr>
{{/if}}
{{/eachByScore}}
</tbody>
</table>
{{/if}}
</div>
<div id="gameinfoborder">
<div id="gameinfo">
<div id="host"><b>Host: </b>{{trimString hostPlayer 0 100}}</div>
<div id="name"><b>Name: </b>{{trimString name 0 100}}</div>
<div id="voip"><b>VoIP: </b>
{{#if VoIP}}
Enabled
{{else}}
Disabled
{{/if}}
</div>
<div id="sprint"><b>Sprint: </b>
{{#ifCond sprintEnabled "1"}}
{{#ifCond sprintUnlimitedEnabled "1"}}
Unlimited
{{else}}
Enabled
{{/ifCond}}
{{else}}
Disabled
{{/ifCond}}
</div>
<div id="sprint"><b>Assassinations: </b>
{{#ifCond assassinationEnabled "0"}}
Disabled
{{else}}
Enabled
{{/ifCond}}
</div>
<div id="status"><b>Status: </b>
{{#ifCond status "InGame"}}
In Game
{{else}}
In Lobby
{{/ifCond}}
</div>
<div id="version"><b>Version: </b>{{eldewritoVersion}}</div>
</div>
</div>
</script>
<script>
var serverTemplateSource = $("#gameinfo-template").html();
var serverTemplate = Handlebars.compile(serverTemplateSource);
</script>
</body>
</html>