From 590fe5199e98bc75b40dee09618c5dcffe946d66 Mon Sep 17 00:00:00 2001 From: Tom <147888129+Treize-tx@users.noreply.github.com> Date: Thu, 23 Nov 2023 16:20:42 +0100 Subject: [PATCH] ADD: Bouton "Quitter" et affichage correct de la question dans la page scienceQuizz.html --- project/src/config/config.php | 4 ++-- project/src/model/mdl/MdlScienceQuizz.php | 1 - project/src/templates/scienceQuizz.html | 13 ++++--------- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/project/src/config/config.php b/project/src/config/config.php index 9f7240e..a4d2110 100755 --- a/project/src/config/config.php +++ b/project/src/config/config.php @@ -4,9 +4,9 @@ namespace config; $config = [ "rep" => __DIR__.'/../', - "db" => ["dsn" => 'pgsql:host=localhost;dbname=sae2a', + "db" => ["dsn" => 'pgsql:host=localhost;dbname=postgres', "login" => 'postgres', - "mdp" => 'SKf43V4hmD7a'], + "mdp" => 'root'], "templates" => ["index" => 'vues/index.php', "pseudo" => 'pseudo.html', "jouer" => "jouer.html", diff --git a/project/src/model/mdl/MdlScienceQuizz.php b/project/src/model/mdl/MdlScienceQuizz.php index 433ca1d..b99db6a 100644 --- a/project/src/model/mdl/MdlScienceQuizz.php +++ b/project/src/model/mdl/MdlScienceQuizz.php @@ -35,7 +35,6 @@ class MdlScienceQuizz */ public function getQuestions(): array { - var_dump($this->questions); return $this->questions; } diff --git a/project/src/templates/scienceQuizz.html b/project/src/templates/scienceQuizz.html index bdb191d..0afad17 100644 --- a/project/src/templates/scienceQuizz.html +++ b/project/src/templates/scienceQuizz.html @@ -19,11 +19,6 @@ text-align: center; } - .answer-button { - padding: 10px 20px; - font-size: 16px; - cursor: pointer; - } @@ -32,11 +27,11 @@

Science Quizz

Question {{ dVue.statJeu.numQuestion }}:

-

{{ dVue.statJeu.question.question }}

+

{{ dVue.statJeu.question }}

- -