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
Pédagogies Multimodales
wikicolor
Commits
c0410d40
Commit
c0410d40
authored
Sep 30, 2021
by
Sylvain Coulange
Browse files
début exportlink()
parent
53a6e3eb
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
static/scripts/phonTables.js
View file @
c0410d40
This diff is collapsed.
Click to expand it.
static/scripts/styleCustomizer.js
View file @
c0410d40
...
...
@@ -51,6 +51,8 @@ function setPhon(phon) {
thisCSS
.
cssRules
[
r
].
style
[
'
stop-color
'
]
=
memClass
[
phon
][
'
stop-color
'
]
thisCSS
.
cssRules
[
r
].
style
[
'
-webkit-text-fill-color
'
]
=
memClass
[
phon
][
'
-webkit-text-fill-color
'
]
thisCSS
.
cssRules
[
r
].
style
[
'
text-decoration
'
]
=
memClass
[
phon
][
'
text-decoration
'
]
delete
memClass
[
phon
];
}
}
}
...
...
@@ -124,17 +126,20 @@ function togglePhon(cbid) {
function
checkUncheck
(
thisChecked
,
classe
)
{
cblist
=
document
.
querySelectorAll
(
'
.
'
+
classe
);
// thiscb = document.getElementById('checkAll').checked;
console
.
log
(
thisChecked
);
if
(
!
thisChecked
)
{
for
(
i
=
0
;
i
<
cblist
.
length
;
i
++
)
{
cblist
[
i
].
checked
=
false
;
togglePhon
(
cblist
[
i
].
id
)
if
(
cblist
[
i
].
checked
==
true
){
cblist
[
i
].
checked
=
false
;
togglePhon
(
cblist
[
i
].
id
)
}
}
}
else
{
for
(
i
=
0
;
i
<
cblist
.
length
;
i
++
)
{
cblist
[
i
].
checked
=
true
;
togglePhon
(
cblist
[
i
].
id
)
if
(
cblist
[
i
].
checked
==
false
){
cblist
[
i
].
checked
=
true
;
togglePhon
(
cblist
[
i
].
id
)
}
}
}
}
...
...
@@ -197,3 +202,25 @@ function makePhonTable(lang) {
}
}
}
function
exportCustom
(){
var
paramlink
=
""
;
// Récupération liste des phonèmes inactifs
var
unchecks
=
""
;
for
(
i
in
memClass
){
unchecks
+=
i
.
replace
(
'
phon_
'
,
''
)
+
'
&
'
;
}
unchecks
=
unchecks
.
replace
(
/&$/
,
''
);
// Récupération liste des couleurs customisées
var
cols
=
document
.
documentElement
.
style
.
cssText
.
replace
(
/ /g
,
''
)
.
replace
(
/--phon_/g
,
''
)
.
replace
(
/#/g
,
''
)
.
replace
(
/:/g
,
'
=
'
)
.
replace
(
/;/g
,
'
&
'
)
.
replace
(
/&$/
,
''
);
paramlink
=
unchecks
+
'
$
'
+
cols
;
console
.
log
(
paramlink
);
}
\ No newline at end of file
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