Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GrammaColor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pédagogies Multimodales
GrammaColor
Commits
d93bdca0
Commit
d93bdca0
authored
Aug 28, 2020
by
Sylvain Coulange
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ajout générateur d'exemples
parent
1130aa3c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
2 deletions
+43
-2
static/js/coloriser.js
static/js/coloriser.js
+8
-0
static/js/textExamples.js
static/js/textExamples.js
+4
-0
static/styles/styles.css
static/styles/styles.css
+0
-1
templates/coloriser.html
templates/coloriser.html
+5
-1
templates/player.html
templates/player.html
+26
-0
No files found.
static/js/coloriser.js
View file @
d93bdca0
...
...
@@ -72,4 +72,12 @@ async function runSpacy() {
var
outText
=
document
.
getElementById
(
'
outText
'
);
outText
.
innerHTML
=
result
;
}
function
getExample
()
{
var
lang
=
document
.
getElementById
(
'
choixLang
'
).
value
;
var
inText
=
document
.
getElementById
(
'
inText
'
);
inText
.
value
=
textExamples
[
lang
];
}
\ No newline at end of file
static/js/textExamples.js
0 → 100644
View file @
d93bdca0
var
textExamples
=
{
"
fr
"
:
"
L'apprentissage consiste à acquérir ou à modifier une représentation d'un environnement de façon à permettre avec celui-ci des interactions ou des relations efficaces ou de plus en plus efficaces.
"
,
"
zh
"
:
"
在古埃及,中国和所有其他的文明中都留下很多文字。
\n
在中世纪的末期,因为封建领主想占据法理上的优势,推动了对古代文本的研究。
"
}
\ No newline at end of file
static/styles/styles.css
View file @
d93bdca0
...
...
@@ -11,7 +11,6 @@ body {
top
:
15px
;
right
:
15px
;
background-color
:
white
;
padding
:
4px
;
}
/* .inText {
...
...
templates/coloriser.html
View file @
d93bdca0
...
...
@@ -11,7 +11,7 @@
</head>
<body>
<div
class=
"choixLang"
>
<select
id=
"choixLang"
onchange=
"selectLang(this.value)"
>
<select
id=
"choixLang"
onchange=
"selectLang(this.value)"
style=
"height: 35px;"
>
<option
value=
"fr"
>
Français
</option>
<option
value=
"zh"
>
中文
</option>
</select>
...
...
@@ -21,6 +21,9 @@
<div
class=
"inputDiv"
>
<h2>
Entrez du texte à analyser :
</h2>
<div
class=
"param"
>
<button
onclick=
"getExample()"
>
Générer un exemple
</button>
</div>
<textarea
class=
"inText"
id=
"inText"
></textarea>
<button
onclick=
"runSpacy()"
>
Analyser
</button>
</div>
...
...
@@ -33,6 +36,7 @@
<script
type=
"text/javascript"
src=
"{% static 'js/colors.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/textExamples.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/coloriser.js' %}"
></script>
</body>
</html>
\ No newline at end of file
templates/player.html
0 → 100644
View file @
d93bdca0
{% load static %}
<!DOCTYPE html>
<html
lang=
"fr"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
GrammaColor
</title>
<link
rel=
"shortcut icon"
type=
"image/png"
href=
"{% static 'wikicolor.ico' %}"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static 'styles/styles.css'%}"
>
<script
src=
"https://code.jquery.com/jquery-3.1.0.min.js"
></script>
</head>
<body>
<h1>
GrammaColor (proto)
</h1>
<h2>
Activités
</h2>
<div
class=
"divConsigne"
>
<p>
Pointez la phrase que vous entendez
</p>
</div>
<script
type=
"text/javascript"
src=
"{% static 'js/colors.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/coloriser.js' %}"
></script>
</body>
</html>
\ No newline at end of file
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