Update index.html

Load langs config.
This commit is contained in:
lilj
2014-05-29 17:43:14 +08:00
parent 88fe373ea6
commit 99d949906a
+3 -1
View File
@@ -28,6 +28,8 @@
<script src="lib/base64.js"></script>
<script src="lib/translate.js"></script>
<script src="lang/langs.js"></script>
<script>
// try to read "lang" param's from url
var lang = decodeURIComponent((new RegExp('[?|&]lang=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null;
@@ -105,4 +107,4 @@
</div>
</div>
</body>
</html>
</html>