]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 7 Apr 2011 09:56:54 +0000 (09:56 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 7 Apr 2011 09:56:54 +0000 (09:56 +0000)
fluidbook/compile/_js/fluidbook.js
fluidbook/compile/index.html

index a969b3fff4d5216dfce334ead7765d918b3d4638..07730329339119619f2021f8189fd4e451167f58 100644 (file)
@@ -11,6 +11,14 @@ function parseGet(){
        }\r
        return res;\r
 }\r
+function getLang(){\r
+       var get=parseGet();\r
+       if(get.lang==undefined || get.lang==null || get.lang==''){\r
+               return FB_DEFAULT_LANG;\r
+       }\r
+       return get.lang;\r
+}\r
+\r
 function mailto(adresse){\r
        window.location='mailto:'+adresse;\r
 }\r
index d26b89e585768da63dcdb5fb9bee3d39151aaa2b..a90526aa13fcafc09a870c899ac17ae1f0e13044 100644 (file)
@@ -6,6 +6,7 @@ $facebook
 <title>$title</title>\r
 <link href="style.css" rel="stylesheet" type="text/css" />\r
 <script type="text/javascript" src="fluidbook.js"></script>\r
+<script type="text/javascript">FB_DEFAULT_LANG='$lang';</script>\r
 $redirectScript\r
 </head>\r
 <body style="background-color:#$bgcolor" onload="this.focus();">\r
@@ -13,7 +14,7 @@ $redirectScript
 <div style="padding:20px;text-align:center;"><a href="http://get.adobe.com/flashplayer/" target="_blank"><img style="border:0;" src="$pathToGetflash" alt="" width="734" height="409" /></a></div>\r
 <div style="padding:20px;">$alt</div>\r
 </div>\r
-<script type="text/javascript">swfobject.embedSWF("$pathToIndex", "fluidbook", "100%", "100%", "10.0.0","", [],        {"allowScriptAccess":"always","quality":"high","scale":"noscale","wmode":"gpu","allowFullScreen":"true"},{"bgcolor":"#$bgcolor"});\r
+<script type="text/javascript">swfobject.embedSWF("$pathToIndex", "fluidbook", "100%", "100%", "10.0.0","", parseGet(),        {"allowScriptAccess":"always","quality":"high","scale":"noscale","wmode":"gpu","allowFullScreen":"true"},{"bgcolor":"#$bgcolor"});\r
 </script>\r
 $ga\r
 </body>\r