Commit 62c5b764 authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

update feedbacks checkword

parent ebad5ecd
......@@ -1258,24 +1258,41 @@ async function reqWiki(word,phono,lang,listSpans,fin) {
if (el.classList[0]=="carte" || el.classList[0]=="carteZh") {
el.classList.remove("FBortho");
el.classList.remove("FBphonoCarte");
if (!data.rep.w && !el.classList.contains('carte')) {
el.classList.remove("FBphonoGraphCarte");
if (!el.classList.contains('carte') && !data.rep.w) {
el.classList.add("FBortho");
title.push("L'orthographe de ce mot n'est pas attestée dans le dictionnaire de WikiColor.")
title.push("ORTHO X")
}
if (!data.rep.t) {
el.classList.add("FBphonoCarte");
title.push("La suite de sons de ce mot n'est pas attestée dans le dictionnaire de WikiColor.")
if (!data.rep.wt) {
if (!data.rep.t) {
el.classList.add("FBphonoCarte");
title.push("PHONO X")
} else {
el.classList.add("FBphonoGraphCarte");
title.push("PHONOGRAPH X")
}
}
} else {
el.classList.remove("FBortho");
el.classList.remove("FBphono");
el.classList.remove("FBphonoGraph");
if (!data.rep.w) {
if (!el.classList.contains('carte') && !data.rep.w) {
el.classList.add("FBortho");
title.push("L'orthographe de ce mot n'est pas attestée dans le dictionnaire de WikiColor.")
}
if (!data.rep.t) {
el.classList.add("FBphonoGraph");
title.push("La suite de sons de ce mot n'est pas attestée dans le dictionnaire de WikiColor.")
title.push("ORTHO X")
}
if (!data.rep.wt) {
if (!data.rep.t) {
el.classList.add("FBphono");
title.push("PHONO X")
} else {
el.classList.add("FBphonoGraph");
title.push("PHONOGRAPH X")
}
}
}
el.title = title.join("\n");
......
......@@ -299,6 +299,40 @@ footer {
margin-right: auto;
}
.FBortho {
border-bottom: 3px red solid;
}
.FBphono {
position: relative;
padding: 0em;
}
.FBphono:after {
content: '';
position: absolute;
left: 0;
bottom: 2px;
width: 100%;
height: 3px;
background: repeating-linear-gradient(90deg, red, red 10px, transparent 5px, transparent 15px);
}
.FBphonoGraph{
position: relative;
padding: 0em;
}
.FBphonoGraph:after {
content: '';
position: absolute;
left: 0;
bottom: 2px;
width: 100%;
height: 3px;
background: repeating-linear-gradient(90deg, orange, orange 3px, transparent 4px, transparent 7px);
}
.FBphonoCarte{
position: relative;
padding: 0em;
......@@ -310,27 +344,24 @@ footer {
bottom: -10px;
width: 100%;
height: 3px;
background: repeating-linear-gradient(90deg, red, red 6px, transparent 4px, transparent 10px);
background: repeating-linear-gradient(90deg, red, red 10px, transparent 5px, transparent 15px);
}
.FBortho {
border-bottom: 3px red solid;
}
.FBphonoGraph{
.FBphonoGraphCarte{
position: relative;
padding: 0em;
}
.FBphonoGraph:after {
.FBphonoGraphCarte:after {
content: '';
position: absolute;
left: 0;
bottom: 2px;
width: 100%;
height: 3px;
background: repeating-linear-gradient(90deg, red, red 6px, transparent 4px, transparent 10px);
background: repeating-linear-gradient(90deg, orange, orange 6px, transparent 4px, transparent 10px);
}
.checkWordCheck {
outline: rgba(0, 128, 0, 0.473) 5px solid;
}
......
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