Commit 7811ff92 authored by Paul-Elliot Anglès d'Auriac's avatar Paul-Elliot Anglès d'Auriac
Browse files

meilleur affichage reponse à corriger

parent 66e42f14
......@@ -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
......
......@@ -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;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment