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
2f4f5f97
Commit
2f4f5f97
authored
Oct 13, 2017
by
Luc Didry
Browse files
Fix bug in language detection
parent
3d2f546d
Pipeline
#25491
passed with stages
in 35 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
js/wema_wema.js
View file @
2f4f5f97
...
...
@@ -36,7 +36,6 @@ var loadedFonts = {};
$
(
document
).
ready
(
function
()
{
detectLang
();
translate
();
getParameters
();
bindEvents
();
toggleBgSettings
();
...
...
js/wema_wema.min.js
View file @
2f4f5f97
...
...
@@ -59,4 +59,4 @@ s.setTime(s.getTime()+24*t*60*60*1e3)
var
r
=
"
; expires=
"
+
s
.
toGMTString
()}
else
var
r
=
""
document
.
cookie
=
e
+
"
=
"
+
a
+
r
+
"
; path=/
"
}
function
readCookie
(
e
){
for
(
var
a
=
e
+
"
=
"
,
t
=
document
.
cookie
.
split
(
"
;
"
),
s
=
0
;
s
<
t
.
length
;
s
++
){
for
(
var
r
=
t
[
s
];
"
"
==
r
.
charAt
(
0
);)
r
=
r
.
substring
(
1
,
r
.
length
)
if
(
0
==
r
.
indexOf
(
a
))
return
r
.
substring
(
a
.
length
,
r
.
length
)}
return
null
}
var
svg
=
new
C2S
(
800
,
400
),
workCanvas
=
"
Work with canvas
"
,
workSvg
=
"
Work with SVG
"
,
customImgText
=
"
Custom image
"
,
customImg
,
fonts
=
{
"
Comic Neue
"
:{
regular
:
"
fonts/comic-neue/ComicNeue-Regular.woff2
"
,
bold
:
"
fonts/comic-neue/ComicNeue-Bold.woff2
"
,
italic
:
"
fonts/comic-neue/ComicNeue-Regular-Oblique.woff2
"
,
"
italic bold
"
:
"
fonts/comic-neue/ComicNeue-Bold-Oblique.woff2
"
},
"
Comic Spice
"
:{
regular
:
"
fonts/comic-spice/ComicSpice.woff2
"
,
bold
:
"
fonts/comic-spice/ComicSpice.woff2
"
,
italic
:
"
fonts/comic-spice/ComicSpice.woff2
"
,
"
italic bold
"
:
"
fonts/comic-spice/ComicSpice.woff2
"
},
Hack
:{
regular
:
"
fonts/hack/hack-regular-webfont.woff2
"
,
bold
:
"
fonts/hack/hack-bold-webfont.woff2
"
,
italic
:
"
fonts/hack/hack-italic-webfont.woff2
"
,
"
italic bold
"
:
"
fonts/hack/hack-bolditalic-webfont.woff2
"
},
Nosifer
:{
regular
:
"
fonts/nosifer/nosifer.woff2
"
,
bold
:
"
fonts/nosifer/nosifer.woff2
"
,
italic
:
"
fonts/nosifer/nosifer.woff2
"
,
"
italic bold
"
:
"
fonts/nosifer/nosifer.woff2
"
}},
loadedFonts
=
{}
$
(
document
).
ready
(
function
(){
detectLang
(),
translate
(),
getParameters
(),
bindEvents
(),
toggleBgSettings
(),
refreshFilename
(),
waitForfont
(
"
wemake-font
"
,
function
(){
waitForfont
(
"
porn-font
"
)})})
$
(
document
).
ready
(
function
(){
detectLang
(),
getParameters
(),
bindEvents
(),
toggleBgSettings
(),
refreshFilename
(),
waitForfont
(
"
wemake-font
"
,
function
(){
waitForfont
(
"
porn-font
"
)})})
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