summaryrefslogtreecommitdiff
path: root/index.htm
diff options
context:
space:
mode:
Diffstat (limited to 'index.htm')
-rwxr-xr-xindex.htm21
1 files changed, 21 insertions, 0 deletions
diff --git a/index.htm b/index.htm
index 92f20d6..ae258f1 100755
--- a/index.htm
+++ b/index.htm
@@ -5,6 +5,27 @@
<link rel="stylesheet" href="css/readability-home.css" type="text/css" media="screen" />
<script type="text/javascript" src="js/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="js/readability-start.js"></script>
+ <script type="text/javascript">
+ languagesAvailable = ['es'];
+ language = (navigator.language || navigator.userLanguage);
+ languageCode = language.replace(/-.*/,'').toLowerCase();
+ if(languageCode != 'en')
+ {
+ languageIsAvailable = false;
+ for(l in languagesAvailable)
+ {
+ if(languagesAvailable[l] == languageCode)
+ {
+ languageIsAvailable = true;
+ break;
+ }
+ }
+ if(languageIsAvailable)
+ {
+ window.location = "http://lab.arc90.com/experiments/readability/" + languageCode;
+ }
+ }
+ </script>
</head>
<body>