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
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Contains text files that are embedded into the source code so that
// only the exe needs to be distributed.
//
// $Workfile: $
// $Date: $
//
//------------------------------------------------------------------------------------------------------
// $Log: $
//
// $NoKeywords: $
//=============================================================================//
#include "TFStatsReport.h"
#ifdef WIN32
#define LBR \
#else
#define LBR
#endif
//the support.js file contains the implementation of a SuperImage object used
//for the buttons on the nav bar that light up
char* CTFStatsReport::javaScriptSource=
"function BrowserType()\n"LBR
"{\n"LBR
" this.isIE5=false;\n"LBR
" this.isIEx=false;\n"LBR
"}\n"LBR
"\n"LBR
"new BrowserType();\n"LBR
"function BrowserType_VerifyIE5() \n"LBR
"{\n"LBR
" if (navigator.appName == \"Microsoft Internet Explorer\")\n"LBR
" {\n"LBR
" this.isIEx=true;\n"LBR
" if (navigator.appVersion.indexOf(\"MSIE 5.0\") != -1)\n"LBR
" {\n"LBR
" this.isIE5=true\n"LBR
" }\n"LBR
" }\n"LBR
" else\n"LBR
" {\n"LBR
" this.isIEx=false;\n"LBR
" this.isIE5=false;\n"LBR
" }\n"LBR
"// alert(\"IE5 = \" + this.isIE5.toString() + \"\\n\" + \"IE=\" + this.isIEx.toString() );\n"LBR
"}\n"LBR
"BrowserType.prototype.VerifyIE5=BrowserType_VerifyIE5;\n"LBR
"\n"LBR
"function BrowserType_getDetailBorder()\n"LBR
"{\n"LBR
" if (!this.isIEx)\n"LBR
" return \"border=1\";\n"LBR
" else if (this.isIEx && !this.isIE5)\n"LBR
" return \"border=1\";\n"LBR
"}\n"LBR
"BrowserType.prototype.getDetailBorder=BrowserType_getDetailBorder;\n"LBR
"function BrowserType_writeDetailTableTag(tableWid, numrows, numcols)\n"LBR
"{\n"LBR
" if (!this.isIE5)\n"LBR
" document.write(\"<table width= \"+tableWid.toString() + \" bordercolor=#999999 border=1 cellspacing=0 cellpadding=5 rows=\"+ numrows.toString() + \" cols=\"+ numcols.toString() + \">\\n\");\n"LBR
" else \n"LBR
" document.write(\"<table width= \"+tableWid.toString() + \" bordercolor=#999999 border=0 cellspacing=0 cellpadding=5 rows=\"+ numrows.toString() + \" cols=\"+ numcols.toString() + \">\\n\");\n"LBR
"}\n"LBR
"BrowserType.prototype.writeDetailTableTag=BrowserType_writeDetailTableTag;\n"LBR
"\n"LBR
"\n"LBR
"\n"LBR
"\n"LBR
"function SuperImage(imgName,onsrc,offsrc)\n"LBR
"{\n"LBR
" this.HTMLimgName=imgName;\n"LBR
" this.onSrc=onsrc;\n"LBR
" this.offSrc=offsrc;\n"LBR
" this.selected=false;\n"LBR
" this.hover=false;\n"LBR
"// alert(this.HTMLimgName.toString());\n"LBR
"// alert(this.offSrc.toString());\n"LBR
"// alert(this.onSrc.toString());\n"LBR
"}\n"LBR
"\n"LBR
" new SuperImage(\"crap\",\"crapon.gif\",\"crapoff.gif\");\n"LBR
"\n"LBR
"function SuperImage_over()\n"LBR
"{\n"LBR
" this.hover=true;\n"LBR
"// alert(\"blap\");\n"LBR
" this.update();\n"LBR
"}\n"LBR
"SuperImage.prototype.over=SuperImage_over;\n"LBR
" \n"LBR
"function SuperImage_on()\n"LBR
"{\n"LBR
" this.selected=true;\n"LBR
" this.update();\n"LBR
"}\n"LBR
"SuperImage.prototype.on=SuperImage_on;\n"LBR
"\n"LBR
"function SuperImage_off()\n"LBR
"{\n"LBR
" this.selected=false;\n"LBR
" this.update();\n"LBR
"}\n"LBR
"SuperImage.prototype.off=SuperImage_off;\n"LBR
"\n"LBR
"function SuperImage_out()\n"LBR
"{\n"LBR
" this.hover=false;\n"LBR
" this.update();\n"LBR
"}\n"LBR
"SuperImage.prototype.out=SuperImage_out;\n"LBR
"\n"LBR
"function SuperImage_update()\n"LBR
"{\n"LBR
" if (document.images)\n"LBR
" { \n"LBR
" if (this.hover == true || this.selected == true)\n"LBR
" document[this.HTMLimgName].src = this.onSrc;\n"LBR
" else\n"LBR
" document[this.HTMLimgName].src = this.offSrc; \n"LBR
" }\n"LBR
"}\n"LBR
"SuperImage.prototype.update=SuperImage_update;\n"LBR
"\n";
//the style sheet for the TFStats report. All the html files link to this
//and glean informationa bout how they should format data based on
//data in this file
char* CTFStatsReport::styleSheetSource=
"A:link\n"LBR
"{\n"LBR
" TEXT-DECORATION: none\n"LBR
"}\n"LBR
"A:hover\n"LBR
"{\n"LBR
" TEXT-DECORATION: underline\n"LBR
"}\n"LBR
".nav\n"LBR
"{\n"LBR
" MARGIN-LEFT: 20px;\n"LBR
" MARGIN-RIGHT: 20px;\n"LBR
" MARGIN-TOP: 24px\n"LBR
"}\n"LBR
".headline\n"LBR
"{\n"LBR
" COLOR: #ffffff;\n"LBR
" FONT: bold 18pt arial,helvetica;\n"LBR
" MARGIN-RIGHT: 20px;\n"LBR
" MARGIN-TOP: 20px\n"LBR
"}\n"LBR
".headline2\n"LBR
"{\n"LBR
" COLOR: #b1a976;\n"LBR
" FONT: bold 18pt arial,helvetica;\n"LBR
" MARGIN-RIGHT: 20px;\n"LBR
" MARGIN-TOP: 20px\n"LBR
"}\n"LBR
".awards\n"LBR
"{\n"LBR
" COLOR: #818358;\n"LBR
" FONT: bold 9pt arial,helvetica;\n"LBR
" MARGIN-LEFT: 10px;\n"LBR
" MARGIN-RIGHT: 20px\n"LBR
"}\n"LBR
".brightawards\n"LBR
"{\n"LBR
" COLOR: #b1a976;\n"LBR
" FONT: bold 9pt arial,helvetica\n"LBR
"}\n"LBR
".awards2\n"LBR
"{\n"LBR
" COLOR: #818358;\n"LBR
" FONT: bold 9pt arial,helvetica\n"LBR
"}\n"LBR
".scores\n"LBR
"{\n"LBR
" COLOR: #ffffff;\n"LBR
" FONT: bold 8pt arial,helvetica;\n"LBR
" MARGIN-LEFT: 10px\n"LBR
"}\n"LBR
".header\n"LBR
"{\n"LBR
" BACKGROUND: #646464;\n"LBR
" COLOR: #ffffff;\n"LBR
" FONT: bold 10pt arial,helvetica\n"LBR
"}\n"LBR
".playerblue\n"LBR
"{\n"LBR
" COLOR: #7c9fd9;\n"LBR
" FONT-SIZE: 9pt;\n"LBR
" FONT-WEIGHT: bold\n"LBR
"}\n"LBR
".playerred\n"LBR
"{\n"LBR
" COLOR: #a95d26;\n"LBR
" FONT-SIZE: 9pt;\n"LBR
" FONT-WEIGHT: bold\n"LBR
"}\n"LBR
".scores HR\n"LBR
"{\n"LBR
" COLOR: #646464;\n"LBR
" HEIGHT: 1px\n"LBR
"}\n"LBR
".server\n"LBR
"{\n"LBR
" COLOR: #ffffff;\n"LBR
" FONT: 22pt impact,arial,helvetica;\n"LBR
" MARGIN-LEFT: 211px;\n"LBR
" MARGIN-RIGHT: 20px;\n"LBR
" MARGIN-TOP: 10px\n"LBR
"}\n"LBR
".match\n"LBR
"{\n"LBR
" COLOR: #ffffff;\n"LBR
" FONT: 13pt impact,arial,helvetica;\n"LBR
" MARGIN-LEFT: 211px;\n"LBR
" MARGIN-RIGHT: 20px\n"LBR
"}\n"LBR
".dialog\n"LBR
"{\n"LBR
" FONT-FAMILY: Arial;\n"LBR
" FONT-SIZE: 9pt;\n"LBR
" FONT-WEIGHT: bold;\n"LBR
" MARGIN-LEFT: 10px\n"LBR
"}\n"LBR
".cvar\n"LBR
"{\n"LBR
" COLOR: #857e59;\n"LBR
" FONT-FAMILY: Arial;\n"LBR
" FONT-SIZE: 9pt;\n"LBR
" FONT-WEIGHT: bold\n"LBR
"}\n"LBR
".boardcell_br\n"LBR
"{\n"LBR
" BORDER-BOTTOM: gray 2px solid;\n"LBR
" BORDER-LEFT: gray 2px;\n"LBR
" BORDER-RIGHT: gray 2px solid;\n"LBR
" BORDER-TOP: gray 2px\n"LBR
"}\n"LBR
".boardcell_r\n"LBR
"{\n"LBR
" BORDER-RIGHT: gray 2px solid\n"LBR
"}\n"LBR
".boardcell_b\n"LBR
"{\n"LBR
" BORDER-BOTTOM: gray 2px solid\n"LBR
"}\n"LBR
".boardtext\n"LBR
"{\n"LBR
" COLOR: white;\n"LBR
" FONT-FAMILY: Arial;\n"LBR
" FONT-SIZE: 9pt;\n"LBR
" FONT-WEIGHT: bold\n"LBR
"}\n"LBR
"BODY\n"LBR
"{\n"LBR
" BACKGROUND-COLOR: black\n"LBR
"}\n"LBR
".whitetext\n"LBR
"{\n"LBR
" COLOR: white;\n"LBR
" FONT-FAMILY: Arial;\n"LBR
" FONT-SIZE: 9pt;\n"LBR
" FONT-WEIGHT: bold\n"LBR
"}\n"LBR
".playerblue2\n"LBR
"{\n"LBR
" COLOR: #7c9fd9;\n"LBR
" FONT-WEIGHT: bold\n"LBR
"}\n"LBR
".playerred2\n"LBR
"{\n"LBR
" COLOR: #a95d26;\n"LBR
" FONT-WEIGHT: bold\n"LBR
"}\n"LBR
".header2\n"LBR
"{\n"LBR
" BACKGROUND-COLOR: #646464;\n"LBR
" COLOR: #ffffff;\n"LBR
" FONT-FAMILY: Arial;\n"LBR
" FONT-STYLE: normal;\n"LBR
" FONT-VARIANT: normal;\n"LBR
" FONT-WEIGHT: bold\n"LBR
"}\n"LBR
".playeryellow2\n"LBR
"{\n"LBR
" COLOR: #dfc500;\n"LBR
" FONT-WEIGHT: bold\n"LBR
"}\n"LBR
".playergreen2\n"LBR
"{\n"LBR
" COLOR: #4d8a58;\n"LBR
" FONT-WEIGHT: bold\n"LBR
"}\n"LBR
".playeryellow\n"LBR
"{\n"LBR
" COLOR: #dfc500;\n"LBR
" FONT-SIZE: 9pt;\n"LBR
" FONT-WEIGHT: bold\n"LBR
"}\n"LBR
".playergreen\n"LBR
"{\n"LBR
" COLOR: #4d8a58;\n"LBR
" FONT-SIZE: 9pt;\n"LBR
" FONT-WEIGHT: bold\n"LBR
"}\n";
|