Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
wikicolor
Commits
c7b00168
Commit
c7b00168
authored
Mar 07, 2021
by
Sylvain Coulange
Browse files
Ajout fonction copier-coller en monochrome
parent
82be5a92
Changes
2
Hide whitespace changes
Inline
Side-by-side
static/scripts/main.js
View file @
c7b00168
...
...
@@ -677,6 +677,7 @@ function getPopUp() {
for
(
i
=
0
;
i
<
phonclasses
.
length
;
i
++
)
{
if
(
phonclasses
[
i
].
match
(
/phon_.*/
))
phonClass
=
phonclasses
[
i
];
if
(
phonclasses
[
i
].
match
(
/bicolor
\d
/
))
phonClass
=
phonclasses
[
i
];
if
(
phonclasses
[
i
].
match
(
/monochrome/
))
phonClass
=
"
#ffffff
"
;
}
if
(
phonClass
!=
""
)
newOutputSpan
+=
phon2color
(
phonClass
);
...
...
@@ -721,9 +722,12 @@ function getPopUp() {
for
(
i
=
0
;
i
<
phonclasses
.
length
;
i
++
)
{
if
(
phonclasses
[
i
].
match
(
/phon_.*/
))
phonClass
=
phonclasses
[
i
];
if
(
phonclasses
[
i
].
match
(
/bicolor
\d
/
))
phonClass
=
phonclasses
[
i
];
if
(
phonclasses
[
i
].
match
(
/monochrome/
))
phonClass
=
"
#ffffff
"
;
}
if
(
phonClass
.
match
(
/.*_long/
))
newOutputSpan
+=
expLong
;
if
(
phonClass
!=
""
)
newOutputSpan
+=
phon2color
(
phonClass
);
if
(
phonClass
==
"
#ffffff
"
)
{
newOutputSpan
+=
"
color:#ffffff;
"
}
else
if
(
phonClass
!=
""
)
newOutputSpan
+=
phon2color
(
phonClass
);
newOutputSpan
+=
"
'>
"
+
n
[
2
]
+
"
</span>
"
;
...
...
@@ -798,13 +802,8 @@ function toClipBoard(containerid,tooltipid) {
tooltip
.
innerHTML
=
"
Copié !
"
;
}
function
outFunc
()
{
var
tooltip
=
document
.
getElementById
(
"
myTooltip
"
);
tooltip
.
innerHTML
=
"
Copier
"
;
}
function
outFuncWhite
()
{
var
tooltip
=
document
.
getElementById
(
"
myTooltipWhite
"
);
function
outFunc
(
tooltipid
)
{
var
tooltip
=
document
.
getElementById
(
tooltipid
);
tooltip
.
innerHTML
=
"
Copier
"
;
}
...
...
static/styles/styles.css
View file @
c7b00168
...
...
@@ -205,7 +205,8 @@ svg { /* vient écraser le background black de phonochromie-alem.css*/
}
.divInfoWiki
{
margin
:
10px
20px
;
margin
:
20px
auto
;
max-width
:
1000px
;
font-size
:
1em
;
font-style
:
italic
;
}
...
...
Write
Preview
Markdown
is supported
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