Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
Phonographe
Commits
77502f3e
Commit
77502f3e
authored
Aug 07, 2022
by
Sylvain Coulange
🌼
Browse files
màj checkword
parent
02cce411
Changes
1
Hide whitespace changes
Inline
Side-by-side
static/js/clavier.js
View file @
77502f3e
...
...
@@ -1255,46 +1255,29 @@ async function reqWiki(word,phono,lang,listSpans,fin) {
var
el
=
document
.
getElementById
(
span
);
var
title
=
[]
if
(
el
.
classList
[
0
]
==
"
carte
"
||
el
.
classList
[
0
]
==
"
carteZh
"
)
{
el
.
classList
.
remove
(
"
FBortho
"
);
el
.
classList
.
remove
(
"
FBphonoCarte
"
);
el
.
classList
.
remove
(
"
FBphonoGraphCarte
"
);
if
(
!
el
.
classList
.
contains
(
'
carte
'
)
&&
!
data
.
rep
.
w
)
{
el
.
classList
.
add
(
"
FBortho
"
);
title
.
push
(
"
Orthographe non attestée dans le dictionnaire.
"
)
}
if
(
!
data
.
rep
.
wt
)
{
if
(
!
data
.
rep
.
t
)
{
el
.
classList
.
add
(
"
FBphonoCarte
"
);
title
.
push
(
"
Phonologie non attestée dans le dictionnaire.
"
)
}
else
{
el
.
classList
.
add
(
"
FBphonoGraphCarte
"
);
title
.
push
(
"
Cette phonologie n'est pas attestée pour cette orthographe.
"
)
}
}
el
.
classList
.
remove
(
"
FBortho
"
);
el
.
classList
.
remove
(
"
FBphonoCarte
"
);
el
.
classList
.
remove
(
"
FBphonoGraphCarte
"
);
el
.
classList
.
remove
(
"
FBphono
"
);
el
.
classList
.
remove
(
"
FBphonoGraph
"
);
}
else
{
el
.
classList
.
remove
(
"
FBortho
"
);
el
.
classList
.
remove
(
"
FBphono
"
);
el
.
classList
.
remove
(
"
FBphonoGraph
"
);
if
(
!
el
.
classList
.
contains
(
'
carte
'
)
&&
!
data
.
rep
.
w
)
{
el
.
classList
.
add
(
"
FBortho
"
);
title
.
push
(
"
Orthographe non attestée dans le dictionnaire.
"
)
}
if
(
!
data
.
rep
.
wt
)
{
if
(
!
data
.
rep
.
t
)
{
el
.
classList
.
add
(
"
FBphono
"
);
title
.
push
(
"
Phonologie non attestée dans le dictionnaire.
"
)
}
else
{
el
.
classList
.
add
(
"
FBphonoGraph
"
);
title
.
push
(
"
Cette phonologie n'est pas attestée pour cette orthographe.
"
)
}
}
if
(
!
data
.
rep
.
t
)
{
if
(
el
.
classList
[
0
]
==
"
carte
"
||
el
.
classList
[
0
]
==
"
carteZh
"
)
el
.
classList
.
add
(
"
FBphonoCarte
"
);
// que bouches et mandarin
else
el
.
classList
.
add
(
"
FBphono
"
);
title
.
push
(
"
problème de phonologie
"
)
}
if
(
!
data
.
rep
.
w
)
{
if
(
!
el
.
classList
.
contains
(
"
carte
"
))
el
.
classList
.
add
(
"
FBortho
"
);
// tous sauf bouches
title
.
push
(
"
problème d'orthographe
"
)
}
else
if
(
data
.
rep
.
t
&&
!
data
.
rep
.
wt
)
{
if
(
el
.
classList
[
0
]
==
"
carte
"
||
el
.
classList
[
0
]
==
"
carteZh
"
)
el
.
classList
.
add
(
"
FBphonoGraphCarte
"
);
// que bouches et mandarin
else
el
.
classList
.
add
(
"
FBphonoGraph
"
);
title
.
push
(
"
orthographe et phonologie existantes mais pas pour le même mot
"
)
}
el
.
title
=
title
.
join
(
"
\n
"
);
}
if
(
fin
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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