Commit 2f4f5f97 authored by Luc Didry's avatar Luc Didry
Browse files

Fix bug in language detection

parent 3d2f546d
......@@ -36,7 +36,6 @@ var loadedFonts = {};
$(document).ready(function() {
detectLang();
translate();
getParameters();
bindEvents();
toggleBgSettings();
......
......@@ -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")})})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment