Bonjour à tous, je dois créer sur un site un petit module de tournois, et j'ai découvert le plugin jquery aropupu
http://www.aropupu.fi/bracket/#save
J'ai pris les codes donnés dans le release n°1
http://www.aropupu.fi/bracket/src/jquery.bracket-1.js
http://www.aropupu.fi/bracket/src/jquery.bracket-1.css
je les ai mis en ligne sur mon serveur, et j'ai créé un fichier index.php avec le code suivant
mon script a pour but de générer un bracket prédéfini, mais ma page reste blanche ....
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 <script type="text/javascript" src="jquery-1.6.2.min.js"></script> <script type="text/javascript" src="jquery.bracket-1.js"></script> <link rel="stylesheet" type="text/css" href="jquery.bracket-1.css" /> </head> <script> var singleElimination = { "teams": [ // Matchups ["Team 1", "Team 2"], // First match ["Team 3", "Team 4"] // Second match ], "results": [ // List of brackets (single elimination, so only one bracket) [ // List of rounds in bracket [ // First round in this bracket [1, 2], // Team 1 vs Team 2 [3, 4] // Team 3 vs Team 4 ], [ // Second (final) round in single elimination bracket [5, 6], // Match for first place [7, 8] // Match for 3rd place ] ] ] } </script>
Je vous remercie pour votre aide
Partager