summaryrefslogtreecommitdiff
path: root/index.htm
diff options
context:
space:
mode:
authordavehauenstein <davehauenstein@d4e419ec-0920-11de-bbfd-a7c1bc4c261e>2009-04-17 20:41:52 +0000
committerdavehauenstein <davehauenstein@d4e419ec-0920-11de-bbfd-a7c1bc4c261e>2009-04-17 20:41:52 +0000
commitd50002c3b430b192e1ecec4126bf31f13cd6e5f6 (patch)
treed7edaa9a0089258545e93b393412ddff3e6a9e16 /index.htm
parent023a90eba43c51519943f58724fa51d373a1974d (diff)
downloadreadability-simple-d50002c3b430b192e1ecec4126bf31f13cd6e5f6.tar.bz2
readability-simple-d50002c3b430b192e1ecec4126bf31f13cd6e5f6.zip
added aditional files for spanish support, added redirect if coming from a spanish language preferred browser
git-svn-id: http://arc90labs-readability.googlecode.com/svn/trunk@35 d4e419ec-0920-11de-bbfd-a7c1bc4c261e
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>