Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

309 lines
7.5 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Contains text files that are embedded into the source code so that
  4. // only the exe needs to be distributed.
  5. //
  6. // $Workfile: $
  7. // $Date: $
  8. //
  9. //------------------------------------------------------------------------------------------------------
  10. // $Log: $
  11. //
  12. // $NoKeywords: $
  13. //=============================================================================//
  14. #include "TFStatsReport.h"
  15. #ifdef WIN32
  16. #define LBR \
  17. #else
  18. #define LBR
  19. #endif
  20. //the support.js file contains the implementation of a SuperImage object used
  21. //for the buttons on the nav bar that light up
  22. char* CTFStatsReport::javaScriptSource=
  23. "function BrowserType()\n"LBR
  24. "{\n"LBR
  25. " this.isIE5=false;\n"LBR
  26. " this.isIEx=false;\n"LBR
  27. "}\n"LBR
  28. "\n"LBR
  29. "new BrowserType();\n"LBR
  30. "function BrowserType_VerifyIE5() \n"LBR
  31. "{\n"LBR
  32. " if (navigator.appName == \"Microsoft Internet Explorer\")\n"LBR
  33. " {\n"LBR
  34. " this.isIEx=true;\n"LBR
  35. " if (navigator.appVersion.indexOf(\"MSIE 5.0\") != -1)\n"LBR
  36. " {\n"LBR
  37. " this.isIE5=true\n"LBR
  38. " }\n"LBR
  39. " }\n"LBR
  40. " else\n"LBR
  41. " {\n"LBR
  42. " this.isIEx=false;\n"LBR
  43. " this.isIE5=false;\n"LBR
  44. " }\n"LBR
  45. "// alert(\"IE5 = \" + this.isIE5.toString() + \"\\n\" + \"IE=\" + this.isIEx.toString() );\n"LBR
  46. "}\n"LBR
  47. "BrowserType.prototype.VerifyIE5=BrowserType_VerifyIE5;\n"LBR
  48. "\n"LBR
  49. "function BrowserType_getDetailBorder()\n"LBR
  50. "{\n"LBR
  51. " if (!this.isIEx)\n"LBR
  52. " return \"border=1\";\n"LBR
  53. " else if (this.isIEx && !this.isIE5)\n"LBR
  54. " return \"border=1\";\n"LBR
  55. "}\n"LBR
  56. "BrowserType.prototype.getDetailBorder=BrowserType_getDetailBorder;\n"LBR
  57. "function BrowserType_writeDetailTableTag(tableWid, numrows, numcols)\n"LBR
  58. "{\n"LBR
  59. " if (!this.isIE5)\n"LBR
  60. " document.write(\"<table width= \"+tableWid.toString() + \" bordercolor=#999999 border=1 cellspacing=0 cellpadding=5 rows=\"+ numrows.toString() + \" cols=\"+ numcols.toString() + \">\\n\");\n"LBR
  61. " else \n"LBR
  62. " document.write(\"<table width= \"+tableWid.toString() + \" bordercolor=#999999 border=0 cellspacing=0 cellpadding=5 rows=\"+ numrows.toString() + \" cols=\"+ numcols.toString() + \">\\n\");\n"LBR
  63. "}\n"LBR
  64. "BrowserType.prototype.writeDetailTableTag=BrowserType_writeDetailTableTag;\n"LBR
  65. "\n"LBR
  66. "\n"LBR
  67. "\n"LBR
  68. "\n"LBR
  69. "function SuperImage(imgName,onsrc,offsrc)\n"LBR
  70. "{\n"LBR
  71. " this.HTMLimgName=imgName;\n"LBR
  72. " this.onSrc=onsrc;\n"LBR
  73. " this.offSrc=offsrc;\n"LBR
  74. " this.selected=false;\n"LBR
  75. " this.hover=false;\n"LBR
  76. "// alert(this.HTMLimgName.toString());\n"LBR
  77. "// alert(this.offSrc.toString());\n"LBR
  78. "// alert(this.onSrc.toString());\n"LBR
  79. "}\n"LBR
  80. "\n"LBR
  81. " new SuperImage(\"crap\",\"crapon.gif\",\"crapoff.gif\");\n"LBR
  82. "\n"LBR
  83. "function SuperImage_over()\n"LBR
  84. "{\n"LBR
  85. " this.hover=true;\n"LBR
  86. "// alert(\"blap\");\n"LBR
  87. " this.update();\n"LBR
  88. "}\n"LBR
  89. "SuperImage.prototype.over=SuperImage_over;\n"LBR
  90. " \n"LBR
  91. "function SuperImage_on()\n"LBR
  92. "{\n"LBR
  93. " this.selected=true;\n"LBR
  94. " this.update();\n"LBR
  95. "}\n"LBR
  96. "SuperImage.prototype.on=SuperImage_on;\n"LBR
  97. "\n"LBR
  98. "function SuperImage_off()\n"LBR
  99. "{\n"LBR
  100. " this.selected=false;\n"LBR
  101. " this.update();\n"LBR
  102. "}\n"LBR
  103. "SuperImage.prototype.off=SuperImage_off;\n"LBR
  104. "\n"LBR
  105. "function SuperImage_out()\n"LBR
  106. "{\n"LBR
  107. " this.hover=false;\n"LBR
  108. " this.update();\n"LBR
  109. "}\n"LBR
  110. "SuperImage.prototype.out=SuperImage_out;\n"LBR
  111. "\n"LBR
  112. "function SuperImage_update()\n"LBR
  113. "{\n"LBR
  114. " if (document.images)\n"LBR
  115. " { \n"LBR
  116. " if (this.hover == true || this.selected == true)\n"LBR
  117. " document[this.HTMLimgName].src = this.onSrc;\n"LBR
  118. " else\n"LBR
  119. " document[this.HTMLimgName].src = this.offSrc; \n"LBR
  120. " }\n"LBR
  121. "}\n"LBR
  122. "SuperImage.prototype.update=SuperImage_update;\n"LBR
  123. "\n";
  124. //the style sheet for the TFStats report. All the html files link to this
  125. //and glean informationa bout how they should format data based on
  126. //data in this file
  127. char* CTFStatsReport::styleSheetSource=
  128. "A:link\n"LBR
  129. "{\n"LBR
  130. " TEXT-DECORATION: none\n"LBR
  131. "}\n"LBR
  132. "A:hover\n"LBR
  133. "{\n"LBR
  134. " TEXT-DECORATION: underline\n"LBR
  135. "}\n"LBR
  136. ".nav\n"LBR
  137. "{\n"LBR
  138. " MARGIN-LEFT: 20px;\n"LBR
  139. " MARGIN-RIGHT: 20px;\n"LBR
  140. " MARGIN-TOP: 24px\n"LBR
  141. "}\n"LBR
  142. ".headline\n"LBR
  143. "{\n"LBR
  144. " COLOR: #ffffff;\n"LBR
  145. " FONT: bold 18pt arial,helvetica;\n"LBR
  146. " MARGIN-RIGHT: 20px;\n"LBR
  147. " MARGIN-TOP: 20px\n"LBR
  148. "}\n"LBR
  149. ".headline2\n"LBR
  150. "{\n"LBR
  151. " COLOR: #b1a976;\n"LBR
  152. " FONT: bold 18pt arial,helvetica;\n"LBR
  153. " MARGIN-RIGHT: 20px;\n"LBR
  154. " MARGIN-TOP: 20px\n"LBR
  155. "}\n"LBR
  156. ".awards\n"LBR
  157. "{\n"LBR
  158. " COLOR: #818358;\n"LBR
  159. " FONT: bold 9pt arial,helvetica;\n"LBR
  160. " MARGIN-LEFT: 10px;\n"LBR
  161. " MARGIN-RIGHT: 20px\n"LBR
  162. "}\n"LBR
  163. ".brightawards\n"LBR
  164. "{\n"LBR
  165. " COLOR: #b1a976;\n"LBR
  166. " FONT: bold 9pt arial,helvetica\n"LBR
  167. "}\n"LBR
  168. ".awards2\n"LBR
  169. "{\n"LBR
  170. " COLOR: #818358;\n"LBR
  171. " FONT: bold 9pt arial,helvetica\n"LBR
  172. "}\n"LBR
  173. ".scores\n"LBR
  174. "{\n"LBR
  175. " COLOR: #ffffff;\n"LBR
  176. " FONT: bold 8pt arial,helvetica;\n"LBR
  177. " MARGIN-LEFT: 10px\n"LBR
  178. "}\n"LBR
  179. ".header\n"LBR
  180. "{\n"LBR
  181. " BACKGROUND: #646464;\n"LBR
  182. " COLOR: #ffffff;\n"LBR
  183. " FONT: bold 10pt arial,helvetica\n"LBR
  184. "}\n"LBR
  185. ".playerblue\n"LBR
  186. "{\n"LBR
  187. " COLOR: #7c9fd9;\n"LBR
  188. " FONT-SIZE: 9pt;\n"LBR
  189. " FONT-WEIGHT: bold\n"LBR
  190. "}\n"LBR
  191. ".playerred\n"LBR
  192. "{\n"LBR
  193. " COLOR: #a95d26;\n"LBR
  194. " FONT-SIZE: 9pt;\n"LBR
  195. " FONT-WEIGHT: bold\n"LBR
  196. "}\n"LBR
  197. ".scores HR\n"LBR
  198. "{\n"LBR
  199. " COLOR: #646464;\n"LBR
  200. " HEIGHT: 1px\n"LBR
  201. "}\n"LBR
  202. ".server\n"LBR
  203. "{\n"LBR
  204. " COLOR: #ffffff;\n"LBR
  205. " FONT: 22pt impact,arial,helvetica;\n"LBR
  206. " MARGIN-LEFT: 211px;\n"LBR
  207. " MARGIN-RIGHT: 20px;\n"LBR
  208. " MARGIN-TOP: 10px\n"LBR
  209. "}\n"LBR
  210. ".match\n"LBR
  211. "{\n"LBR
  212. " COLOR: #ffffff;\n"LBR
  213. " FONT: 13pt impact,arial,helvetica;\n"LBR
  214. " MARGIN-LEFT: 211px;\n"LBR
  215. " MARGIN-RIGHT: 20px\n"LBR
  216. "}\n"LBR
  217. ".dialog\n"LBR
  218. "{\n"LBR
  219. " FONT-FAMILY: Arial;\n"LBR
  220. " FONT-SIZE: 9pt;\n"LBR
  221. " FONT-WEIGHT: bold;\n"LBR
  222. " MARGIN-LEFT: 10px\n"LBR
  223. "}\n"LBR
  224. ".cvar\n"LBR
  225. "{\n"LBR
  226. " COLOR: #857e59;\n"LBR
  227. " FONT-FAMILY: Arial;\n"LBR
  228. " FONT-SIZE: 9pt;\n"LBR
  229. " FONT-WEIGHT: bold\n"LBR
  230. "}\n"LBR
  231. ".boardcell_br\n"LBR
  232. "{\n"LBR
  233. " BORDER-BOTTOM: gray 2px solid;\n"LBR
  234. " BORDER-LEFT: gray 2px;\n"LBR
  235. " BORDER-RIGHT: gray 2px solid;\n"LBR
  236. " BORDER-TOP: gray 2px\n"LBR
  237. "}\n"LBR
  238. ".boardcell_r\n"LBR
  239. "{\n"LBR
  240. " BORDER-RIGHT: gray 2px solid\n"LBR
  241. "}\n"LBR
  242. ".boardcell_b\n"LBR
  243. "{\n"LBR
  244. " BORDER-BOTTOM: gray 2px solid\n"LBR
  245. "}\n"LBR
  246. ".boardtext\n"LBR
  247. "{\n"LBR
  248. " COLOR: white;\n"LBR
  249. " FONT-FAMILY: Arial;\n"LBR
  250. " FONT-SIZE: 9pt;\n"LBR
  251. " FONT-WEIGHT: bold\n"LBR
  252. "}\n"LBR
  253. "BODY\n"LBR
  254. "{\n"LBR
  255. " BACKGROUND-COLOR: black\n"LBR
  256. "}\n"LBR
  257. ".whitetext\n"LBR
  258. "{\n"LBR
  259. " COLOR: white;\n"LBR
  260. " FONT-FAMILY: Arial;\n"LBR
  261. " FONT-SIZE: 9pt;\n"LBR
  262. " FONT-WEIGHT: bold\n"LBR
  263. "}\n"LBR
  264. ".playerblue2\n"LBR
  265. "{\n"LBR
  266. " COLOR: #7c9fd9;\n"LBR
  267. " FONT-WEIGHT: bold\n"LBR
  268. "}\n"LBR
  269. ".playerred2\n"LBR
  270. "{\n"LBR
  271. " COLOR: #a95d26;\n"LBR
  272. " FONT-WEIGHT: bold\n"LBR
  273. "}\n"LBR
  274. ".header2\n"LBR
  275. "{\n"LBR
  276. " BACKGROUND-COLOR: #646464;\n"LBR
  277. " COLOR: #ffffff;\n"LBR
  278. " FONT-FAMILY: Arial;\n"LBR
  279. " FONT-STYLE: normal;\n"LBR
  280. " FONT-VARIANT: normal;\n"LBR
  281. " FONT-WEIGHT: bold\n"LBR
  282. "}\n"LBR
  283. ".playeryellow2\n"LBR
  284. "{\n"LBR
  285. " COLOR: #dfc500;\n"LBR
  286. " FONT-WEIGHT: bold\n"LBR
  287. "}\n"LBR
  288. ".playergreen2\n"LBR
  289. "{\n"LBR
  290. " COLOR: #4d8a58;\n"LBR
  291. " FONT-WEIGHT: bold\n"LBR
  292. "}\n"LBR
  293. ".playeryellow\n"LBR
  294. "{\n"LBR
  295. " COLOR: #dfc500;\n"LBR
  296. " FONT-SIZE: 9pt;\n"LBR
  297. " FONT-WEIGHT: bold\n"LBR
  298. "}\n"LBR
  299. ".playergreen\n"LBR
  300. "{\n"LBR
  301. " COLOR: #4d8a58;\n"LBR
  302. " FONT-SIZE: 9pt;\n"LBR
  303. " FONT-WEIGHT: bold\n"LBR
  304. "}\n";