Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Paul-Elliot Anglès d'Auriac
class-panic
Commits
7811ff92
Commit
7811ff92
authored
Oct 22, 2018
by
Paul-Elliot Anglès d'Auriac
Browse files
meilleur affichage reponse à corriger
parent
66e42f14
Changes
2
Hide whitespace changes
Inline
Side-by-side
public/javascripts/student.js
View file @
7811ff92
...
...
@@ -85,12 +85,8 @@ socket.on('newQuestion', function (reponse, stats) {
elem
=
document
.
createElement
(
'
div
'
);
elem
.
classList
.
add
(
"
reponse
"
);
elem
.
classList
.
add
(
"
notSelected
"
);
if
(
rep
.
validity
==
"
true
"
)
{
elem
.
classList
.
add
(
"
vrai
"
)
}
if
(
rep
.
validity
==
"
false
"
)
{
elem
.
classList
.
add
(
"
faux
"
);
}
if
(
rep
.
validity
)
elem
.
classList
.
add
(
rep
.
validity
)
elem
.
id
=
"
r
"
+
index
;
// Si besoin est, ajout d'un event listener
...
...
public/stylesheets/play_student.css
View file @
7811ff92
...
...
@@ -59,9 +59,12 @@ html {
color
:
black
;
}
.
faux
{
.
true
{
box-shadow
:
0
0
8px
10px
red
;
}
.
vrai
{
.
false
{
box-shadow
:
0
0
8px
10px
green
;
}
.to_correct
{
box-shadow
:
0
0
8px
10px
black
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment