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
5dfdf0f1
Commit
5dfdf0f1
authored
Aug 20, 2020
by
Sylvain Coulange
Browse files
ajout loader pendant la colorisation du texte
parent
254b7060
Changes
4
Hide whitespace changes
Inline
Side-by-side
static/im/loader_colorisation.gif
0 → 100644
View file @
5dfdf0f1
519 KB
static/scripts/main.js
View file @
5dfdf0f1
...
...
@@ -92,6 +92,8 @@ var dicoTok = {};
var
dicoId
=
{};
async
function
getColorisation
()
{
document
.
getElementById
(
'
loader
'
).
style
.
display
=
"
block
"
;
var
inText
=
document
.
getElementById
(
'
inText
'
).
value
;
var
lang
=
document
.
getElementById
(
'
choixLang
'
).
value
;
...
...
@@ -198,6 +200,7 @@ async function getColorisation() {
dicoId
[
'
tok
'
+
i
]
=
0
;
}
}
document
.
getElementById
(
'
loader
'
).
style
.
display
=
"
none
"
;
}
var
tokens
=
document
.
getElementsByClassName
(
"
tokens
"
);
...
...
static/styles/styles.css
View file @
5dfdf0f1
...
...
@@ -277,6 +277,7 @@ button {
position
:
absolute
;
top
:
40%
;
}
.info
{
font-size
:
.7em
;
background-color
:
rgb
(
182
,
233
,
182
);
...
...
templates/coloriseur.html
View file @
5dfdf0f1
...
...
@@ -47,6 +47,7 @@
<span
class=
"glyphicon glyphicon-bold langtitle"
aria-hidden=
"true"
id=
"ti_btnBold"
onclick=
"toggleBold()"
></span>
</div>
<h2><span
id=
"sp_output"
class=
"langspan"
></span></h2>
<center><div
id=
"loader"
class=
"loader"
style=
"display: none;"
></div></center>
<div
id=
"output"
class=
"output outputBold"
></div>
</div>
...
...
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