Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.77 KB | None | 0 0
  1. <?php
  2. include("../templates/header.inc.php")
  3. ?>
  4. <head>
  5. <title>Tournament Bracket</title>
  6. <script type="text/javascript" src="jquery-3.2.1.min.js"></script>
  7. <script type="text/javascript" src="jquery.bracket.min.js"></script>
  8. <link rel="stylesheet" type="text/css" href="jquery.bracket.min.css" />
  9. <!-- Bootstrap core CSS -->
  10. <link href="../css/bootstrap.css" rel="stylesheet">
  11. <link href="../css/bootstrap-theme.css" rel="stylesheet" >
  12.  
  13. <!-- Custom styles for this template -->
  14. <link href="../css/internal.css" rel="stylesheet">
  15.  
  16. <style>
  17. div.platz{
  18. margin-top:60px;
  19. }
  20.  
  21. div.label {
  22. color:#000000;
  23. }
  24. </style>
  25. </head>
  26.  
  27. <body>
  28.  
  29. <script type="text/javascript">
  30.  
  31. /* CSGO */
  32. var doubleEliminationData = {
  33. "teams": [ // Matchups
  34. ["Team 1", "Team 2" ],
  35. ["Team 3", "Team 4" ],
  36. ["Team 5", "Team 6" ],
  37. ["Team 7", "Team 8" ],
  38. ["Team 9", "Team 10" ],
  39. ["Team 9", null ],
  40. ["Team 9", "Team 10" ],[null, null ],
  41. // null = kein Gegner
  42.  
  43. ],
  44. "results": [ // List of brackets (single elimination, so only one bracket)
  45. [ // List of rounds in bracket
  46. [ // First round in this bracket
  47. [16, 0],
  48. [0, 16],
  49. [16, 0],
  50. [16, 0],
  51. [16, 0],
  52. [16, 0],
  53. [0, 16]
  54. ],
  55. [
  56. [16, 0],
  57. [16, 0],
  58. [0, 16]
  59. ],
  60. [
  61. [15, 0],
  62. [0, 16]
  63. ],
  64. [
  65. [15, 0],
  66. [0, 16]
  67. ]
  68. ]
  69. ]
  70. }
  71.  
  72. $(function() {
  73. $('#minimal .tournament').bracket({
  74. init: doubleEliminationData /* data to initialize the bracket with */ })
  75. })
  76.  
  77.  
  78. // These are modified by the sliders
  79. var resizeParameters = {
  80. teamWidth: 120, //Breite des Teamfensters
  81. scoreWidth: 30,
  82. matchMargin: 10,
  83. roundMargin: 50,
  84. init: doubleEliminationData
  85. };
  86.  
  87. function updateResizeDemo() {
  88. $('#resize .tournament').bracket(resizeParameters);
  89. }
  90. $(updateResizeDemo)
  91.  
  92. /*UT */
  93. var ut = {
  94. "teams": [ // Matchups
  95. ["Team 1", "Team 2" ],
  96. ["Team 3", "Team 4" ],
  97. ["Team 5", "Team 6" ],
  98. ["Team 7", "Team 8" ],
  99. ["Team 9", "Team 10" ],
  100. ["Team 9", null ],
  101. ["Team 9", "Team 10" ],[null, null ],
  102. // null = kein Gegner
  103.  
  104. ],
  105. "results": [ // List of brackets (single elimination, so only one bracket)
  106. [ // List of rounds in bracket
  107. [ // First round in this bracket
  108. [16, 0],
  109. [0, 16],
  110. [16, 0],
  111. [16, 0],
  112. [16, 0],
  113. [16, 0],
  114. [0, 16]
  115. ],
  116. [
  117. [16, 0],
  118. [16, 0],
  119. [0, 16]
  120. ],
  121. [
  122. [15, 0],
  123. [0, 16]
  124. ],
  125. [
  126. [15, 0],
  127. [0, 16]
  128. ]
  129. ]
  130. ]
  131. }
  132.  
  133. $(function() {
  134. $('#minimal .ut').bracket({
  135. init: doubleEliminationData /* data to initialize the bracket with */ })
  136. })
  137.  
  138.  
  139. // These are modified by the sliders
  140. var resizeParameters = {
  141. teamWidth: 120, //Breite des Teamfensters
  142. scoreWidth: 30,
  143. matchMargin: 10,
  144. roundMargin: 50,
  145. init: doubleEliminationData
  146. };
  147.  
  148. function updateResizeDemo() {
  149. $('#resize .ut').bracket(resizeParameters);
  150. }
  151. $(updateResizeDemo)
  152.  
  153. /*Quake Turnier */
  154. var quake = {
  155. "teams": [ // Matchups
  156. ["ADMINTABLE", "Team 2" ],
  157. ["Team 3", "Team 4" ],
  158. ["Team 5", "Team 6" ],
  159. ["Team 7", "Team 8" ],
  160. ["Team 9", "Team 10" ],
  161. ["Team 9", null ],
  162. ["Team 9", "Team 10" ],[null, null ],
  163. // null = kein Gegner
  164.  
  165. ],
  166. "results": [ // List of brackets (single elimination, so only one bracket)
  167. [ // List of rounds in bracket
  168. [ // First round in this bracket
  169. [16, 0],
  170. [0, 16],
  171. [16, 0],
  172. [16, 0],
  173. [16, 0],
  174. [16, 0],
  175. [0, 16]
  176. ],
  177. [
  178. [16, 0],
  179. [16, 0],
  180. [0, 16]
  181. ],
  182. [
  183. [15, 0],
  184. [0, 16]
  185. ],
  186. [
  187. [15, 0],
  188. [0, 16]
  189. ]
  190. ]
  191. ]
  192. }
  193.  
  194. $(function() {
  195. $('#minimal .quake').bracket({
  196. init: doubleEliminationData /* data to initialize the bracket with */ })
  197. })
  198.  
  199.  
  200. // These are modified by the sliders
  201. var resizeParameters = {
  202. teamWidth: 120, //Breite des Teamfensters
  203. scoreWidth: 30,
  204. matchMargin: 10,
  205. roundMargin: 50,
  206. init: doubleEliminationData
  207. };
  208.  
  209. function updateResizeDemo() {
  210. $('#resize .quake').bracket(resizeParameters);
  211. }
  212. $(updateResizeDemo)
  213. </script>
  214.  
  215. <div class="platz"></div>
  216. <div class="container main-container">
  217. <div class="container gamecontainer">
  218. <div class="panel panel-default" style="margin-left: 15px; margin-right: 15px">
  219.  
  220. <div class="panel-body serverpanelbody">
  221.  
  222. <h3 style="color:#fff">CSGO Turnier</h3>
  223.  
  224. <div id="minimal">
  225. <div id="resize">
  226. <div class="tournament">
  227.  
  228. </div>
  229. </div>
  230. </div>
  231.  
  232.  
  233. </div></div></div></div>
  234.  
  235. <div class="platz"></div>
  236.  
  237. <div class="platz"></div>
  238. <div class="container main-container">
  239. <div class="container gamecontainer">
  240. <div class="panel panel-default" style="margin-left: 15px; margin-right: 15px">
  241.  
  242. <div class="panel-body serverpanelbody">
  243.  
  244. <h3 style="color:#fff">LoL Turnier</h3>
  245.  
  246. <div id="minimal">
  247. <div id="resize">
  248. <div class="ut">
  249.  
  250. </div>
  251. </div>
  252. </div>
  253.  
  254.  
  255. </div></div></div></div>
  256.  
  257. <!-- <div class="platz"></div>
  258.  
  259. <div class="platz"></div>
  260. <div class="container main-container">
  261. <div class="container gamecontainer">
  262. <div class="panel panel-default" style="margin-left: 15px; margin-right: 15px">
  263.  
  264. <div class="panel-body serverpanelbody">
  265.  
  266. <h3 style="color:#fff">Quake Turnier</h3>
  267.  
  268. <div id="minimal">
  269. <div id="resize">
  270. <div class="quake">
  271.  
  272. </div>
  273. </div>
  274. </div>
  275.  
  276.  
  277. </div></div></div></div> -->
  278.  
  279.  
  280.  
  281. </body>
  282. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement