Brendan Abolivier 10 lat temu
rodzic
commit
173e5f5480
10 zmienionych plików z 32 dodań i 22 usunięć
  1. 7
    0
      web/css/main.css
  2. 4
    0
      web/index.htm
  3. 1
    0
      web/js/multi.js
  4. 3
    3
      web/multi.php
  5. 4
    0
      web/palmares.htm
  6. 4
    0
      web/play.htm
  7. 7
    3
      web/rules.htm
  8. 0
    14
      web/sonar-project.properties
  9. 1
    1
      web/sql/CTITbq.sql
  10. 1
    1
      web/sql/ITbq.sql

+ 7
- 0
web/css/main.css Wyświetl plik

204
   font-size: 120%;
204
   font-size: 120%;
205
 }
205
 }
206
 
206
 
207
+footer {
208
+  text-align:center;
209
+  margin-top:30px;
210
+  margin-bottom:20px;
211
+  font-size:80%;
212
+}
213
+
207
 @media all and (max-width: 799px) {
214
 @media all and (max-width: 799px) {
208
   header {
215
   header {
209
     background-size: 68%;
216
     background-size: 68%;

+ 4
- 0
web/index.htm Wyświetl plik

57
      	</div>
57
      	</div>
58
       </article>
58
       </article>
59
     </div>
59
     </div>
60
+    <footer>
61
+      <p>Développé avec amour par <a href="http://www.brendanabolivier.com/" target="_blank">Brendan Abolivier</a> et <a href="http://www.josephcaillet.fr/" target="_blank">Joseph Caillet</a><br />
62
+      Disponible librement sur <a href="https://github.com/babolivier/burger-quizz" target="_blank">GitHub</a></p>
63
+    </footer>
60
   </body>
64
   </body>
61
 </html>
65
 </html>

+ 1
- 0
web/js/multi.js Wyświetl plik

17
 function init() {
17
 function init() {
18
 
18
 
19
     var hostname = $('script')[$('script').length-3]['src'].match(/http:\/\/(.+)\:/)[1];
19
     var hostname = $('script')[$('script').length-3]['src'].match(/http:\/\/(.+)\:/)[1];
20
+    var hostname = $('script')[$('script').length-3]['src'].match(/http:\/\/(.+)\:(.+)\//)[1];
20
 
21
 
21
     // Connexion à socket.io
22
     // Connexion à socket.io
22
     socket = io.connect('http://'+hostname+':8000');
23
     socket = io.connect('http://'+hostname+':8000');

+ 3
- 3
web/multi.php Wyświetl plik

45
         </script>
45
         </script>
46
       </p>
46
       </p>
47
     </section>
47
     </section>
48
-    <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
49
       <?php
48
       <?php
50
         $params = file_get_contents("./params.cfg");
49
         $params = file_get_contents("./params.cfg");
51
-    	   preg_match_all('/node_host\: (.+)/', $params, $matches);
52
-         echo '<script src="http://'.$matches[1][0].':8000/socket.io/socket.io.js"></script>';
50
+    	   preg_match_all('/node_host\: (.+)/', $params, $host);
51
+         preg_match_all('/node_port\: (.+)/', $params, $port);
52
+         echo '<script src="http://'.$host[1][0].':'.$port[1][0].'/socket.io/socket.io.js"></script>';
53
       ?>
53
       ?>
54
     <script src="js/multi.js"></script>
54
     <script src="js/multi.js"></script>
55
     <script>
55
     <script>

+ 4
- 0
web/palmares.htm Wyświetl plik

43
         }
43
         }
44
       });
44
       });
45
     </script>
45
     </script>
46
+    <footer>
47
+      <p>Développé avec amour par <a href="http://www.brendanabolivier.com/" target="_blank">Brendan Abolivier</a> et <a href="http://www.josephcaillet.fr/" target="_blank">Joseph Caillet</a><br />
48
+      Disponible librement sur <a href="https://github.com/babolivier/burger-quizz" target="_blank">GitHub</a></p>
49
+    </footer>
46
   </body>
50
   </body>
47
 </html>
51
 </html>

+ 4
- 0
web/play.htm Wyświetl plik

52
         </div>
52
         </div>
53
       </article>
53
       </article>
54
     </div>
54
     </div>
55
+    <footer>
56
+      <p>Développé avec amour par <a href="http://www.brendanabolivier.com/" target="_blank">Brendan Abolivier</a> et <a href="http://www.josephcaillet.fr/" target="_blank">Joseph Caillet</a><br />
57
+      Disponible librement sur <a href="https://github.com/babolivier/burger-quizz" target="_blank">GitHub</a></p>
58
+    </footer>
55
   </body>
59
   </body>
56
 </html>
60
 </html>

+ 7
- 3
web/rules.htm Wyświetl plik

32
     <div id="page">
32
     <div id="page">
33
       <article>
33
       <article>
34
         <h2>Règles</h2>
34
         <h2>Règles</h2>
35
-        <p>Quand une question vous est posée, 2 réponses vous sont proposées: choisissez en une, ou choisissez les deux. Dépéchez vous, vous avez cinq secondes pour répondre!</p>
36
-        <p>Vous pouvez jouer à un ou à deux joueurs: en mode un joueur, vous répondez seul au question, et pouvez enregistrer votre score en fin de partie. En mode deux joueurs, vous avez chacuns les mêmes questions. Quand un joueur répond, il gagne des points, mais s'il répond mal, c'est son adversaire qui prend les points! Dans tout les cas, les deux joueurs passent à la question suivante.</p>
37
-        <p>Calcul du score: pour chaque bonne réponses vous gagnez un point plus le nombre de secondes restantes.</p>
35
+        <p>Le "Sel ou Poivre" est une épreuve de rapidité. Vous allez avoir une série de questions posées, réparties en thèmes et en catégories, auxquelles vous aurez 5 secondes pour répondre. Quand une question vous est posée, 2 réponses vous sont proposées : choisissez en une, ou choisissez les deux.</p>
36
+        <p>Si vous avez répondu correctement à une question, votre score augmentera d'un point auquel sera additionné le nombre de secondes restantes sur le chronomètre.</p>
37
+        <p>Vous pouvez jouer à un ou à deux joueurs : en mode un joueur, vous répondez seul au question, et pouvez enregistrer votre score en fin de partie. En mode deux joueurs, vous avez chacuns les mêmes questions. Quand un joueur répond, il gagne des points, mais s'il répond mal, c'est son adversaire qui prend les points ! Dans tout les cas, les deux joueurs passent à la question suivante.</p>
38
       </article>
38
       </article>
39
     </div>
39
     </div>
40
+    <footer>
41
+      <p>Développé avec amour par <a href="http://www.brendanabolivier.com/" target="_blank">Brendan Abolivier</a> et <a href="http://www.josephcaillet.fr/" target="_blank">Joseph Caillet</a><br />
42
+      Disponible librement sur <a href="https://github.com/babolivier/burger-quizz" target="_blank">GitHub</a></p>
43
+    </footer>
40
   </body>
44
   </body>
41
 </html>
45
 </html>

+ 0
- 14
web/sonar-project.properties Wyświetl plik

1
-# must be unique in a given SonarQube instance
2
-sonar.projectKey=burgerquizzphp
3
-# this is the name displayed in the SonarQube UI
4
-sonar.projectName=BurgerQuizz PHP
5
-sonar.projectVersion=1.0
6
- 
7
-# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
8
-# Since SonarQube 4.2, this property is optional if sonar.modules is set. 
9
-# If not set, SonarQube starts looking for source code from the directory containing 
10
-# the sonar-project.properties file.
11
-sonar.sources=./api
12
- 
13
-# Encoding of the source code. Default is default system encoding
14
-#sonar.sourceEncoding=UTF-8

+ 1
- 1
web/sql/CTITbq.sql Wyświetl plik

66
 ('azerty', 28),
66
 ('azerty', 28),
67
 ('David', 19),
67
 ('David', 19),
68
 ('Dragavnir', 666),
68
 ('Dragavnir', 666),
69
-('Finistère', 29),
69
+('Finistere', 29),
70
 ('Joseph', 42),
70
 ('Joseph', 42),
71
 ('K.S.', 20),
71
 ('K.S.', 20),
72
 ('Loic', 10),
72
 ('Loic', 10),

+ 1
- 1
web/sql/ITbq.sql Wyświetl plik

38
 ('azerty', 28),
38
 ('azerty', 28),
39
 ('David', 19),
39
 ('David', 19),
40
 ('Dragavnir', 666),
40
 ('Dragavnir', 666),
41
-('Finistère', 29),
41
+('Finistere', 29),
42
 ('Joseph', 42),
42
 ('Joseph', 42),
43
 ('K.S.', 20),
43
 ('K.S.', 20),
44
 ('Loic', 10),
44
 ('Loic', 10),