Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
02928a3a
Commit
02928a3a
authored
Aug 12, 2011
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Translated GraphMe.wgt into English
parent
96b8d5c3
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
291 additions
and
307 deletions
+291
-307
Grapheur.xhtml
resources/library/interactive/Graphme.wgt/Grapheur.xhtml
+185
-201
Guide_Utilisateur.html
...es/library/interactive/Graphme.wgt/Guide_Utilisateur.html
+73
-73
AffichageUniboard.js
...y/interactive/Graphme.wgt/JavaScript/AffichageUniboard.js
+16
-16
Etude.js
...urces/library/interactive/Graphme.wgt/JavaScript/Etude.js
+13
-13
Interface.js
...s/library/interactive/Graphme.wgt/JavaScript/Interface.js
+2
-2
Sauvegardes.js
...library/interactive/Graphme.wgt/JavaScript/Sauvegardes.js
+2
-2
No files found.
resources/library/interactive/Graphme.wgt/Grapheur.xhtml
View file @
02928a3a
This diff is collapsed.
Click to expand it.
resources/library/interactive/Graphme.wgt/Guide_Utilisateur.html
View file @
02928a3a
This diff is collapsed.
Click to expand it.
resources/library/interactive/Graphme.wgt/JavaScript/AffichageUniboard.js
View file @
02928a3a
// --------------------
Uniboard
--------------------
// --------------------
sankore
--------------------
// Ces fonctions permettent de dessiner le graphique directement dans
Uniboard
.
// Ces fonctions permettent de dessiner le graphique directement dans
sankore
.
// Calcule tous les points de la fonction mathématique et les place dans des tableaux.
// Calcule tous les points de la fonction mathématique et les place dans des tableaux.
function
evaluerUniboard
(
eq
)
{
function
evaluerUniboard
(
eq
)
{
...
@@ -28,33 +28,33 @@
...
@@ -28,33 +28,33 @@
// Regarde chaque coordonnées stockées dans le tableau et dessine le graphique
// Regarde chaque coordonnées stockées dans le tableau et dessine le graphique
function
calculerGraphUniboard
(
fin
){
function
calculerGraphUniboard
(
fin
){
document
.
getElementById
(
"affichage"
).
innerHTML
=
""
document
.
getElementById
(
"affichage"
).
innerHTML
=
""
uniboard
.
setTool
(
'pen'
)
sankore
.
setTool
(
'pen'
)
uniboard
.
moveTo
(
pointX
[
2
]
+
decalageX
,
pointY
[
2
]
+
decalageY
)
sankore
.
moveTo
(
pointX
[
2
]
+
decalageX
,
pointY
[
2
]
+
decalageY
)
for
(
i
=
3
;
i
<
fin
;
i
++
){
for
(
i
=
3
;
i
<
fin
;
i
++
){
if
((
pointY
[
i
]
<
0
)
||
(
pointY
[
i
]
>
hauteur
)){
if
((
pointY
[
i
]
<
0
)
||
(
pointY
[
i
]
>
hauteur
)){
uniboard
.
moveTo
(
pointX
[
i
+
1
]
+
decalageX
,
pointY
[
i
+
1
]
+
decalageY
)
sankore
.
moveTo
(
pointX
[
i
+
1
]
+
decalageX
,
pointY
[
i
+
1
]
+
decalageY
)
continue
continue
}
}
uniboard
.
drawLineTo
(
pointX
[
i
]
+
decalageX
,
pointY
[
i
]
+
decalageY
,
lineWidth
)
sankore
.
drawLineTo
(
pointX
[
i
]
+
decalageX
,
pointY
[
i
]
+
decalageY
,
lineWidth
)
}
}
//dessiner le cadre
//dessiner le cadre
uniboard
.
moveTo
(
0
+
decalageX
,
0
+
decalageY
)
sankore
.
moveTo
(
0
+
decalageX
,
0
+
decalageY
)
uniboard
.
drawLineTo
(
largeur
+
decalageX
,
0
+
decalageY
,
lineWidth
)
sankore
.
drawLineTo
(
largeur
+
decalageX
,
0
+
decalageY
,
lineWidth
)
uniboard
.
drawLineTo
(
largeur
+
decalageX
,
hauteur
+
decalageY
,
lineWidth
)
sankore
.
drawLineTo
(
largeur
+
decalageX
,
hauteur
+
decalageY
,
lineWidth
)
uniboard
.
drawLineTo
(
0
+
decalageX
,
hauteur
+
decalageY
,
lineWidth
)
sankore
.
drawLineTo
(
0
+
decalageX
,
hauteur
+
decalageY
,
lineWidth
)
uniboard
.
drawLineTo
(
0
+
decalageX
,
0
+
decalageY
,
lineWidth
)
sankore
.
drawLineTo
(
0
+
decalageX
,
0
+
decalageY
,
lineWidth
)
//dessiner les axes
//dessiner les axes
uniboard
.
moveTo
((
-
borneXGauche
*
multiplicateurX
)
+
decalageX
,
0
+
decalageY
)
sankore
.
moveTo
((
-
borneXGauche
*
multiplicateurX
)
+
decalageX
,
0
+
decalageY
)
uniboard
.
drawLineTo
((
-
borneXGauche
*
multiplicateurX
)
+
decalageX
,
hauteur
+
decalageY
,
lineWidth
)
sankore
.
drawLineTo
((
-
borneXGauche
*
multiplicateurX
)
+
decalageX
,
hauteur
+
decalageY
,
lineWidth
)
uniboard
.
moveTo
(
0
+
decalageX
,
(
hauteur
-
(
-
borneYGauche
*
multiplicateurY
))
+
decalageY
)
sankore
.
moveTo
(
0
+
decalageX
,
(
hauteur
-
(
-
borneYGauche
*
multiplicateurY
))
+
decalageY
)
uniboard
.
drawLineTo
(
largeur
+
decalageX
,
(
hauteur
-
(
-
borneYGauche
*
multiplicateurY
))
+
decalageY
,
lineWidth
)
sankore
.
drawLineTo
(
largeur
+
decalageX
,
(
hauteur
-
(
-
borneYGauche
*
multiplicateurY
))
+
decalageY
,
lineWidth
)
decalageX
+=
250
decalageX
+=
250
decalageY
+=
200
decalageY
+=
200
largeur
-=
100
largeur
-=
100
hauteur
-=
100
hauteur
-=
100
uniboard
.
setTool
(
'arrow'
)
sankore
.
setTool
(
'arrow'
)
}
}
\ No newline at end of file
resources/library/interactive/Graphme.wgt/JavaScript/Etude.js
View file @
02928a3a
...
@@ -136,13 +136,13 @@ function pariteFct(){
...
@@ -136,13 +136,13 @@ function pariteFct(){
}
}
}
}
if
(
paire
){
if
(
paire
){
document
.
getElementById
(
"etudeParite"
).
innerHTML
=
"
paire
"
document
.
getElementById
(
"etudeParite"
).
innerHTML
=
"
even
"
}
}
else
if
(
impaire
){
else
if
(
impaire
){
document
.
getElementById
(
"etudeParite"
).
innerHTML
=
"
impaire
"
document
.
getElementById
(
"etudeParite"
).
innerHTML
=
"
uneven
"
}
}
else
{
else
{
document
.
getElementById
(
"etudeParite"
).
innerHTML
=
"
aucune
"
document
.
getElementById
(
"etudeParite"
).
innerHTML
=
"
n/a
"
}
}
}
}
...
@@ -272,7 +272,7 @@ function signeFct(fct){
...
@@ -272,7 +272,7 @@ function signeFct(fct){
listeZeros
.
splice
((
aSupprimer
[
i
]
-
i
),
1
)
listeZeros
.
splice
((
aSupprimer
[
i
]
-
i
),
1
)
}
}
if
(
listeZeros
==
""
){
if
(
listeZeros
==
""
){
texteZeros
=
"
aucuns
"
texteZeros
=
"
n/a
"
}
}
document
.
getElementById
(
"etudeZeros"
).
innerHTML
=
texteZeros
+
listeZeros
document
.
getElementById
(
"etudeZeros"
).
innerHTML
=
texteZeros
+
listeZeros
}
}
...
@@ -282,32 +282,32 @@ function asymptotes(){
...
@@ -282,32 +282,32 @@ function asymptotes(){
if
(
Math
.
abs
(
limGauche
[
0
])
<
1000
){
if
(
Math
.
abs
(
limGauche
[
0
])
<
1000
){
var
limRound
=
Math
.
round
(
limGauche
[
0
]
*
100
)
/
100
var
limRound
=
Math
.
round
(
limGauche
[
0
]
*
100
)
/
100
if
(
limGauche
[
0
]
<
limRound
){
if
(
limGauche
[
0
]
<
limRound
){
document
.
getElementById
(
"etudeAHG"
).
innerHTML
=
"y = "
+
limRound
+
" <span class='texteSecondaire'>(c
ourbe au-dessous de
l'AH)</span>"
document
.
getElementById
(
"etudeAHG"
).
innerHTML
=
"y = "
+
limRound
+
" <span class='texteSecondaire'>(c
urve is higher than a
l'AH)</span>"
}
}
else
if
(
limGauche
[
0
]
>
limRound
){
else
if
(
limGauche
[
0
]
>
limRound
){
document
.
getElementById
(
"etudeAHG"
).
innerHTML
=
"y = "
+
limRound
+
" <span class='texteSecondaire'>(c
ourbe au-dessus de
l'AH)</span>"
document
.
getElementById
(
"etudeAHG"
).
innerHTML
=
"y = "
+
limRound
+
" <span class='texteSecondaire'>(c
urve is lower than a
l'AH)</span>"
}
}
else
{
else
{
document
.
getElementById
(
"etudeAHG"
).
innerHTML
=
"y = "
+
limRound
document
.
getElementById
(
"etudeAHG"
).
innerHTML
=
"y = "
+
limRound
}
}
}
}
else
{
else
{
document
.
getElementById
(
"etudeAHG"
).
innerHTML
=
"
aucune
"
document
.
getElementById
(
"etudeAHG"
).
innerHTML
=
"
n/a
"
}
}
if
(
Math
.
abs
(
limDroite
[
0
])
<
1000
){
if
(
Math
.
abs
(
limDroite
[
0
])
<
1000
){
var
limRound
=
Math
.
round
(
limDroite
[
0
]
*
100
)
/
100
var
limRound
=
Math
.
round
(
limDroite
[
0
]
*
100
)
/
100
if
(
limDroite
[
0
]
<
limRound
){
if
(
limDroite
[
0
]
<
limRound
){
document
.
getElementById
(
"etudeAHD"
).
innerHTML
=
"y = "
+
limRound
+
" <span class='texteSecondaire'>(c
ourbe au-dessous de
l'AH)</span>"
document
.
getElementById
(
"etudeAHD"
).
innerHTML
=
"y = "
+
limRound
+
" <span class='texteSecondaire'>(c
urve is lower than a
l'AH)</span>"
}
}
else
if
(
limDroite
[
0
]
>
limRound
){
else
if
(
limDroite
[
0
]
>
limRound
){
document
.
getElementById
(
"etudeAHD"
).
innerHTML
=
"y = "
+
limRound
+
" <span class='texteSecondaire'>(c
ourbe au-dessus de
l'AH)</span>"
document
.
getElementById
(
"etudeAHD"
).
innerHTML
=
"y = "
+
limRound
+
" <span class='texteSecondaire'>(c
urve is higher than a
l'AH)</span>"
}
}
else
{
else
{
document
.
getElementById
(
"etudeAHD"
).
innerHTML
=
"y = "
+
limRound
document
.
getElementById
(
"etudeAHD"
).
innerHTML
=
"y = "
+
limRound
}
}
}
}
else
{
else
{
document
.
getElementById
(
"etudeAHD"
).
innerHTML
=
"
aucune
"
document
.
getElementById
(
"etudeAHD"
).
innerHTML
=
"
n/a
"
}
}
// Verticales
// Verticales
var
texteAV
=
""
var
texteAV
=
""
...
@@ -318,7 +318,7 @@ function asymptotes(){
...
@@ -318,7 +318,7 @@ function asymptotes(){
}
}
}
}
if
(
texteAV
==
""
){
if
(
texteAV
==
""
){
texteAV
=
"
aucune
<br/>"
texteAV
=
"
n/a
<br/>"
}
}
document
.
getElementById
(
"etudeAV"
).
innerHTML
=
texteAV
document
.
getElementById
(
"etudeAV"
).
innerHTML
=
texteAV
}
}
...
@@ -343,8 +343,8 @@ function courbure(){
...
@@ -343,8 +343,8 @@ function courbure(){
}
}
}
}
}
}
if
(
texteMin
==
""
){
texteMin
=
"<br/>
Aucun M
inimum"
;}
if
(
texteMin
==
""
){
texteMin
=
"<br/>
No m
inimum"
;}
if
(
texteMax
==
""
){
texteMax
=
"<br/>
Aucun M
aximum"
;}
if
(
texteMax
==
""
){
texteMax
=
"<br/>
No m
aximum"
;}
if
(
texteI
==
""
){
texteI
=
"<br/>Aucun I"
;}
if
(
texteI
==
""
){
texteI
=
"<br/>Aucun I"
;}
document
.
getElementById
(
"etudeMin"
).
innerHTML
=
texteMin
;
document
.
getElementById
(
"etudeMin"
).
innerHTML
=
texteMin
;
document
.
getElementById
(
"etudeMax"
).
innerHTML
=
texteMax
;
document
.
getElementById
(
"etudeMax"
).
innerHTML
=
texteMax
;
...
...
resources/library/interactive/Graphme.wgt/JavaScript/Interface.js
View file @
02928a3a
...
@@ -28,7 +28,7 @@ function cacherMenu(){
...
@@ -28,7 +28,7 @@ function cacherMenu(){
menuActuel
=
""
menuActuel
=
""
}
}
// ---- Minimiser ou Maximiser le widget (pour
Uniboard
) ----
// ---- Minimiser ou Maximiser le widget (pour
sankore
) ----
function
miniMax
(){
function
miniMax
(){
if
(
maximise
){
if
(
maximise
){
maximise
=
false
maximise
=
false
...
@@ -99,7 +99,7 @@ function changerTheme(){
...
@@ -99,7 +99,7 @@ function changerTheme(){
// Affiche un message d'erreur
// Affiche un message d'erreur
function
error
(
err
){
function
error
(
err
){
alert
(
" Err
eur sur la page...
\n\n
Description: "
+
err
.
description
+
"
\n\n
Cliquez sur OK pour continuer
.
\n\n
"
)
alert
(
" Err
or has occurred on the page ...
\n\n
Description: "
+
err
.
description
+
"
\n\n
Click 'OK' to continue
.
\n\n
"
)
}
}
...
...
resources/library/interactive/Graphme.wgt/JavaScript/Sauvegardes.js
View file @
02928a3a
...
@@ -88,7 +88,7 @@ function loadOptions(){
...
@@ -88,7 +88,7 @@ function loadOptions(){
}
}
else
{
else
{
if
(
document
.
cookie
!=
""
){
if
(
document
.
cookie
!=
""
){
alert
(
"I
mpossible de charger les options enregistrées
..."
);
alert
(
"I
t's can't be downloaded
..."
);
}
}
}
}
}
}
...
@@ -115,5 +115,5 @@ function checkOptions(){
...
@@ -115,5 +115,5 @@ function checkOptions(){
}
}
function
alertOptions
(){
function
alertOptions
(){
alert
(
"
Options actuellement sauvegardées
\n
------------------------------------------------------------
\n
"
+
document
.
cookie
);
alert
(
"
Now parameters will be saved
\n
------------------------------------------------------------
\n
"
+
document
.
cookie
);
}
}
\ 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