This repository has been archived by the owner on Feb 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
257 lines (233 loc) · 13.2 KB
/
index.html
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<!-- Pour s'assurer d'un affichage correct sur mobile -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Styles de Boostrap + Styles personnalisés provenant de styles.scss -->
<link rel="stylesheet" href="css/styles.css">
<!-- Nous n'aurons pas besoin de normalize.css, car il existe des styles
qui font la même chose dans Bootstrap (voir fichier _reboot.scss) -->
<meta name="description" content="Quiz interactifs sur la matière du cours Développement Web côté client" />
<meta name="author" content="Thierry Durand, Maxime Beauregard-Foisy et Ulric Huot" />
<script src="https://kit.fontawesome.com/979be9975a.js" crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous" />
<link rel="icon" href="favicon.ico" />
<title>Questionnaire formatif</title>
</head>
<body>
<header class="bg-primary">
<div class="d-flex justify-content-between align-items-center container bg-white" style="padding-inline: 5rem;">
<a href="#accordionFlushExample">
<h1 class="visually-hidden">Questionnaire formatif</h1>
<img class="bg-secondary" style="height: 5rem;" src="images/Logo-05B-dev-web-client.png"
alt="Lien vers les filtres">
</a>
<button class="btn btn-danger" id="btnMesReponse" disabled>Consulter mes réponses</button>
</div>
</header>
<main>
<div class="container">
<img class="img-fluid" src="images/hero.jpg" alt="bannière">
<div class="p-0 col-lg-12">
<h2 class="my-4">Questionnaire formatif</h2>
<div class="accordion accordion-flush mb-3" id="accordionFlushExample">
<div class="accordion-item rounded">
<h3 class="accordion-header">
<button class="accordion-button collapsed fs-3 rounded" type="button" data-bs-toggle="collapse"
data-bs-target="#flush-collapseOne" aria-expanded="false" aria-controls="flush-collapseOne"
id="btnFiltre">
Filtres de recherche
</button>
</h3>
<div id="flush-collapseOne" class="accordion-collapse collapse"
data-bs-parent="#accordionFlushExample">
<div class="accordion-body">
<form action="mailto:[email protected]" method="post">
<div class="row">
<div class="col-lg-6">
<fieldset>
<legend>Description</legend>
<div class="input-group">
<div class="form-outline">
<label class="form-label" for="motcle">Mot-Clé</label>
<input type="search" id="motcle" class="form-control" />
</div>
</div>
</fieldset>
<fieldset>
<legend>Modules</legend>
<label class="form-label" for="choixModule">Choix du module</label>
<select class="form-select" aria-label="Default select example" id="choixModule">
<option selected>Modules</option>
<option value="Révision">Module 1 -Révision-</option>
<option value="Optimisation CSS">Module 2 -Optimisation CSS-</option>
<option value="Normes d'accessibilité et de design UX">Module 3 -Normes
d'accessibilité et de design UX-</option>
<option value="Git en équipe">Module 4 -Git en équipe-</option>
<option value="Bibliothèque de développement d'infterfaces adptatives">Module 5
-Bibliothèque de développement d'infterfaces adptatives-</option>
<option value="Programmation JavaScript">Module 6 -Programmation JavaScript-
</option>
</select>
</fieldset>
</div>
<div class="col-lg-6 m-lg-0 p-0">
<fieldset id="categories">
<legend>Catégories</legend>
<div class="w-50">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="HTML"
id="HTML"></input>
<label class="form-check-label" for="HTML">
HTML
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="CSS" id="CSS"></input>
<label class="form-check-label" for="CSS">
CSS
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="Bootstrap"
id="Bootstrap"></input>
<label class="form-check-label" for="Bootstrap">
Bootstrap
</label>
</div>
</div>
<div class="w-50">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="Javascript"
id="Javascript" checked></input>
<label class="form-check-label" for="Javascript">
Javascript
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="Formulaires"
id="Formulaires"></input>
<label class="form-check-label" for="Formulaires">
Formulaires
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="Autres" id="Autres"
checked></input>
<label class="form-check-label" for="Autres">
Autres
</label>
</div>
</div>
</fieldset>
<button type="button" class="btn btn-primary" id="filtrer">Filtrer</button>
<button type="button" class="btn btn-primary" id="afficherTout" id>Tout
afficher</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="test"></div>
<div class="container">
<div class="questionnaire p-3 mb-3 rounded">
<h3 class="mb-3">Création du questionnaire</h3>
<p>Après voir utilisé les filtres, cliquez sur le bouton pour faire les test</p>
<p>Si vous ne filtrez pas, le test sera basé sur tous les modules.</p>
<div class="input-group mb-3">
<span id="NombreQuestions" class="input-group-text">Nombre de questions: </span>
<input type="number" class="form-control-inline" id="nbQuestions" name="nbQuestions" min="1" max="5"
value="1" aria-label="nbQuestions" aria-describedby="NombreQuestions">
</div>
<button type="button" class="btn btn-success" id="creationQuestionnaire">Créer questionnaire</button>
</div>
</div>
<section class="container">
<div id="modules" class="row">
</div>
</section>
<section class="container" id="sectionQuestionnaire">
<div class="row">
<h3 class="col-12">Questionnaire</h3>
<form action="#" method="post" class="col-12">
<fieldset class="border border-black border-3 container">
<div class="row">
<h4 id="titreQuestion" class="col-12 m-2"></h4>
</div>
<div class="row">
<p id="questionPoser" class="col-12 m-2"></p>
</div>
<div id="questionReponse" class="row">
</div>
<div class="row">
<button type="button" id="questionSuivante" class="btn btn-dark col-6 w-auto m-2"
data-bs-toggle="popover" data-bs-trigger="focus" data-bs-placement="top">
Valider et passer à la question suivante
</button>
<div id="afficherToast"></div>
<div id="contenu-popover-reponse" class="d-none">
<p>Pour consulter vos réponse, clicker sur le bouton "<a href="#btnMesReponse">Mes réponses</a>"
dans l'entête de cette page</p>
</div>
</div>
</fieldset>
</form>
</div>
</section>
</main>
<footer class="bg-secondary text-white">
<div class="container">
<div class="row mt-3 p-3">
<div class="col-4">
<p class="text-start m-0">05B.WEB2 | Développement Web côté client</p>
</div>
<div class="col-8 justify-content-end">
<p class="text-end m-0">©Copyright 2023 - Thierry Durand | Maxime Beauregard-Foisy | Ulric Huot -
Touts droits réservés</p>
</div>
</div>
</div>
</footer>
<div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvas" aria-labelledby="offcanvasLabel">
<div class="offcanvas-header">
<h3 class="offcanvas-title" id="offcanvasLabel"><em>Mes réponses</em></h3>
<!-- <button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button> -->
</div>
<div class="offcanvas-body">
<div id="content"></div>
<div class="border-top my-3"></div>
<h3>Envoyer mes résultats</h3>
<form>
<label for="nom">Nom :</label>
<input type="text" class="form-control" id="nom" name="nom">
<label for="courriel">Courriel :</label>
<input type="text" class="form-control" id="courriel" name="courriel">
<input type="button" class="form-control mt-4 bg-danger text-white" id="envoyer" value="Envoyer">
</form>
</div>
</div>
<!--LIEN VERS LES DONNÉES-->
<script src="js/data-quiz.js"></script>
<!--LIEN VERS UN FICHIER SCRIPT UTILITAIRES -->
<script src="js/fonctions-utilitaires.js"></script>
<!--LIEN VERS NOTRE FICHIER SCRIPT PRINCIPAL-->
<script src="js/javascript.js"></script>
<!------------------------------------------------------------------------------------
Si on a besoin des éléments interactifs de Bootstrap, on doit utiliser au minimum
le 2e script suivant (bootstrap.min.js) et parfois le 1er en plus (Popper)
intégrés dans cet ordre.
------------------------------------------------------------------------------------>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"
integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-BBtl+eGJRgqQAUMxJ7pMwbEyER4l1g+O15P+16Ep7Q9Q+zqX6gSbd85u4mG4QzX+"
crossorigin="anonymous"></script>
</body>
</html>