Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Luc Didry
wemawema
Commits
b39d99fe
Commit
b39d99fe
authored
Oct 05, 2017
by
Luc Didry
Browse files
Fix
#12
parent
a0d96d86
Pipeline
#24692
passed with stage
in 21 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
js/wema_wema.js
View file @
b39d99fe
...
...
@@ -24,9 +24,11 @@ var domIsReady = (function(domIsReady) {
return
domIsReady
;
})(
domIsReady
||
{});
var
svg
=
new
C2S
(
800
,
400
);
var
svg
=
new
C2S
(
800
,
400
);
var
showSettings
=
'
Show advanced settings
'
;
var
hideSettings
=
'
Hide advanced settings
'
;
var
workCanvas
=
'
Work with canvas
'
;
var
workSvg
=
'
Work with SVG
'
;
(
function
(
document
,
window
,
domIsReady
,
undefined
)
{
domIsReady
(
function
()
{
...
...
@@ -75,6 +77,12 @@ var hideSettings = 'Hide advanced settings';
if
(
locale
[
'
settings-hide
'
]
!==
undefined
)
{
hideSettings
=
locale
[
'
settings-hide
'
];
}
if
(
locale
[
'
toggle-canvas
'
]
!==
undefined
)
{
workCanvas
=
locale
[
'
toggle-canvas
'
];
}
if
(
locale
[
'
toggle-svg
'
]
!==
undefined
)
{
workSvg
=
locale
[
'
toggle-svg
'
];
}
if
(
locale
[
'
footer
'
]
!==
undefined
)
{
document
.
querySelector
(
'
footer p
'
).
innerHTML
=
locale
[
'
footer
'
];
}
...
...
@@ -113,14 +121,14 @@ var hideSettings = 'Hide advanced settings';
hide
(
'
download
'
);
show
(
'
svg
'
);
show
(
'
download-svg
'
);
this
.
text
=
'
W
ork
with c
anvas
'
;
this
.
text
=
w
ork
C
anvas
;
}
else
{
this
.
classList
.
remove
(
'
button-primary
'
);
hide
(
'
svg
'
);
hide
(
'
download-svg
'
);
show
(
'
canvas
'
);
show
(
'
download
'
);
this
.
text
=
'
W
ork
with SVG
'
;
this
.
text
=
w
ork
Svg
;
}
refreshFilename
();
});
...
...
locales/fr.json
View file @
b39d99fe
...
...
@@ -35,6 +35,7 @@
"porn-y"
:
"Ordonnée de la seconde ligne"
,
"porn-size"
:
"Taille du texte de la seconde ligne"
,
"toggle-svg"
:
"Travailler en SVG"
,
"toggle-canvas"
:
"Travailler en Canvas"
,
"download"
:
"Télécharger"
,
"reset"
:
"Réinitialiser les paramètres"
,
"settings-show"
:
"Afficher les paramètres"
,
...
...
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