Bladeren bron

Final commit

Brendan Abolivier 9 jaren geleden
bovenliggende
commit
173e5f5480
10 gewijzigde bestanden met toevoegingen van 32 en 22 verwijderingen
  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 Bestand weergeven

@@ -204,6 +204,13 @@ article#jouer {
204 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 214
 @media all and (max-width: 799px) {
208 215
   header {
209 216
     background-size: 68%;

+ 4
- 0
web/index.htm Bestand weergeven

@@ -57,5 +57,9 @@
57 57
      	</div>
58 58
       </article>
59 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 64
   </body>
61 65
 </html>

+ 1
- 0
web/js/multi.js Bestand weergeven

@@ -17,6 +17,7 @@ var againstLoser = false;
17 17
 function init() {
18 18
 
19 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 22
     // Connexion à socket.io
22 23
     socket = io.connect('http://'+hostname+':8000');

+ 3
- 3
web/multi.php Bestand weergeven

@@ -45,11 +45,11 @@
45 45
         </script>
46 46
       </p>
47 47
     </section>
48
-    <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
49 48
       <?php
50 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 54
     <script src="js/multi.js"></script>
55 55
     <script>

+ 4
- 0
web/palmares.htm Bestand weergeven

@@ -43,5 +43,9 @@
43 43
         }
44 44
       });
45 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 50
   </body>
47 51
 </html>

+ 4
- 0
web/play.htm Bestand weergeven

@@ -52,5 +52,9 @@
52 52
         </div>
53 53
       </article>
54 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 59
   </body>
56 60
 </html>

+ 7
- 3
web/rules.htm Bestand weergeven

@@ -32,10 +32,14 @@
32 32
     <div id="page">
33 33
       <article>
34 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 38
       </article>
39 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 44
   </body>
41 45
 </html>

+ 0
- 14
web/sonar-project.properties Bestand weergeven

@@ -1,14 +0,0 @@
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 Bestand weergeven

@@ -66,7 +66,7 @@ INSERT INTO `scores` (`login`, `score`) VALUES
66 66
 ('azerty', 28),
67 67
 ('David', 19),
68 68
 ('Dragavnir', 666),
69
-('Finistère', 29),
69
+('Finistere', 29),
70 70
 ('Joseph', 42),
71 71
 ('K.S.', 20),
72 72
 ('Loic', 10),

+ 1
- 1
web/sql/ITbq.sql Bestand weergeven

@@ -38,7 +38,7 @@ INSERT INTO `scores` (`login`, `score`) VALUES
38 38
 ('azerty', 28),
39 39
 ('David', 19),
40 40
 ('Dragavnir', 666),
41
-('Finistère', 29),
41
+('Finistere', 29),
42 42
 ('Joseph', 42),
43 43
 ('K.S.', 20),
44 44
 ('Loic', 10),